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 // appsDebuggerPrivate API. | |
6 | |
7 namespace appsDebuggerPrivate { | |
8 | |
9 dictionary ItemInspectView { | |
10 DOMString path; | |
11 long renderProcessId; | |
12 long renderViewId; | |
13 boolean incognito; | |
14 }; | |
15 | |
16 dictionary ItemInfo { | |
17 DOMString id; | |
18 DOMString name; | |
19 DOMString version; | |
20 DOMString description; | |
21 boolean mayDisable; | |
22 boolean enabled; | |
23 DOMString? disabledReason; | |
24 boolean isApp; | |
25 DOMString type; | |
26 boolean allow_activity; | |
27 boolean allowFileAccess; | |
28 boolean wantsFileAccess; | |
29 boolean enabledIncognito; | |
30 boolean isUnpacked; | |
31 boolean allowReload; | |
32 DOMString icon; | |
33 | |
34 // Path of an unpacked extension. | |
35 DOMString? path; | |
36 | |
37 // Options settings page for the item. | |
38 DOMString optionsUrl; | |
39 DOMString appLaunchUrl; | |
40 DOMString? homepageUrl; | |
41 DOMString? updateUrl; | |
42 boolean offlineEnabled; | |
43 | |
44 // All views of the current extension. | |
45 ItemInspectView[] views; | |
46 }; | |
47 | |
48 dictionary InspectOptions { | |
49 DOMString extensionId; | |
50 DOMString renderProcessId; | |
51 DOMString renderViewId; | |
52 boolean incognito; | |
asargent_no_longer_on_chrome
2012/11/30 22:56:02
Are extensionId and incognito really needed here?
Gaurav
2012/11/30 23:32:42
We use extensionId and incognito for lazy backgrou
| |
53 }; | |
54 | |
55 callback BooleanCallback = void (boolean result); | |
56 callback ItemsInfoCallback = void (ItemInfo[] result); | |
57 | |
58 interface Functions { | |
59 // Runs autoUpdate immediately. | |
60 // |callback| : Called with the boolean result. | |
61 static void autoUpdate(BooleanCallback callback); | |
62 | |
63 // Returns information of all the extensions and apps installed. | |
64 // |callback| : Called with items info. | |
65 static void getItemsInfo(ItemsInfoCallback callback); | |
66 | |
67 // Opens an inspect window for given |inspectOptions| | |
68 static void inspect(InspectOptions options, | |
69 BooleanCallback callback); | |
70 }; | |
71 | |
72 }; | |
OLD | NEW |