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

Side by Side Diff: chrome/common/extensions/api/developer_private.idl

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 (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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 }; 219 };
220 220
221 // TODO(devlin): Combine inspect and openDevTools? 221 // TODO(devlin): Combine inspect and openDevTools?
222 dictionary InspectOptions { 222 dictionary InspectOptions {
223 DOMString extension_id; 223 DOMString extension_id;
224 (DOMString or long) render_process_id; 224 (DOMString or long) render_process_id;
225 (DOMString or long) render_view_id; 225 (DOMString or long) render_view_id;
226 boolean incognito; 226 boolean incognito;
227 }; 227 };
228 228
229 dictionary ExtensionConfigurationUpdate {
230 DOMString extensionId;
231 boolean? fileAccess;
232 boolean? incognitoAccess;
233 boolean? errorCollection;
234 boolean? runOnAllUrls;
235 boolean? showActionButton;
236 };
237
229 dictionary ReloadOptions { 238 dictionary ReloadOptions {
230 // If false, an alert dialog will show in the event of a reload error. 239 // If false, an alert dialog will show in the event of a reload error.
231 // Defaults to false. 240 // Defaults to false.
232 boolean? failQuietly; 241 boolean? failQuietly;
233 }; 242 };
234 243
235 dictionary LoadUnpackedOptions { 244 dictionary LoadUnpackedOptions {
236 // If false, an alert dialog will show in the event of a reload error. 245 // If false, an alert dialog will show in the event of a reload error.
237 // Defaults to false. 246 // Defaults to false.
238 boolean? failQuietly; 247 boolean? failQuietly;
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 // Opens a permissions dialog. 399 // Opens a permissions dialog.
391 // |extensionId| : The id of the extension to show permissions for. 400 // |extensionId| : The id of the extension to show permissions for.
392 static void showPermissionsDialog(DOMString extensionId, 401 static void showPermissionsDialog(DOMString extensionId,
393 optional VoidCallback callback); 402 optional VoidCallback callback);
394 403
395 // Opens a developer tools inspection window. 404 // Opens a developer tools inspection window.
396 // |options| : The details about the inspection. 405 // |options| : The details about the inspection.
397 static void inspect(InspectOptions options, 406 static void inspect(InspectOptions options,
398 optional VoidCallback callback); 407 optional VoidCallback callback);
399 408
400 // Enables / Disables file access for an extension.
401 // |extensionId| : The id of the extension to set file access for.
402 // |allow| : Whether or not to allow file access for the extension.
403 static void allowFileAccess(DOMString extensionId,
404 boolean allow,
405 optional VoidCallback callback);
406
407 // Reloads a given extension. 409 // Reloads a given extension.
408 // |extensionId| : The id of the extension to reload. 410 // |extensionId| : The id of the extension to reload.
409 // |options| : Additional configuration parameters. 411 // |options| : Additional configuration parameters.
410 static void reload(DOMString extensionId, 412 static void reload(DOMString extensionId,
411 optional ReloadOptions options, 413 optional ReloadOptions options,
412 optional VoidCallback callback); 414 optional VoidCallback callback);
413 415
414 // Allows / Disallows an extension to run in incognito mode. 416 // Modifies an extension's current configuration.
415 // |extensionId| : The id of the extension. 417 // |update| : The parameters for updating the extension's configuration.
416 // |allow| : Whether or not the extension should be allowed incognito. 418 // Any properties omitted from |update| will not be changed.
417 static void allowIncognito(DOMString extensionId, 419 static void updateExtensionConfiguration(
418 boolean allow, 420 ExtensionConfigurationUpdate update,
419 optional VoidCallback callback); 421 optional VoidCallback callback);
420 422
421 // Loads a user-selected unpacked item. 423 // Loads a user-selected unpacked item.
422 // |options| : Additional configuration parameters. 424 // |options| : Additional configuration parameters.
423 static void loadUnpacked(optional LoadUnpackedOptions options, 425 static void loadUnpacked(optional LoadUnpackedOptions options,
424 optional VoidCallback callback); 426 optional VoidCallback callback);
425 427
426 // Loads an extension / app. 428 // Loads an extension / app.
427 // |directory| : The directory to load the extension from. 429 // |directory| : The directory to load the extension from.
428 static void loadDirectory( 430 static void loadDirectory(
429 [instanceOf=DirectoryEntry] object directory, 431 [instanceOf=DirectoryEntry] object directory,
(...skipping 29 matching lines...) Expand all
459 // Open the developer tools to focus on a particular error. 461 // Open the developer tools to focus on a particular error.
460 static void openDevTools(OpenDevToolsProperties properties); 462 static void openDevTools(OpenDevToolsProperties properties);
461 }; 463 };
462 464
463 interface Events { 465 interface Events {
464 // Fired when a item state is changed. 466 // Fired when a item state is changed.
465 static void onItemStateChanged(EventData response); 467 static void onItemStateChanged(EventData response);
466 }; 468 };
467 469
468 }; 470 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698