| 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 { |
| 11 hosted_app, | 11 hosted_app, |
| 12 packaged_app, | 12 packaged_app, |
| 13 legacy_packaged_app, | 13 legacy_packaged_app, |
| 14 extension, | 14 extension, |
| 15 theme | 15 theme |
| 16 }; | 16 }; |
| 17 | 17 |
| 18 dictionary ItemInspectView { | 18 dictionary ItemInspectView { |
| 19 // path to the inspect page. | 19 // path to the inspect page. |
| 20 DOMString path; | 20 DOMString path; |
| 21 | 21 |
| 22 // For lazy background pages, the value is -1. | 22 // For lazy background pages, the value is -1. |
| 23 long render_process_id; | 23 long render_process_id; |
| 24 | 24 |
| 25 long render_view_id; | 25 long render_view_id; |
| 26 boolean incognito; | 26 boolean incognito; |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 dictionary InstallWarning { |
| 30 boolean is_html; |
| 31 DOMString message; |
| 32 }; |
| 33 |
| 29 dictionary ItemInfo { | 34 dictionary ItemInfo { |
| 30 DOMString id; | 35 DOMString id; |
| 31 DOMString name; | 36 DOMString name; |
| 32 DOMString version; | 37 DOMString version; |
| 33 DOMString description; | 38 DOMString description; |
| 34 boolean may_disable; | 39 boolean may_disable; |
| 35 boolean enabled; | 40 boolean enabled; |
| 36 DOMString? disabled_reason; | 41 DOMString? disabled_reason; |
| 37 boolean isApp; | 42 boolean isApp; |
| 38 ItemType type; | 43 ItemType type; |
| 39 boolean allow_activity; | 44 boolean allow_activity; |
| 40 boolean allow_file_access; | 45 boolean allow_file_access; |
| 41 boolean wants_file_access; | 46 boolean wants_file_access; |
| 42 boolean incognito_enabled; | 47 boolean incognito_enabled; |
| 43 boolean is_unpacked; | 48 boolean is_unpacked; |
| 44 boolean allow_reload; | 49 boolean allow_reload; |
| 45 boolean terminated; | 50 boolean terminated; |
| 46 boolean allow_incognito; | 51 boolean allow_incognito; |
| 47 DOMString icon_url; | 52 DOMString icon_url; |
| 48 | 53 |
| 49 // Path of an unpacked extension. | 54 // Path of an unpacked extension. |
| 50 DOMString? path; | 55 DOMString? path; |
| 51 | 56 |
| 52 // Options settings page for the item. | 57 // Options settings page for the item. |
| 53 DOMString? options_url; | 58 DOMString? options_url; |
| 54 DOMString? app_launch_url; | 59 DOMString? app_launch_url; |
| 55 DOMString? homepage_url; | 60 DOMString? homepage_url; |
| 56 DOMString? update_url; | 61 DOMString? update_url; |
| 62 InstallWarning[] install_warnings; |
| 57 boolean offline_enabled; | 63 boolean offline_enabled; |
| 58 | 64 |
| 59 // All views of the current extension. | 65 // All views of the current extension. |
| 60 ItemInspectView[] views; | 66 ItemInspectView[] views; |
| 61 }; | 67 }; |
| 62 | 68 |
| 63 dictionary InspectOptions { | 69 dictionary InspectOptions { |
| 64 DOMString extension_id; | 70 DOMString extension_id; |
| 65 DOMString render_process_id; | 71 DOMString render_process_id; |
| 66 DOMString render_view_id; | 72 DOMString render_view_id; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 // translated string to use in the apps_debugger app UI. | 208 // translated string to use in the apps_debugger app UI. |
| 203 static void getStrings(GetStringsCallback callback); | 209 static void getStrings(GetStringsCallback callback); |
| 204 }; | 210 }; |
| 205 | 211 |
| 206 interface Events { | 212 interface Events { |
| 207 // Fired when a item state is changed. | 213 // Fired when a item state is changed. |
| 208 static void onItemStateChanged(EventData response); | 214 static void onItemStateChanged(EventData response); |
| 209 }; | 215 }; |
| 210 | 216 |
| 211 }; | 217 }; |
| OLD | NEW |