Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=8 et :
3 */
4 /* This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this file,
6 * You can obtain one at http://mozilla.org/MPL/2.0/. */
8 #include "domstubs.idl"
10 /**
11 * We expose Gecko-internal helpers related to "web apps" through this
12 * sub-interface.
13 */
14 [scriptable, uuid(7bd62430-c374-49eb-be1b-ce821a180360)]
15 interface mozIApplication: nsISupports
16 {
17 /* Return true if this app has |permission|. */
18 boolean hasPermission(in string permission);
20 /* Application status as defined in nsIPrincipal. */
21 readonly attribute unsigned short appStatus;
23 /* Returns the uuid of the app. */
24 readonly attribute DOMString id;
26 /* Returns the origin of the app. */
27 readonly attribute DOMString origin;
29 /* Returns the manifest url of the app. */
30 readonly attribute DOMString manifestURL;
32 /* Returns the local id of the app. */
33 readonly attribute unsigned long localId;
35 /* Returns the base directory for the app */
36 readonly attribute DOMString basePath;
38 /* Name copied from the manifest */
39 readonly attribute DOMString name;
41 /* CSP copied from the manifest */
42 readonly attribute DOMString csp;
44 /* Store ID if the app is installed from a store */
45 readonly attribute DOMString storeID;
47 /* Store version if the app is installed from a store */
48 readonly attribute unsigned long storeVersion;
50 /* role copied from the manifest */
51 readonly attribute DOMString role;
52 };