dom/interfaces/apps/mozIApplication.idl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:94cf6d22dd56
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/. */
7
8 #include "domstubs.idl"
9
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);
19
20 /* Application status as defined in nsIPrincipal. */
21 readonly attribute unsigned short appStatus;
22
23 /* Returns the uuid of the app. */
24 readonly attribute DOMString id;
25
26 /* Returns the origin of the app. */
27 readonly attribute DOMString origin;
28
29 /* Returns the manifest url of the app. */
30 readonly attribute DOMString manifestURL;
31
32 /* Returns the local id of the app. */
33 readonly attribute unsigned long localId;
34
35 /* Returns the base directory for the app */
36 readonly attribute DOMString basePath;
37
38 /* Name copied from the manifest */
39 readonly attribute DOMString name;
40
41 /* CSP copied from the manifest */
42 readonly attribute DOMString csp;
43
44 /* Store ID if the app is installed from a store */
45 readonly attribute DOMString storeID;
46
47 /* Store version if the app is installed from a store */
48 readonly attribute unsigned long storeVersion;
49
50 /* role copied from the manifest */
51 readonly attribute DOMString role;
52 };

mercurial