| 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 11 matching lines...) Expand all Loading... |
| 22 DOMString path; | 22 DOMString path; |
| 23 | 23 |
| 24 // For lazy background pages, the value is -1. | 24 // For lazy background pages, the value is -1. |
| 25 long render_process_id; | 25 long render_process_id; |
| 26 | 26 |
| 27 long render_view_id; | 27 long render_view_id; |
| 28 boolean incognito; | 28 boolean incognito; |
| 29 boolean generatedBackgroundPage; | 29 boolean generatedBackgroundPage; |
| 30 }; | 30 }; |
| 31 | 31 |
| 32 // DEPRECATED: Use OpenDevTools. |
| 33 dictionary InspectOptions { |
| 34 DOMString extension_id; |
| 35 (DOMString or long) render_process_id; |
| 36 (DOMString or long) render_view_id; |
| 37 boolean incognito; |
| 38 }; |
| 39 |
| 32 dictionary InstallWarning { | 40 dictionary InstallWarning { |
| 33 DOMString message; | 41 DOMString message; |
| 34 }; | 42 }; |
| 35 | 43 |
| 36 enum ExtensionType { | 44 enum ExtensionType { |
| 37 HOSTED_APP, | 45 HOSTED_APP, |
| 38 PLATFORM_APP, | 46 PLATFORM_APP, |
| 39 LEGACY_PACKAGED_APP, | 47 LEGACY_PACKAGED_APP, |
| 40 EXTENSION, | 48 EXTENSION, |
| 41 THEME, | 49 THEME, |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 | 219 |
| 212 // All views of the current extension. | 220 // All views of the current extension. |
| 213 ItemInspectView[] views; | 221 ItemInspectView[] views; |
| 214 }; | 222 }; |
| 215 | 223 |
| 216 dictionary GetExtensionsInfoOptions { | 224 dictionary GetExtensionsInfoOptions { |
| 217 boolean? includeDisabled; | 225 boolean? includeDisabled; |
| 218 boolean? includeTerminated; | 226 boolean? includeTerminated; |
| 219 }; | 227 }; |
| 220 | 228 |
| 221 // TODO(devlin): Combine inspect and openDevTools? | |
| 222 dictionary InspectOptions { | |
| 223 DOMString extension_id; | |
| 224 (DOMString or long) render_process_id; | |
| 225 (DOMString or long) render_view_id; | |
| 226 boolean incognito; | |
| 227 }; | |
| 228 | |
| 229 dictionary ExtensionConfigurationUpdate { | 229 dictionary ExtensionConfigurationUpdate { |
| 230 DOMString extensionId; | 230 DOMString extensionId; |
| 231 boolean? fileAccess; | 231 boolean? fileAccess; |
| 232 boolean? incognitoAccess; | 232 boolean? incognitoAccess; |
| 233 boolean? errorCollection; | 233 boolean? errorCollection; |
| 234 boolean? runOnAllUrls; | 234 boolean? runOnAllUrls; |
| 235 boolean? showActionButton; | 235 boolean? showActionButton; |
| 236 }; | 236 }; |
| 237 | 237 |
| 238 dictionary ReloadOptions { | 238 dictionary ReloadOptions { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 DOMString afterHighlight; | 334 DOMString afterHighlight; |
| 335 | 335 |
| 336 // A title for the file in the form '<extension name>: <file name>'. | 336 // A title for the file in the form '<extension name>: <file name>'. |
| 337 DOMString title; | 337 DOMString title; |
| 338 | 338 |
| 339 // The error message. | 339 // The error message. |
| 340 DOMString message; | 340 DOMString message; |
| 341 }; | 341 }; |
| 342 | 342 |
| 343 dictionary OpenDevToolsProperties { | 343 dictionary OpenDevToolsProperties { |
| 344 // The ID of the extension. This is only needed if opening the background |
| 345 // page (where renderViewId and renderProcessId are -1). |
| 346 DOMString? extensionId; |
| 347 |
| 344 // The ID of the render view in which the error occurred. | 348 // The ID of the render view in which the error occurred. |
| 345 long renderViewId; | 349 long renderViewId; |
| 346 | 350 |
| 347 // The ID of the process in which the error occurred. | 351 // The ID of the process in which the error occurred. |
| 348 long renderProcessId; | 352 long renderProcessId; |
| 349 | 353 |
| 354 boolean? incognito; |
| 355 |
| 350 // The URL in which the error occurred. | 356 // The URL in which the error occurred. |
| 351 DOMString? url; | 357 DOMString? url; |
| 352 | 358 |
| 353 // The line to focus the devtools at. | 359 // The line to focus the devtools at. |
| 354 long? lineNumber; | 360 long? lineNumber; |
| 355 | 361 |
| 356 // The column to focus the devtools at. | 362 // The column to focus the devtools at. |
| 357 long? columnNumber; | 363 long? columnNumber; |
| 358 }; | 364 }; |
| 359 | 365 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 394 // DEPRECATED: Prefer getExtensionsInfo. | 400 // DEPRECATED: Prefer getExtensionsInfo. |
| 395 static void getItemsInfo(boolean includeDisabled, | 401 static void getItemsInfo(boolean includeDisabled, |
| 396 boolean includeTerminated, | 402 boolean includeTerminated, |
| 397 ItemsInfoCallback callback); | 403 ItemsInfoCallback callback); |
| 398 | 404 |
| 399 // Opens a permissions dialog. | 405 // Opens a permissions dialog. |
| 400 // |extensionId| : The id of the extension to show permissions for. | 406 // |extensionId| : The id of the extension to show permissions for. |
| 401 static void showPermissionsDialog(DOMString extensionId, | 407 static void showPermissionsDialog(DOMString extensionId, |
| 402 optional VoidCallback callback); | 408 optional VoidCallback callback); |
| 403 | 409 |
| 404 // Opens a developer tools inspection window. | |
| 405 // |options| : The details about the inspection. | |
| 406 static void inspect(InspectOptions options, | |
| 407 optional VoidCallback callback); | |
| 408 | |
| 409 // Reloads a given extension. | 410 // Reloads a given extension. |
| 410 // |extensionId| : The id of the extension to reload. | 411 // |extensionId| : The id of the extension to reload. |
| 411 // |options| : Additional configuration parameters. | 412 // |options| : Additional configuration parameters. |
| 412 static void reload(DOMString extensionId, | 413 static void reload(DOMString extensionId, |
| 413 optional ReloadOptions options, | 414 optional ReloadOptions options, |
| 414 optional VoidCallback callback); | 415 optional VoidCallback callback); |
| 415 | 416 |
| 416 // Modifies an extension's current configuration. | 417 // Modifies an extension's current configuration. |
| 417 // |update| : The parameters for updating the extension's configuration. | 418 // |update| : The parameters for updating the extension's configuration. |
| 418 // Any properties omitted from |update| will not be changed. | 419 // Any properties omitted from |update| will not be changed. |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 452 | 453 |
| 453 // Returns true if the profile is managed. | 454 // Returns true if the profile is managed. |
| 454 static void isProfileManaged(BooleanCallback callback); | 455 static void isProfileManaged(BooleanCallback callback); |
| 455 | 456 |
| 456 // Reads and returns the contents of a file related to an extension which | 457 // Reads and returns the contents of a file related to an extension which |
| 457 // caused an error. | 458 // caused an error. |
| 458 static void requestFileSource(RequestFileSourceProperties properties, | 459 static void requestFileSource(RequestFileSourceProperties properties, |
| 459 RequestFileSourceCallback callback); | 460 RequestFileSourceCallback callback); |
| 460 | 461 |
| 461 // Open the developer tools to focus on a particular error. | 462 // Open the developer tools to focus on a particular error. |
| 462 static void openDevTools(OpenDevToolsProperties properties); | 463 static void openDevTools(OpenDevToolsProperties properties, |
| 464 optional VoidCallback callback); |
| 465 |
| 466 // Deprecated api methods, retained for compatability. |
| 467 [nocompile] static void allowIncognito(DOMString extensionId, |
| 468 boolean allow, |
| 469 optional VoidCallback callback); |
| 470 [nocompile] static void allowFileAccess(DOMString extensionId, |
| 471 boolean allow, |
| 472 optional VoidCallback callback); |
| 473 [nocompile] static void inspect(InspectOptions options, |
| 474 optional VoidCallback callback); |
| 463 }; | 475 }; |
| 464 | 476 |
| 465 interface Events { | 477 interface Events { |
| 466 // Fired when a item state is changed. | 478 // Fired when a item state is changed. |
| 467 static void onItemStateChanged(EventData response); | 479 static void onItemStateChanged(EventData response); |
| 468 }; | 480 }; |
| 469 | 481 |
| 470 }; | 482 }; |
| OLD | NEW |