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 ReloadOptions { |
| 19 boolean? failQuietly; |
| 20 }; |
| 21 |
18 dictionary ItemInspectView { | 22 dictionary ItemInspectView { |
19 // path to the inspect page. | 23 // path to the inspect page. |
20 DOMString path; | 24 DOMString path; |
21 | 25 |
22 // For lazy background pages, the value is -1. | 26 // For lazy background pages, the value is -1. |
23 long render_process_id; | 27 long render_process_id; |
24 | 28 |
25 long render_view_id; | 29 long render_view_id; |
26 boolean incognito; | 30 boolean incognito; |
27 boolean generatedBackgroundPage; | 31 boolean generatedBackgroundPage; |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 // Opens an inspect window for given |options| | 160 // Opens an inspect window for given |options| |
157 static void inspect(InspectOptions options, | 161 static void inspect(InspectOptions options, |
158 optional VoidCallback callback); | 162 optional VoidCallback callback); |
159 | 163 |
160 // Enable / Disable file access for a given |item_id| | 164 // Enable / Disable file access for a given |item_id| |
161 static void allowFileAccess(DOMString item_id, | 165 static void allowFileAccess(DOMString item_id, |
162 boolean allow, | 166 boolean allow, |
163 optional VoidCallback callback); | 167 optional VoidCallback callback); |
164 | 168 |
165 // Reloads a given item with |itemId|. | 169 // Reloads a given item with |itemId|. |
166 static void reload(DOMString itemId, optional VoidCallback callback); | 170 static void reload(DOMString itemId, |
| 171 optional ReloadOptions options, |
| 172 optional VoidCallback callback); |
167 | 173 |
168 // Enable / Disable a given item with id |itemId|. | 174 // Enable / Disable a given item with id |itemId|. |
169 static void enable(DOMString itemId, | 175 static void enable(DOMString itemId, |
170 boolean enable, | 176 boolean enable, |
171 optional VoidCallback callback); | 177 optional VoidCallback callback); |
172 | 178 |
173 // Allow / Disallow item with |item_id| in incognito mode. | 179 // Allow / Disallow item with |item_id| in incognito mode. |
174 static void allowIncognito(DOMString item_id, | 180 static void allowIncognito(DOMString item_id, |
175 boolean allow, | 181 boolean allow, |
176 VoidCallback callback); | 182 VoidCallback callback); |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
235 // - columnNumber (optional): The column to focus the devtools at. | 241 // - columnNumber (optional): The column to focus the devtools at. |
236 static void openDevTools(any dict); | 242 static void openDevTools(any dict); |
237 }; | 243 }; |
238 | 244 |
239 interface Events { | 245 interface Events { |
240 // Fired when a item state is changed. | 246 // Fired when a item state is changed. |
241 static void onItemStateChanged(EventData response); | 247 static void onItemStateChanged(EventData response); |
242 }; | 248 }; |
243 | 249 |
244 }; | 250 }; |
OLD | NEW |