Bug 1847324 - Add use counter for rewritable YouTube flash embeds r=emilio
[gecko.git] / widget / nsIMacWebAppUtils.idl
blob4d570a8bf0ebeac151f827e796c3b322fd99326f
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 #include "nsISupports.idl"
7 interface nsIMacWebAppUtils;
9 [scriptable, function, uuid(8c899c4f-58c1-4b74-9034-3bb64e484b68)]
10 interface nsITrashAppCallback : nsISupports
12 void trashAppFinished(in nsresult rv);
15 /**
16 * Allow MozApps API to locate and manipulate natively installed apps
19 [scriptable, uuid(c69cf343-ea41-428b-b161-4655fd54d8e7)]
20 interface nsIMacWebAppUtils : nsISupports {
21 /**
22 * Find the path for an app with the given signature.
24 AString pathForAppWithIdentifier(in AString bundleIdentifier);
26 /**
27 * Launch the app with the given identifier, if it exists.
29 void launchAppWithIdentifier(in AString bundleIdentifier);
31 /**
32 * Move the app from the given directory to the Trash.
34 void trashApp(in AString path, in nsITrashAppCallback callback);