Chromium Code Reviews| 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 // DEPRECATED: Prefer ExtensionType. | 10 // DEPRECATED: Prefer ExtensionType. |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 219 }; | 219 }; |
| 220 | 220 |
| 221 // TODO(devlin): Combine inspect and openDevTools? | 221 // TODO(devlin): Combine inspect and openDevTools? |
| 222 dictionary InspectOptions { | 222 dictionary InspectOptions { |
| 223 DOMString extension_id; | 223 DOMString extension_id; |
| 224 (DOMString or long) render_process_id; | 224 (DOMString or long) render_process_id; |
| 225 (DOMString or long) render_view_id; | 225 (DOMString or long) render_view_id; |
| 226 boolean incognito; | 226 boolean incognito; |
| 227 }; | 227 }; |
| 228 | 228 |
| 229 dictionary ExtensionConfigurationUpdate { | |
| 230 DOMString extensionId; | |
| 231 boolean? fileAccess; | |
| 232 boolean? incognitoAccess; | |
| 233 boolean? errorCollection; | |
| 234 boolean? runOnAllUrls; | |
| 235 boolean? showActionButton; | |
| 236 }; | |
| 237 | |
| 229 dictionary ReloadOptions { | 238 dictionary ReloadOptions { |
| 230 // If false, an alert dialog will show in the event of a reload error. | 239 // If false, an alert dialog will show in the event of a reload error. |
| 231 // Defaults to false. | 240 // Defaults to false. |
| 232 boolean? failQuietly; | 241 boolean? failQuietly; |
| 233 }; | 242 }; |
| 234 | 243 |
| 235 dictionary LoadUnpackedOptions { | 244 dictionary LoadUnpackedOptions { |
| 236 // If false, an alert dialog will show in the event of a reload error. | 245 // If false, an alert dialog will show in the event of a reload error. |
| 237 // Defaults to false. | 246 // Defaults to false. |
| 238 boolean? failQuietly; | 247 boolean? failQuietly; |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 390 // Opens a permissions dialog. | 399 // Opens a permissions dialog. |
| 391 // |extensionId| : The id of the extension to show permissions for. | 400 // |extensionId| : The id of the extension to show permissions for. |
| 392 static void showPermissionsDialog(DOMString extensionId, | 401 static void showPermissionsDialog(DOMString extensionId, |
| 393 optional VoidCallback callback); | 402 optional VoidCallback callback); |
| 394 | 403 |
| 395 // Opens a developer tools inspection window. | 404 // Opens a developer tools inspection window. |
| 396 // |options| : The details about the inspection. | 405 // |options| : The details about the inspection. |
| 397 static void inspect(InspectOptions options, | 406 static void inspect(InspectOptions options, |
| 398 optional VoidCallback callback); | 407 optional VoidCallback callback); |
| 399 | 408 |
| 400 // Enables / Disables file access for an extension. | |
| 401 // |extensionId| : The id of the extension to set file access for. | |
| 402 // |allow| : Whether or not to allow file access for the extension. | |
| 403 static void allowFileAccess(DOMString extensionId, | |
| 404 boolean allow, | |
| 405 optional VoidCallback callback); | |
| 406 | |
| 407 // Reloads a given extension. | 409 // Reloads a given extension. |
| 408 // |extensionId| : The id of the extension to reload. | 410 // |extensionId| : The id of the extension to reload. |
| 409 // |options| : Additional configuration parameters. | 411 // |options| : Additional configuration parameters. |
| 410 static void reload(DOMString extensionId, | 412 static void reload(DOMString extensionId, |
| 411 optional ReloadOptions options, | 413 optional ReloadOptions options, |
| 412 optional VoidCallback callback); | 414 optional VoidCallback callback); |
| 413 | 415 |
| 414 // Allows / Disallows an extension to run in incognito mode. | 416 // Modifies an extension's current configuration. |
|
not at google - send to devlin
2015/03/17 14:31:31
"Any properties omitted from |update| will not be
Devlin
2015/03/18 18:38:01
Done.
| |
| 415 // |extensionId| : The id of the extension. | 417 // |update| : The parameters for updating the extension's configuration. |
| 416 // |allow| : Whether or not the extension should be allowed incognito. | 418 static void updateExtensionConfiguration( |
| 417 static void allowIncognito(DOMString extensionId, | 419 ExtensionConfigurationUpdate update, |
| 418 boolean allow, | 420 optional VoidCallback callback); |
| 419 optional VoidCallback callback); | |
| 420 | 421 |
| 421 // Loads a user-selected unpacked item. | 422 // Loads a user-selected unpacked item. |
| 422 // |options| : Additional configuration parameters. | 423 // |options| : Additional configuration parameters. |
| 423 static void loadUnpacked(optional LoadUnpackedOptions options, | 424 static void loadUnpacked(optional LoadUnpackedOptions options, |
| 424 optional VoidCallback callback); | 425 optional VoidCallback callback); |
| 425 | 426 |
| 426 // Loads an extension / app. | 427 // Loads an extension / app. |
| 427 // |directory| : The directory to load the extension from. | 428 // |directory| : The directory to load the extension from. |
| 428 static void loadDirectory( | 429 static void loadDirectory( |
| 429 [instanceOf=DirectoryEntry] object directory, | 430 [instanceOf=DirectoryEntry] object directory, |
| (...skipping 29 matching lines...) Expand all Loading... | |
| 459 // Open the developer tools to focus on a particular error. | 460 // Open the developer tools to focus on a particular error. |
| 460 static void openDevTools(OpenDevToolsProperties properties); | 461 static void openDevTools(OpenDevToolsProperties properties); |
| 461 }; | 462 }; |
| 462 | 463 |
| 463 interface Events { | 464 interface Events { |
| 464 // Fired when a item state is changed. | 465 // Fired when a item state is changed. |
| 465 static void onItemStateChanged(EventData response); | 466 static void onItemStateChanged(EventData response); |
| 466 }; | 467 }; |
| 467 | 468 |
| 468 }; | 469 }; |
| OLD | NEW |