OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // developerPrivate API. | 5 // developerPrivate API. |
6 // This is a private API exposing developing and debugging functionalities for | 6 // This is a private API exposing developing and debugging functionalities for |
7 // apps and extensions. | 7 // apps and extensions. |
8 namespace developerPrivate { | 8 namespace developerPrivate { |
9 | 9 |
10 enum ItemType { | 10 enum ItemType { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Path of an unpacked extension. | 54 // Path of an unpacked extension. |
55 DOMString? path; | 55 DOMString? path; |
56 | 56 |
57 // Options settings page for the item. | 57 // Options settings page for the item. |
58 DOMString? options_url; | 58 DOMString? options_url; |
59 DOMString? app_launch_url; | 59 DOMString? app_launch_url; |
60 DOMString? homepage_url; | 60 DOMString? homepage_url; |
61 DOMString? update_url; | 61 DOMString? update_url; |
62 InstallWarning[] install_warnings; | 62 InstallWarning[] install_warnings; |
| 63 any[] manifest_errors; |
| 64 any[] runtime_errors; |
63 boolean offline_enabled; | 65 boolean offline_enabled; |
64 | 66 |
65 // All views of the current extension. | 67 // All views of the current extension. |
66 ItemInspectView[] views; | 68 ItemInspectView[] views; |
67 }; | 69 }; |
68 | 70 |
69 dictionary InspectOptions { | 71 dictionary InspectOptions { |
70 DOMString extension_id; | 72 DOMString extension_id; |
71 DOMString render_process_id; | 73 DOMString render_process_id; |
72 DOMString render_view_id; | 74 DOMString render_view_id; |
(...skipping 17 matching lines...) Expand all Loading... |
90 }; | 92 }; |
91 | 93 |
92 enum EventType { | 94 enum EventType { |
93 INSTALLED, | 95 INSTALLED, |
94 UNINSTALLED, | 96 UNINSTALLED, |
95 LOADED, | 97 LOADED, |
96 UNLOADED, | 98 UNLOADED, |
97 // New window / view opened. | 99 // New window / view opened. |
98 VIEW_REGISTERED, | 100 VIEW_REGISTERED, |
99 // window / view closed. | 101 // window / view closed. |
100 VIEW_UNREGISTERED | 102 VIEW_UNREGISTERED, |
| 103 ERROR_ADDED |
101 }; | 104 }; |
102 | 105 |
103 dictionary PackDirectoryResponse { | 106 dictionary PackDirectoryResponse { |
104 // The response message of success or error. | 107 // The response message of success or error. |
105 DOMString message; | 108 DOMString message; |
106 | 109 |
107 // Unpacked items's path. | 110 // Unpacked items's path. |
108 DOMString item_path; | 111 DOMString item_path; |
109 | 112 |
110 // Permanent key path. | 113 // Permanent key path. |
(...skipping 13 matching lines...) Expand all Loading... |
124 }; | 127 }; |
125 | 128 |
126 callback VoidCallback = void (); | 129 callback VoidCallback = void (); |
127 callback BooleanCallback = void (boolean result); | 130 callback BooleanCallback = void (boolean result); |
128 callback ItemsInfoCallback = void (ItemInfo[] result); | 131 callback ItemsInfoCallback = void (ItemInfo[] result); |
129 callback GetStringsCallback = void (object result); | 132 callback GetStringsCallback = void (object result); |
130 callback GetProjectsInfoCallback = void (ProjectInfo[] result); | 133 callback GetProjectsInfoCallback = void (ProjectInfo[] result); |
131 callback PathCallback = void (DOMString path); | 134 callback PathCallback = void (DOMString path); |
132 callback PackCallback = void (PackDirectoryResponse response); | 135 callback PackCallback = void (PackDirectoryResponse response); |
133 callback VoidCallback = void(); | 136 callback VoidCallback = void(); |
| 137 callback AnyCallback = void (any result); |
134 | 138 |
135 interface Functions { | 139 interface Functions { |
136 // Runs auto update for extensions and apps immediately. | 140 // Runs auto update for extensions and apps immediately. |
137 // |callback| : Called with the boolean result, true if autoUpdate is | 141 // |callback| : Called with the boolean result, true if autoUpdate is |
138 // successful. | 142 // successful. |
139 static void autoUpdate(BooleanCallback callback); | 143 static void autoUpdate(BooleanCallback callback); |
140 | 144 |
141 // Returns information of all the extensions and apps installed. | 145 // Returns information of all the extensions and apps installed. |
142 // |include_disabled| : include disabled items. | 146 // |include_disabled| : include disabled items. |
143 // |include_terminated| : include terminated items. | 147 // |include_terminated| : include terminated items. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
195 long flags, | 199 long flags, |
196 PackCallback callback); | 200 PackCallback callback); |
197 | 201 |
198 // Gets localized translated strings for apps_debugger. It returns the | 202 // Gets localized translated strings for apps_debugger. It returns the |
199 // strings as a dictionary mapping from string identifier to the | 203 // strings as a dictionary mapping from string identifier to the |
200 // translated string to use in the apps_debugger app UI. | 204 // translated string to use in the apps_debugger app UI. |
201 static void getStrings(GetStringsCallback callback); | 205 static void getStrings(GetStringsCallback callback); |
202 | 206 |
203 // Returns true if the profile is managed. | 207 // Returns true if the profile is managed. |
204 static void isProfileManaged(BooleanCallback callback); | 208 static void isProfileManaged(BooleanCallback callback); |
| 209 |
| 210 static void requestFileSource(any dict, AnyCallback callback); |
| 211 static void openDevTools(any dict); |
205 }; | 212 }; |
206 | 213 |
207 interface Events { | 214 interface Events { |
208 // Fired when a item state is changed. | 215 // Fired when a item state is changed. |
209 static void onItemStateChanged(EventData response); | 216 static void onItemStateChanged(EventData response); |
210 }; | 217 }; |
211 | 218 |
212 }; | 219 }; |
OLD | NEW |