widget/nsIMacWebAppUtils.idl

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6

     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
    11 {
    12   void trashAppFinished(in nsresult rv);
    13 };
    15 /**
    16  * Allow MozApps API to locate and manipulate natively installed apps
    17  */
    19 [scriptable, uuid(c69cf343-ea41-428b-b161-4655fd54d8e7)]
    20 interface nsIMacWebAppUtils : nsISupports {
    21   /**
    22    * Find the path for an app with the given signature.
    23    */
    24   AString pathForAppWithIdentifier(in AString bundleIdentifier);
    26   /**
    27    * Launch the app with the given identifier, if it exists.
    28    */
    29   void launchAppWithIdentifier(in AString bundleIdentifier);
    31   /**
    32    * Move the app from the given directory to the Trash.
    33    */
    34   void trashApp(in AString path, in nsITrashAppCallback callback);
    35 };

mercurial