| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 dictionary InspectOptions { | 71 dictionary InspectOptions { |
| 72 DOMString extension_id; | 72 DOMString extension_id; |
| 73 DOMString render_process_id; | 73 DOMString render_process_id; |
| 74 DOMString render_view_id; | 74 DOMString render_view_id; |
| 75 boolean incognito; | 75 boolean incognito; |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 dictionary ReloadOptions { | 78 dictionary ReloadOptions { |
| 79 // If false, an alert dialog will show in the event of a reload error. | 79 // If false, an alert dialog will show in the event of a reload error. |
| 80 // Defaults to false. | 80 // Defaults to false. |
| 81 boolean failQuietly; | 81 boolean? failQuietly; |
| 82 }; |
| 83 |
| 84 dictionary LoadUnpackedOptions { |
| 85 // If false, an alert dialog will show in the event of a reload error. |
| 86 // Defaults to false. |
| 87 boolean? failQuietly; |
| 82 }; | 88 }; |
| 83 | 89 |
| 84 enum PackStatus { | 90 enum PackStatus { |
| 85 SUCCESS, | 91 SUCCESS, |
| 86 ERROR, | 92 ERROR, |
| 87 WARNING | 93 WARNING |
| 88 }; | 94 }; |
| 89 | 95 |
| 90 enum FileType { | 96 enum FileType { |
| 91 LOAD, | 97 LOAD, |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 optional VoidCallback callback); | 246 optional VoidCallback callback); |
| 241 | 247 |
| 242 // Allows / Disallows an extension to run in incognito mode. | 248 // Allows / Disallows an extension to run in incognito mode. |
| 243 // |extensionId| : The id of the extension. | 249 // |extensionId| : The id of the extension. |
| 244 // |allow| : Whether or not the extension should be allowed incognito. | 250 // |allow| : Whether or not the extension should be allowed incognito. |
| 245 static void allowIncognito(DOMString extensionId, | 251 static void allowIncognito(DOMString extensionId, |
| 246 boolean allow, | 252 boolean allow, |
| 247 optional VoidCallback callback); | 253 optional VoidCallback callback); |
| 248 | 254 |
| 249 // Loads a user-selected unpacked item. | 255 // Loads a user-selected unpacked item. |
| 250 static void loadUnpacked(optional VoidCallback callback); | 256 // |options| : Additional configuration parameters. |
| 257 static void loadUnpacked(optional LoadUnpackedOptions options, |
| 258 optional VoidCallback callback); |
| 251 | 259 |
| 252 // Loads an extension / app. | 260 // Loads an extension / app. |
| 253 // |directory| : The directory to load the extension from. | 261 // |directory| : The directory to load the extension from. |
| 254 static void loadDirectory( | 262 static void loadDirectory( |
| 255 [instanceOf=DirectoryEntry] object directory, | 263 [instanceOf=DirectoryEntry] object directory, |
| 256 PathCallback callback); | 264 PathCallback callback); |
| 257 | 265 |
| 258 // Open Dialog to browse to an entry. | 266 // Open Dialog to browse to an entry. |
| 259 // |selectType| : Select a file or a folder. | 267 // |selectType| : Select a file or a folder. |
| 260 // |fileType| : Required file type. For example, pem type is for private | 268 // |fileType| : Required file type. For example, pem type is for private |
| (...skipping 24 matching lines...) Expand all Loading... |
| 285 // Open the developer tools to focus on a particular error. | 293 // Open the developer tools to focus on a particular error. |
| 286 static void openDevTools(OpenDevToolsProperties properties); | 294 static void openDevTools(OpenDevToolsProperties properties); |
| 287 }; | 295 }; |
| 288 | 296 |
| 289 interface Events { | 297 interface Events { |
| 290 // Fired when a item state is changed. | 298 // Fired when a item state is changed. |
| 291 static void onItemStateChanged(EventData response); | 299 static void onItemStateChanged(EventData response); |
| 292 }; | 300 }; |
| 293 | 301 |
| 294 }; | 302 }; |
| OLD | NEW |