OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 // developerPrivate API. | |
6 | |
7 namespace developerPrivate { | |
miket_OOO
2012/12/06 19:31:15
There could be much better documentation in this f
| |
8 | |
9 enum ItemType { | |
10 hosted_app, | |
11 packaged_app, | |
miket_OOO
2012/12/06 19:31:15
why the different naming style?
Gaurav
2012/12/12 02:23:38
the code generator for API's generates code as NAM
| |
12 legacy_packaged_app, | |
13 extension, | |
14 theme | |
15 }; | |
16 | |
17 dictionary ItemInspectView { | |
18 DOMString path; | |
19 long renderProcessId; | |
20 long renderViewId; | |
21 boolean incognito; | |
22 }; | |
23 | |
24 dictionary ItemInfo { | |
25 DOMString id; | |
26 DOMString name; | |
27 DOMString version; | |
28 DOMString description; | |
29 boolean mayDisable; | |
30 boolean enabled; | |
31 DOMString? disabledReason; | |
32 boolean isApp; | |
33 ItemType type; | |
34 boolean allow_activity; | |
35 boolean allowFileAccess; | |
36 boolean wantsFileAccess; | |
37 boolean enabledIncognito; | |
38 boolean isUnpacked; | |
39 boolean allowReload; | |
40 DOMString icon; | |
41 | |
42 // Path of an unpacked extension. | |
43 DOMString? path; | |
44 | |
45 // Options settings page for the item. | |
46 DOMString? optionsUrl; | |
47 DOMString? appLaunchUrl; | |
48 DOMString? homepageUrl; | |
49 DOMString? updateUrl; | |
50 boolean offlineEnabled; | |
51 | |
52 // All views of the current extension. | |
53 ItemInspectView[] views; | |
54 }; | |
55 | |
56 dictionary InspectOptions { | |
57 DOMString extensionId; | |
58 DOMString renderProcessId; | |
59 DOMString renderViewId; | |
60 boolean incognito; | |
61 }; | |
62 | |
63 callback BooleanCallback = void (boolean result); | |
64 callback ItemsInfoCallback = void (ItemInfo[] result); | |
65 | |
66 interface Functions { | |
67 // Runs autoUpdate immediately. | |
miket_OOO
2012/12/06 19:31:15
no internal capitalization
Gaurav
2012/12/12 02:23:38
Done.
| |
68 // |callback| : Called with the boolean result. | |
miket_OOO
2012/12/06 19:31:15
this comment adds no information.
Gaurav
2012/12/12 02:23:38
Done.
| |
69 static void autoUpdate(BooleanCallback callback); | |
70 | |
71 // Returns information of all the extensions and apps installed. | |
72 // |callback| : Called with items info. | |
73 static void getItemsInfo(ItemsInfoCallback callback); | |
74 | |
75 // Opens an inspect window for given |inspectOptions| | |
76 static void inspect(InspectOptions options, | |
77 BooleanCallback callback); | |
78 }; | |
79 | |
80 }; | |
OLD | NEW |