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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/closure_compiler/externs/developer_private.js
diff --git a/third_party/closure_compiler/externs/developer_private.js b/third_party/closure_compiler/externs/developer_private.js
index 75b8556eaccd6d7c0142e7c9ed54dd6f2cde00bb..1eb706dc897d625be4beb83153a4f3ed48864077 100644
--- a/third_party/closure_compiler/externs/developer_private.js
+++ b/third_party/closure_compiler/externs/developer_private.js
@@ -87,6 +87,17 @@ chrome.developerPrivate.ExtensionState = {
};
/**
+ * @enum {string}
+ */
+chrome.developerPrivate.PermissionType = {
+ FILE_ACCESS: 'FILE_ACCESS',
+ INCOGNITO_ACCESS: 'INCOGNITO_ACCESS',
+ ERROR_COLLECTION: 'ERROR_COLLECTION',
+ RUN_ON_ALL_URLS: 'RUN_ON_ALL_URLS',
+ SHOW_ACTION_BUTTON: 'SHOW_ACTION_BUTTON'
+};
+
+/**
* @typedef {{
* message: string
* }}
@@ -270,6 +281,15 @@ var InspectOptions;
/**
* @typedef {{
+ * extensionId: string,
+ * permission: chrome.developerPrivate.PermissionType,
+ * isActive: boolean
+ * }}
+ */
+var SetPermissionProperties;
+
+/**
+ * @typedef {{
* failQuietly: (boolean|undefined)
* }}
*/
@@ -449,6 +469,13 @@ chrome.developerPrivate.allowFileAccess = function(extensionId, allow, callback)
chrome.developerPrivate.reload = function(extensionId, options, callback) {};
/**
+ * Sets a permission for an extension.
+ * @param {SetPermissionProperties} properties The properties to use for setting the permission.
+ * @param {Function=} callback
+ */
+chrome.developerPrivate.setExtensionPermission = function(properties, callback) {};
+
+/**
* Enables / Disables a given extension.
* @param {string} extensionId The id of the extension to enable/disable.
* @param {boolean} enable Whether the extension should be enabled.

Powered by Google App Engine
This is Rietveld 408576698