OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 /** @fileoverview Externs generated from namespace: developerPrivate */ | 5 /** @fileoverview Externs generated from namespace: developerPrivate */ |
6 | 6 |
7 /** | 7 /** |
8 * @const | 8 * @const |
9 */ | 9 */ |
10 chrome.developerPrivate = {}; | 10 chrome.developerPrivate = {}; |
11 | 11 |
12 /** | 12 /** |
13 * @enum {string} | 13 * @enum {string} |
14 * @see https://developer.chrome.com/extensions/developerPrivate#type-ItemType | 14 * @see https://developer.chrome.com/extensions/developerPrivate#type-ItemType |
15 */ | 15 */ |
16 chrome.developerPrivate.ItemType = { | 16 chrome.developerPrivate.ItemType = { |
17 hosted_app: 'hosted_app', | 17 HOSTED_APP: 'hosted_app', |
18 packaged_app: 'packaged_app', | 18 PACKAGED_APP: 'packaged_app', |
19 legacy_packaged_app: 'legacy_packaged_app', | 19 LEGACY_PACKAGED_APP: 'legacy_packaged_app', |
20 extension: 'extension', | 20 EXTENSION: 'extension', |
21 theme: 'theme', | 21 THEME: 'theme', |
22 }; | 22 }; |
23 | 23 |
24 /** | 24 /** |
25 * @typedef {{ | 25 * @typedef {{ |
26 * path: string, | 26 * path: string, |
27 * render_process_id: number, | 27 * render_process_id: number, |
28 * render_view_id: number, | 28 * render_view_id: number, |
29 * incognito: boolean, | 29 * incognito: boolean, |
30 * generatedBackgroundPage: boolean | 30 * generatedBackgroundPage: boolean |
31 * }} | 31 * }} |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 chrome.developerPrivate.EventType = { | 383 chrome.developerPrivate.EventType = { |
384 INSTALLED: 'INSTALLED', | 384 INSTALLED: 'INSTALLED', |
385 UNINSTALLED: 'UNINSTALLED', | 385 UNINSTALLED: 'UNINSTALLED', |
386 LOADED: 'LOADED', | 386 LOADED: 'LOADED', |
387 UNLOADED: 'UNLOADED', | 387 UNLOADED: 'UNLOADED', |
388 VIEW_REGISTERED: 'VIEW_REGISTERED', | 388 VIEW_REGISTERED: 'VIEW_REGISTERED', |
389 VIEW_UNREGISTERED: 'VIEW_UNREGISTERED', | 389 VIEW_UNREGISTERED: 'VIEW_UNREGISTERED', |
390 ERROR_ADDED: 'ERROR_ADDED', | 390 ERROR_ADDED: 'ERROR_ADDED', |
391 ERRORS_REMOVED: 'ERRORS_REMOVED', | 391 ERRORS_REMOVED: 'ERRORS_REMOVED', |
392 PREFS_CHANGED: 'PREFS_CHANGED', | 392 PREFS_CHANGED: 'PREFS_CHANGED', |
| 393 WARNINGS_CHANGED: 'WARNINGS_CHANGED', |
393 }; | 394 }; |
394 | 395 |
395 /** | 396 /** |
396 * @typedef {{ | 397 * @typedef {{ |
397 * message: string, | 398 * message: string, |
398 * item_path: string, | 399 * item_path: string, |
399 * pem_path: string, | 400 * pem_path: string, |
400 * override_flags: number, | 401 * override_flags: number, |
401 * status: !chrome.developerPrivate.PackStatus | 402 * status: !chrome.developerPrivate.PackStatus |
402 * }} | 403 * }} |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 /** | 610 /** |
610 * Open the developer tools to focus on a particular error. | 611 * Open the developer tools to focus on a particular error. |
611 * @param {OpenDevToolsProperties} properties | 612 * @param {OpenDevToolsProperties} properties |
612 * @param {function():void=} callback | 613 * @param {function():void=} callback |
613 * @see https://developer.chrome.com/extensions/developerPrivate#method-openDevT
ools | 614 * @see https://developer.chrome.com/extensions/developerPrivate#method-openDevT
ools |
614 */ | 615 */ |
615 chrome.developerPrivate.openDevTools = function(properties, callback) {}; | 616 chrome.developerPrivate.openDevTools = function(properties, callback) {}; |
616 | 617 |
617 /** | 618 /** |
618 * Delete reported extension erors. | 619 * Delete reported extension erors. |
619 * @param {DeleteExtensionErrorsProperties} properties | 620 * @param {DeleteExtensionErrorsProperties} properties The properties specifying |
| 621 * the errors to remove. |
620 * @param {function():void=} callback | 622 * @param {function():void=} callback |
621 * @see https://developer.chrome.com/extensions/developerPrivate#method-deleteEx
tensionErrors | 623 * @see https://developer.chrome.com/extensions/developerPrivate#method-deleteEx
tensionErrors |
622 */ | 624 */ |
623 chrome.developerPrivate.deleteExtensionErrors = function(properties, callback) {
}; | 625 chrome.developerPrivate.deleteExtensionErrors = function(properties, callback) {
}; |
624 | 626 |
625 /** | 627 /** |
626 * Repairs the extension specified. | 628 * Repairs the extension specified. |
627 * @param {string} extensionId | 629 * @param {string} extensionId The id of the extension to repair. |
628 * @param {function():void=} callback | 630 * @param {function():void=} callback |
629 * @see https://developer.chrome.com/extensions/developerPrivate#method-repairEx
tension | 631 * @see https://developer.chrome.com/extensions/developerPrivate#method-repairEx
tension |
630 */ | 632 */ |
631 chrome.developerPrivate.repairExtension = function(extensionId, callback) {}; | 633 chrome.developerPrivate.repairExtension = function(extensionId, callback) {}; |
632 | 634 |
633 /** | 635 /** |
634 * Shows the options page for the extension specified. | 636 * Shows the options page for the extension specified. |
635 * @param {string} extensionId | 637 * @param {string} extensionId The id of the extension to show the options page |
| 638 * for. |
636 * @param {function():void=} callback | 639 * @param {function():void=} callback |
637 * @see https://developer.chrome.com/extensions/developerPrivate#method-showOpti
ons | 640 * @see https://developer.chrome.com/extensions/developerPrivate#method-showOpti
ons |
638 */ | 641 */ |
639 chrome.developerPrivate.showOptions = function(extensionId, callback) {}; | 642 chrome.developerPrivate.showOptions = function(extensionId, callback) {}; |
640 | 643 |
641 /** | 644 /** |
642 * Shows the path of the extension specified. | 645 * Shows the path of the extension specified. |
643 * @param {string} extensionId | 646 * @param {string} extensionId The id of the extension to show the path for. |
644 * @param {function():void=} callback | 647 * @param {function():void=} callback |
645 * @see https://developer.chrome.com/extensions/developerPrivate#method-showPath | 648 * @see https://developer.chrome.com/extensions/developerPrivate#method-showPath |
646 */ | 649 */ |
647 chrome.developerPrivate.showPath = function(extensionId, callback) {}; | 650 chrome.developerPrivate.showPath = function(extensionId, callback) {}; |
648 | 651 |
649 /** | 652 /** |
650 * @param {string} id | 653 * @param {string} id |
651 * @param {boolean} enabled | 654 * @param {boolean} enabled |
652 * @param {function():void=} callback | 655 * @param {function():void=} callback |
653 * @deprecated Use management.setEnabled | 656 * @deprecated Use management.setEnabled |
(...skipping 26 matching lines...) Expand all Loading... |
680 * @see https://developer.chrome.com/extensions/developerPrivate#method-inspect | 683 * @see https://developer.chrome.com/extensions/developerPrivate#method-inspect |
681 */ | 684 */ |
682 chrome.developerPrivate.inspect = function(options, callback) {}; | 685 chrome.developerPrivate.inspect = function(options, callback) {}; |
683 | 686 |
684 /** | 687 /** |
685 * Fired when a item state is changed. | 688 * Fired when a item state is changed. |
686 * @type {!ChromeEvent} | 689 * @type {!ChromeEvent} |
687 * @see https://developer.chrome.com/extensions/developerPrivate#event-onItemSta
teChanged | 690 * @see https://developer.chrome.com/extensions/developerPrivate#event-onItemSta
teChanged |
688 */ | 691 */ |
689 chrome.developerPrivate.onItemStateChanged; | 692 chrome.developerPrivate.onItemStateChanged; |
| 693 |
| 694 /** |
| 695 * Fired when the profile's state has changed. |
| 696 * @type {!ChromeEvent} |
| 697 * @see https://developer.chrome.com/extensions/developerPrivate#event-onProfile
StateChanged |
| 698 */ |
| 699 chrome.developerPrivate.onProfileStateChanged; |
OLD | NEW |