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

Unified Diff: chrome/common/extensions/api/developer_private.idl

Issue 1060993003: [Extensions UI] Use developerPrivate API for profile configuration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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: chrome/common/extensions/api/developer_private.idl
diff --git a/chrome/common/extensions/api/developer_private.idl b/chrome/common/extensions/api/developer_private.idl
index 56ad9cbc589bc8e823ba87a135d8d9d31375a973..1074ec0b01f5d7af2884b6ffd95c5456d2c6dab2 100644
--- a/chrome/common/extensions/api/developer_private.idl
+++ b/chrome/common/extensions/api/developer_private.idl
@@ -149,41 +149,49 @@ namespace developerPrivate {
};
dictionary ExtensionInfo {
- boolean actionButtonHidden; // enable_show_button
+ boolean actionButtonHidden;
DOMString? blacklistText;
DOMString[] dependentExtensions;
DOMString description;
- DisableReasons disableReasons; //suspicious, corrupt, updaterequired
- AccessModifier errorCollection; // errorCollectionEd, wantsErrorCollection;
- AccessModifier fileAccess; // allowFileAccess, wantsFileAccess
- HomePage homePage; // homepageProvided && homepageUrl
- DOMString iconUrl; // icon
+ DisableReasons disableReasons;
+ AccessModifier errorCollection;
+ AccessModifier fileAccess;
+ HomePage homePage;
+ DOMString iconUrl;
DOMString id;
- AccessModifier incognitoAccess; // enabled/can be enabled incognito
+ AccessModifier incognitoAccess;
boolean installedByCustodian;
DOMString[] installWarnings;
DOMString? launchUrl;
- Location location; // is_unpacked, is from store, allow reload
+ Location location;
DOMString? locationText;
ManifestError[] manifestErrors;
- boolean mustRemainInstalled; // recommendedInstall
+ boolean mustRemainInstalled;
DOMString name;
boolean offlineEnabled;
OptionsPage? optionsPage;
DOMString? path;
DOMString? policyText;
DOMString? prettifiedPath;
- AccessModifier runOnAllUrls; // allowAllUrls, showAllUrls
+ AccessModifier runOnAllUrls;
RuntimeError[] runtimeErrors;
- DOMString[] runtimeWarnings; // warnings
+ DOMString[] runtimeWarnings;
ExtensionState state;
- ExtensionType type; // is_hosted_app, is_platform_app, etc
+ ExtensionType type;
DOMString updateUrl;
- boolean userMayModify; // managed install
+ boolean userMayModify;
DOMString version;
ExtensionView[] views;
};
+ dictionary ProfileInfo {
+ boolean appInfoDialogEnabled;
+ boolean canLoadUnpacked;
+ boolean inDeveloperMode;
+ boolean isIncognitoAvailable;
+ boolean isSupervised;
+ };
+
// DEPRECATED: Prefer ExtensionInfo.
dictionary ItemInfo {
DOMString id;
@@ -235,6 +243,10 @@ namespace developerPrivate {
boolean? showActionButton;
};
+ dictionary ProfileConfigurationUpdate {
+ boolean? inDeveloperMode;
+ };
+
dictionary ReloadOptions {
// If false, an alert dialog will show in the event of a reload error.
// Defaults to false.
@@ -375,6 +387,7 @@ namespace developerPrivate {
callback ExtensionInfosCallback = void (ExtensionInfo[] result);
callback ExtensionInfoCallback = void (ExtensionInfo result);
callback ItemsInfoCallback = void (ItemInfo[] result);
+ callback ProfileInfoCallback = void (ProfileInfo info);
callback GetProjectsInfoCallback = void (ProjectInfo[] result);
callback PathCallback = void (DOMString path);
callback PackCallback = void (PackDirectoryResponse response);
@@ -409,6 +422,15 @@ namespace developerPrivate {
boolean includeTerminated,
ItemsInfoCallback callback);
+ // Returns the current profile's configuration.
+ static void getProfileConfiguration(ProfileInfoCallback callback);
+
+ // Updates the active profile.
+ // |update| : The parameters for updating the profile's configuration. Any
+ // properties omitted from |update| will not be changed.
+ static void updateProfileConfiguration(ProfileConfigurationUpdate update,
+ optional VoidCallback callback);
+
// Opens a permissions dialog.
// |extensionId| : The id of the extension to show permissions for.
static void showPermissionsDialog(DOMString extensionId,
« no previous file with comments | « chrome/browser/ui/webui/extensions/extension_settings_handler.cc ('k') | extensions/browser/extension_function.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698