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

Side by Side 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 unified diff | Download patch
OLDNEW
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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 dictionary ExtensionView { 143 dictionary ExtensionView {
144 DOMString url; 144 DOMString url;
145 long renderProcessId; 145 long renderProcessId;
146 long renderViewId; 146 long renderViewId;
147 boolean incognito; 147 boolean incognito;
148 ViewType type; 148 ViewType type;
149 }; 149 };
150 150
151 dictionary ExtensionInfo { 151 dictionary ExtensionInfo {
152 boolean actionButtonHidden; // enable_show_button 152 boolean actionButtonHidden;
153 DOMString? blacklistText; 153 DOMString? blacklistText;
154 DOMString[] dependentExtensions; 154 DOMString[] dependentExtensions;
155 DOMString description; 155 DOMString description;
156 DisableReasons disableReasons; //suspicious, corrupt, updaterequired 156 DisableReasons disableReasons;
157 AccessModifier errorCollection; // errorCollectionEd, wantsErrorCollection; 157 AccessModifier errorCollection;
158 AccessModifier fileAccess; // allowFileAccess, wantsFileAccess 158 AccessModifier fileAccess;
159 HomePage homePage; // homepageProvided && homepageUrl 159 HomePage homePage;
160 DOMString iconUrl; // icon 160 DOMString iconUrl;
161 DOMString id; 161 DOMString id;
162 AccessModifier incognitoAccess; // enabled/can be enabled incognito 162 AccessModifier incognitoAccess;
163 boolean installedByCustodian; 163 boolean installedByCustodian;
164 DOMString[] installWarnings; 164 DOMString[] installWarnings;
165 DOMString? launchUrl; 165 DOMString? launchUrl;
166 Location location; // is_unpacked, is from store, allow reload 166 Location location;
167 DOMString? locationText; 167 DOMString? locationText;
168 ManifestError[] manifestErrors; 168 ManifestError[] manifestErrors;
169 boolean mustRemainInstalled; // recommendedInstall 169 boolean mustRemainInstalled;
170 DOMString name; 170 DOMString name;
171 boolean offlineEnabled; 171 boolean offlineEnabled;
172 OptionsPage? optionsPage; 172 OptionsPage? optionsPage;
173 DOMString? path; 173 DOMString? path;
174 DOMString? policyText; 174 DOMString? policyText;
175 DOMString? prettifiedPath; 175 DOMString? prettifiedPath;
176 AccessModifier runOnAllUrls; // allowAllUrls, showAllUrls 176 AccessModifier runOnAllUrls;
177 RuntimeError[] runtimeErrors; 177 RuntimeError[] runtimeErrors;
178 DOMString[] runtimeWarnings; // warnings 178 DOMString[] runtimeWarnings;
179 ExtensionState state; 179 ExtensionState state;
180 ExtensionType type; // is_hosted_app, is_platform_app, etc 180 ExtensionType type;
181 DOMString updateUrl; 181 DOMString updateUrl;
182 boolean userMayModify; // managed install 182 boolean userMayModify;
183 DOMString version; 183 DOMString version;
184 ExtensionView[] views; 184 ExtensionView[] views;
185 }; 185 };
186 186
187 dictionary ProfileInfo {
188 boolean appInfoDialogEnabled;
189 boolean canLoadUnpacked;
190 boolean inDeveloperMode;
191 boolean isIncognitoAvailable;
192 boolean isSupervised;
193 // NOTE: This should be removed soon. crbug.com/463935
194 boolean shouldShowAdtPromo;
195 };
196
187 // DEPRECATED: Prefer ExtensionInfo. 197 // DEPRECATED: Prefer ExtensionInfo.
188 dictionary ItemInfo { 198 dictionary ItemInfo {
189 DOMString id; 199 DOMString id;
190 DOMString name; 200 DOMString name;
191 DOMString version; 201 DOMString version;
192 DOMString description; 202 DOMString description;
193 boolean may_disable; 203 boolean may_disable;
194 boolean enabled; 204 boolean enabled;
195 boolean isApp; 205 boolean isApp;
196 ItemType type; 206 ItemType type;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 238
229 dictionary ExtensionConfigurationUpdate { 239 dictionary ExtensionConfigurationUpdate {
230 DOMString extensionId; 240 DOMString extensionId;
231 boolean? fileAccess; 241 boolean? fileAccess;
232 boolean? incognitoAccess; 242 boolean? incognitoAccess;
233 boolean? errorCollection; 243 boolean? errorCollection;
234 boolean? runOnAllUrls; 244 boolean? runOnAllUrls;
235 boolean? showActionButton; 245 boolean? showActionButton;
236 }; 246 };
237 247
248 dictionary ProfileConfigurationUpdate {
249 boolean? inDeveloperMode;
250 // NOTE: This should be removed soon. crbug.com/463935
251 boolean? dismissedAdtPromo;
252 };
253
238 dictionary ReloadOptions { 254 dictionary ReloadOptions {
239 // If false, an alert dialog will show in the event of a reload error. 255 // If false, an alert dialog will show in the event of a reload error.
240 // Defaults to false. 256 // Defaults to false.
241 boolean? failQuietly; 257 boolean? failQuietly;
242 }; 258 };
243 259
244 dictionary LoadUnpackedOptions { 260 dictionary LoadUnpackedOptions {
245 // If false, an alert dialog will show in the event of a reload error. 261 // If false, an alert dialog will show in the event of a reload error.
246 // Defaults to false. 262 // Defaults to false.
247 boolean? failQuietly; 263 boolean? failQuietly;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 DOMString extensionId; 384 DOMString extensionId;
369 long[]? errorIds; 385 long[]? errorIds;
370 ErrorType? type; 386 ErrorType? type;
371 }; 387 };
372 388
373 callback VoidCallback = void (); 389 callback VoidCallback = void ();
374 callback BooleanCallback = void (boolean result); 390 callback BooleanCallback = void (boolean result);
375 callback ExtensionInfosCallback = void (ExtensionInfo[] result); 391 callback ExtensionInfosCallback = void (ExtensionInfo[] result);
376 callback ExtensionInfoCallback = void (ExtensionInfo result); 392 callback ExtensionInfoCallback = void (ExtensionInfo result);
377 callback ItemsInfoCallback = void (ItemInfo[] result); 393 callback ItemsInfoCallback = void (ItemInfo[] result);
394 callback ProfileInfoCallback = void (ProfileInfo info);
378 callback GetProjectsInfoCallback = void (ProjectInfo[] result); 395 callback GetProjectsInfoCallback = void (ProjectInfo[] result);
379 callback PathCallback = void (DOMString path); 396 callback PathCallback = void (DOMString path);
380 callback PackCallback = void (PackDirectoryResponse response); 397 callback PackCallback = void (PackDirectoryResponse response);
381 callback VoidCallback = void(); 398 callback VoidCallback = void();
382 callback RequestFileSourceCallback = 399 callback RequestFileSourceCallback =
383 void (RequestFileSourceResponse response); 400 void (RequestFileSourceResponse response);
384 401
385 interface Functions { 402 interface Functions {
386 // Runs auto update for extensions and apps immediately. 403 // Runs auto update for extensions and apps immediately.
387 // |callback| : Called with the boolean result, true if autoUpdate is 404 // |callback| : Called with the boolean result, true if autoUpdate is
(...skipping 14 matching lines...) Expand all
402 419
403 // Returns information of all the extensions and apps installed. 420 // Returns information of all the extensions and apps installed.
404 // |includeDisabled| : include disabled items. 421 // |includeDisabled| : include disabled items.
405 // |includeTerminated| : include terminated items. 422 // |includeTerminated| : include terminated items.
406 // |callback| : Called with items info. 423 // |callback| : Called with items info.
407 [deprecated="Use getExtensionsInfo"] static void getItemsInfo( 424 [deprecated="Use getExtensionsInfo"] static void getItemsInfo(
408 boolean includeDisabled, 425 boolean includeDisabled,
409 boolean includeTerminated, 426 boolean includeTerminated,
410 ItemsInfoCallback callback); 427 ItemsInfoCallback callback);
411 428
429 // Returns the current profile's configuration.
430 static void getProfileConfiguration(ProfileInfoCallback callback);
431
432 // Updates the active profile.
433 // |update| : The parameters for updating the profile's configuration. Any
434 // properties omitted from |update| will not be changed.
435 static void updateProfileConfiguration(ProfileConfigurationUpdate update,
436 optional VoidCallback callback);
437
412 // Opens a permissions dialog. 438 // Opens a permissions dialog.
413 // |extensionId| : The id of the extension to show permissions for. 439 // |extensionId| : The id of the extension to show permissions for.
414 static void showPermissionsDialog(DOMString extensionId, 440 static void showPermissionsDialog(DOMString extensionId,
415 optional VoidCallback callback); 441 optional VoidCallback callback);
416 442
417 // Reloads a given extension. 443 // Reloads a given extension.
418 // |extensionId| : The id of the extension to reload. 444 // |extensionId| : The id of the extension to reload.
419 // |options| : Additional configuration parameters. 445 // |options| : Additional configuration parameters.
420 static void reload(DOMString extensionId, 446 static void reload(DOMString extensionId,
421 optional ReloadOptions options, 447 optional ReloadOptions options,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 static void inspect(InspectOptions options, 518 static void inspect(InspectOptions options,
493 optional VoidCallback callback); 519 optional VoidCallback callback);
494 }; 520 };
495 521
496 interface Events { 522 interface Events {
497 // Fired when a item state is changed. 523 // Fired when a item state is changed.
498 static void onItemStateChanged(EventData response); 524 static void onItemStateChanged(EventData response);
499 }; 525 };
500 526
501 }; 527 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698