| OLD | NEW |
| 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 Loading... |
| 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 }; |
| 194 |
| 187 // DEPRECATED: Prefer ExtensionInfo. | 195 // DEPRECATED: Prefer ExtensionInfo. |
| 188 dictionary ItemInfo { | 196 dictionary ItemInfo { |
| 189 DOMString id; | 197 DOMString id; |
| 190 DOMString name; | 198 DOMString name; |
| 191 DOMString version; | 199 DOMString version; |
| 192 DOMString description; | 200 DOMString description; |
| 193 boolean may_disable; | 201 boolean may_disable; |
| 194 boolean enabled; | 202 boolean enabled; |
| 195 boolean isApp; | 203 boolean isApp; |
| 196 ItemType type; | 204 ItemType type; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 228 | 236 |
| 229 dictionary ExtensionConfigurationUpdate { | 237 dictionary ExtensionConfigurationUpdate { |
| 230 DOMString extensionId; | 238 DOMString extensionId; |
| 231 boolean? fileAccess; | 239 boolean? fileAccess; |
| 232 boolean? incognitoAccess; | 240 boolean? incognitoAccess; |
| 233 boolean? errorCollection; | 241 boolean? errorCollection; |
| 234 boolean? runOnAllUrls; | 242 boolean? runOnAllUrls; |
| 235 boolean? showActionButton; | 243 boolean? showActionButton; |
| 236 }; | 244 }; |
| 237 | 245 |
| 246 dictionary ProfileConfigurationUpdate { |
| 247 boolean? inDeveloperMode; |
| 248 }; |
| 249 |
| 238 dictionary ReloadOptions { | 250 dictionary ReloadOptions { |
| 239 // If false, an alert dialog will show in the event of a reload error. | 251 // If false, an alert dialog will show in the event of a reload error. |
| 240 // Defaults to false. | 252 // Defaults to false. |
| 241 boolean? failQuietly; | 253 boolean? failQuietly; |
| 242 }; | 254 }; |
| 243 | 255 |
| 244 dictionary LoadUnpackedOptions { | 256 dictionary LoadUnpackedOptions { |
| 245 // If false, an alert dialog will show in the event of a reload error. | 257 // If false, an alert dialog will show in the event of a reload error. |
| 246 // Defaults to false. | 258 // Defaults to false. |
| 247 boolean? failQuietly; | 259 boolean? failQuietly; |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 368 DOMString extensionId; | 380 DOMString extensionId; |
| 369 long[]? errorIds; | 381 long[]? errorIds; |
| 370 ErrorType? type; | 382 ErrorType? type; |
| 371 }; | 383 }; |
| 372 | 384 |
| 373 callback VoidCallback = void (); | 385 callback VoidCallback = void (); |
| 374 callback BooleanCallback = void (boolean result); | 386 callback BooleanCallback = void (boolean result); |
| 375 callback ExtensionInfosCallback = void (ExtensionInfo[] result); | 387 callback ExtensionInfosCallback = void (ExtensionInfo[] result); |
| 376 callback ExtensionInfoCallback = void (ExtensionInfo result); | 388 callback ExtensionInfoCallback = void (ExtensionInfo result); |
| 377 callback ItemsInfoCallback = void (ItemInfo[] result); | 389 callback ItemsInfoCallback = void (ItemInfo[] result); |
| 390 callback ProfileInfoCallback = void (ProfileInfo info); |
| 378 callback GetProjectsInfoCallback = void (ProjectInfo[] result); | 391 callback GetProjectsInfoCallback = void (ProjectInfo[] result); |
| 379 callback PathCallback = void (DOMString path); | 392 callback PathCallback = void (DOMString path); |
| 380 callback PackCallback = void (PackDirectoryResponse response); | 393 callback PackCallback = void (PackDirectoryResponse response); |
| 381 callback VoidCallback = void(); | 394 callback VoidCallback = void(); |
| 382 callback RequestFileSourceCallback = | 395 callback RequestFileSourceCallback = |
| 383 void (RequestFileSourceResponse response); | 396 void (RequestFileSourceResponse response); |
| 384 | 397 |
| 385 interface Functions { | 398 interface Functions { |
| 386 // Runs auto update for extensions and apps immediately. | 399 // Runs auto update for extensions and apps immediately. |
| 387 // |callback| : Called with the boolean result, true if autoUpdate is | 400 // |callback| : Called with the boolean result, true if autoUpdate is |
| (...skipping 14 matching lines...) Expand all Loading... |
| 402 | 415 |
| 403 // Returns information of all the extensions and apps installed. | 416 // Returns information of all the extensions and apps installed. |
| 404 // |includeDisabled| : include disabled items. | 417 // |includeDisabled| : include disabled items. |
| 405 // |includeTerminated| : include terminated items. | 418 // |includeTerminated| : include terminated items. |
| 406 // |callback| : Called with items info. | 419 // |callback| : Called with items info. |
| 407 [deprecated="Use getExtensionsInfo"] static void getItemsInfo( | 420 [deprecated="Use getExtensionsInfo"] static void getItemsInfo( |
| 408 boolean includeDisabled, | 421 boolean includeDisabled, |
| 409 boolean includeTerminated, | 422 boolean includeTerminated, |
| 410 ItemsInfoCallback callback); | 423 ItemsInfoCallback callback); |
| 411 | 424 |
| 425 // Returns the current profile's configuration. |
| 426 static void getProfileConfiguration(ProfileInfoCallback callback); |
| 427 |
| 428 // Updates the active profile. |
| 429 // |update| : The parameters for updating the profile's configuration. Any |
| 430 // properties omitted from |update| will not be changed. |
| 431 static void updateProfileConfiguration(ProfileConfigurationUpdate update, |
| 432 optional VoidCallback callback); |
| 433 |
| 412 // Opens a permissions dialog. | 434 // Opens a permissions dialog. |
| 413 // |extensionId| : The id of the extension to show permissions for. | 435 // |extensionId| : The id of the extension to show permissions for. |
| 414 static void showPermissionsDialog(DOMString extensionId, | 436 static void showPermissionsDialog(DOMString extensionId, |
| 415 optional VoidCallback callback); | 437 optional VoidCallback callback); |
| 416 | 438 |
| 417 // Reloads a given extension. | 439 // Reloads a given extension. |
| 418 // |extensionId| : The id of the extension to reload. | 440 // |extensionId| : The id of the extension to reload. |
| 419 // |options| : Additional configuration parameters. | 441 // |options| : Additional configuration parameters. |
| 420 static void reload(DOMString extensionId, | 442 static void reload(DOMString extensionId, |
| 421 optional ReloadOptions options, | 443 optional ReloadOptions options, |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 492 static void inspect(InspectOptions options, | 514 static void inspect(InspectOptions options, |
| 493 optional VoidCallback callback); | 515 optional VoidCallback callback); |
| 494 }; | 516 }; |
| 495 | 517 |
| 496 interface Events { | 518 interface Events { |
| 497 // Fired when a item state is changed. | 519 // Fired when a item state is changed. |
| 498 static void onItemStateChanged(EventData response); | 520 static void onItemStateChanged(EventData response); |
| 499 }; | 521 }; |
| 500 | 522 |
| 501 }; | 523 }; |
| OLD | NEW |