Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: third_party/closure_compiler/externs/developer_private.js

Issue 997183005: [Extensions] Add a developerPrivate.updateExtensionConfiguration function (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Note: hand-modified to change Array to !Array in ItemInfo typedef, and add 7 // Note: hand-modified to change Array to !Array in ItemInfo typedef, and add
8 // enum definitions. 8 // enum definitions.
9 9
10 /** 10 /**
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 /** 80 /**
81 * @enum {string} 81 * @enum {string}
82 */ 82 */
83 chrome.developerPrivate.ExtensionState = { 83 chrome.developerPrivate.ExtensionState = {
84 ENABLED: 'ENABLED', 84 ENABLED: 'ENABLED',
85 DISABLED: 'DISABLED', 85 DISABLED: 'DISABLED',
86 TERMINATED: 'TERMINATED' 86 TERMINATED: 'TERMINATED'
87 }; 87 };
88 88
89 /** 89 /**
90 * @enum {string}
91 */
92 chrome.developerPrivate.PermissionType = {
93 FILE_ACCESS: 'FILE_ACCESS',
94 INCOGNITO_ACCESS: 'INCOGNITO_ACCESS',
95 ERROR_COLLECTION: 'ERROR_COLLECTION',
96 RUN_ON_ALL_URLS: 'RUN_ON_ALL_URLS',
97 SHOW_ACTION_BUTTON: 'SHOW_ACTION_BUTTON'
98 };
99
100 /**
90 * @typedef {{ 101 * @typedef {{
91 * message: string 102 * message: string
92 * }} 103 * }}
93 */ 104 */
94 var InstallWarning; 105 var InstallWarning;
95 106
96 /** 107 /**
97 * @typedef {{ 108 * @typedef {{
98 * isEnabled: boolean, 109 * isEnabled: boolean,
99 * isActive: boolean 110 * isActive: boolean
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 * extension_id: string, 274 * extension_id: string,
264 * render_process_id: (string|number), 275 * render_process_id: (string|number),
265 * render_view_id: (string|number), 276 * render_view_id: (string|number),
266 * incognito: boolean 277 * incognito: boolean
267 * }} 278 * }}
268 */ 279 */
269 var InspectOptions; 280 var InspectOptions;
270 281
271 /** 282 /**
272 * @typedef {{ 283 * @typedef {{
284 * extensionId: string,
285 * permission: chrome.developerPrivate.PermissionType,
286 * isActive: boolean
287 * }}
288 */
289 var SetPermissionProperties;
290
291 /**
292 * @typedef {{
273 * failQuietly: (boolean|undefined) 293 * failQuietly: (boolean|undefined)
274 * }} 294 * }}
275 */ 295 */
276 var ReloadOptions; 296 var ReloadOptions;
277 297
278 /** 298 /**
279 * @typedef {{ 299 * @typedef {{
280 * failQuietly: (boolean|undefined) 300 * failQuietly: (boolean|undefined)
281 * }} 301 * }}
282 */ 302 */
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
442 462
443 /** 463 /**
444 * Reloads a given extension. 464 * Reloads a given extension.
445 * @param {string} extensionId The id of the extension to reload. 465 * @param {string} extensionId The id of the extension to reload.
446 * @param {ReloadOptions=} options Additional configuration parameters. 466 * @param {ReloadOptions=} options Additional configuration parameters.
447 * @param {Function=} callback 467 * @param {Function=} callback
448 */ 468 */
449 chrome.developerPrivate.reload = function(extensionId, options, callback) {}; 469 chrome.developerPrivate.reload = function(extensionId, options, callback) {};
450 470
451 /** 471 /**
472 * Sets a permission for an extension.
473 * @param {SetPermissionProperties} properties The properties to use for setting the permission.
474 * @param {Function=} callback
475 */
476 chrome.developerPrivate.setExtensionPermission = function(properties, callback) {};
477
478 /**
452 * Enables / Disables a given extension. 479 * Enables / Disables a given extension.
453 * @param {string} extensionId The id of the extension to enable/disable. 480 * @param {string} extensionId The id of the extension to enable/disable.
454 * @param {boolean} enable Whether the extension should be enabled. 481 * @param {boolean} enable Whether the extension should be enabled.
455 * @param {Function=} callback 482 * @param {Function=} callback
456 */ 483 */
457 chrome.developerPrivate.enable = function(extensionId, enable, callback) {}; 484 chrome.developerPrivate.enable = function(extensionId, enable, callback) {};
458 485
459 /** 486 /**
460 * Allows / Disallows an extension to run in incognito mode. 487 * Allows / Disallows an extension to run in incognito mode.
461 * @param {string} extensionId The id of the extension. 488 * @param {string} extensionId The id of the extension.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 chrome.developerPrivate.requestFileSource = function(properties, callback) {}; 543 chrome.developerPrivate.requestFileSource = function(properties, callback) {};
517 544
518 /** 545 /**
519 * Open the developer tools to focus on a particular error. 546 * Open the developer tools to focus on a particular error.
520 * @param {OpenDevToolsProperties} properties 547 * @param {OpenDevToolsProperties} properties
521 */ 548 */
522 chrome.developerPrivate.openDevTools = function(properties) {}; 549 chrome.developerPrivate.openDevTools = function(properties) {};
523 550
524 /** @type {!ChromeEvent} */ 551 /** @type {!ChromeEvent} */
525 chrome.developerPrivate.onItemStateChanged; 552 chrome.developerPrivate.onItemStateChanged;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698