From d528e2711a9408664179d8d2e7dc804029c96aa2 Mon Sep 17 00:00:00 2001 From: "asargent@chromium.org" Date: Mon, 4 Oct 2010 05:39:56 +0000 Subject: Take extension 'management' API out of experimental. BUG=56399 TEST=You should be able to write an extension using the management API. Review URL: http://codereview.chromium.org/3537010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61347 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/app/generated_resources.grd | 3 + chrome/browser/extensions/extension_event_names.cc | 8 +- .../browser/extensions/extension_management_api.h | 8 +- .../extension_management_api_browsertest.cc | 10 +- .../extensions/extension_management_apitest.cc | 9 - chrome/common/extensions/api/extension_api.json | 2 +- chrome/common/extensions/docs/a11y.html | 1 + chrome/common/extensions/docs/api_index.html | 3 +- chrome/common/extensions/docs/api_other.html | 1 + chrome/common/extensions/docs/autoupdate.html | 1 + .../common/extensions/docs/background_pages.html | 1 + chrome/common/extensions/docs/bookmarks.html | 1 + chrome/common/extensions/docs/browserAction.html | 1 + chrome/common/extensions/docs/content_scripts.html | 1 + chrome/common/extensions/docs/contextMenus.html | 1 + chrome/common/extensions/docs/cookies.html | 1 + chrome/common/extensions/docs/devguide.html | 1 + chrome/common/extensions/docs/docs.html | 1 + chrome/common/extensions/docs/events.html | 1 + .../extensions/docs/experimental.clipboard.html | 1 + .../extensions/docs/experimental.contextMenus.html | 1 + .../extensions/docs/experimental.cookies.html | 1 + .../extensions/docs/experimental.history.html | 1 + chrome/common/extensions/docs/experimental.html | 2 +- .../common/extensions/docs/experimental.idle.html | 1 + .../extensions/docs/experimental.infobars.html | 1 + .../extensions/docs/experimental.management.html | 2221 ------------------- .../extensions/docs/experimental.omnibox.html | 1 + .../extensions/docs/experimental.processes.html | 1 + .../common/extensions/docs/experimental.proxy.html | 1 + .../extensions/docs/experimental.sidebar.html | 1 + .../docs/experimental.webNavigation.html | 1 + .../extensions/docs/experimental.webRequest.html | 1 + chrome/common/extensions/docs/extension.html | 1 + .../extensions/docs/external_extensions.html | 1 + chrome/common/extensions/docs/faq.html | 1 + chrome/common/extensions/docs/getstarted.html | 1 + chrome/common/extensions/docs/history.html | 1 + chrome/common/extensions/docs/hosting.html | 1 + chrome/common/extensions/docs/i18n-messages.html | 1 + chrome/common/extensions/docs/i18n.html | 1 + chrome/common/extensions/docs/idle.html | 1 + chrome/common/extensions/docs/index.html | 1 + chrome/common/extensions/docs/management.html | 2226 ++++++++++++++++++++ chrome/common/extensions/docs/manifest.html | 1 + chrome/common/extensions/docs/match_patterns.html | 3 +- chrome/common/extensions/docs/messaging.html | 1 + chrome/common/extensions/docs/notifications.html | 1 + chrome/common/extensions/docs/npapi.html | 1 + chrome/common/extensions/docs/options.html | 1 + chrome/common/extensions/docs/override.html | 1 + chrome/common/extensions/docs/overview.html | 1 + chrome/common/extensions/docs/packaging.html | 1 + chrome/common/extensions/docs/pageAction.html | 1 + chrome/common/extensions/docs/samples.html | 3 + chrome/common/extensions/docs/samples.json | 16 +- .../docs/static/experimental.management.html | 2 - .../common/extensions/docs/static/management.html | 6 + chrome/common/extensions/docs/tabs.html | 1 + .../extensions/docs/template/api_template.html | 1 + chrome/common/extensions/docs/themes.html | 1 + chrome/common/extensions/docs/tut_analytics.html | 1 + chrome/common/extensions/docs/tut_debugging.html | 1 + chrome/common/extensions/docs/tut_oauth.html | 1 + chrome/common/extensions/docs/tutorials.html | 1 + chrome/common/extensions/docs/whats_new.html | 1 + chrome/common/extensions/docs/windows.html | 1 + chrome/common/extensions/docs/xhr.html | 1 + chrome/common/extensions/extension.cc | 2 + chrome/common/extensions/extension.h | 1 + .../resources/renderer_extension_bindings.js | 2 +- .../extensions/api_test/management/test/common.js | 4 - .../api_test/management/test/manifest.json | 2 +- .../management/install_event/manifest.json | 2 +- .../extensions/management/install_event/test.js | 4 - .../extensions/management/launch_app/manifest.json | 2 +- .../data/extensions/management/launch_app/test.js | 4 - 77 files changed, 2321 insertions(+), 2277 deletions(-) delete mode 100644 chrome/common/extensions/docs/experimental.management.html create mode 100644 chrome/common/extensions/docs/management.html delete mode 100644 chrome/common/extensions/docs/static/experimental.management.html create mode 100644 chrome/common/extensions/docs/static/management.html (limited to 'chrome') diff --git a/chrome/app/generated_resources.grd b/chrome/app/generated_resources.grd index 4176d82..e83c673 100644 --- a/chrome/app/generated_resources.grd +++ b/chrome/app/generated_resources.grd @@ -3481,6 +3481,9 @@ each locale. --> Your physical location + + Manage themes, extensions, and apps + diff --git a/chrome/browser/extensions/extension_event_names.cc b/chrome/browser/extensions/extension_event_names.cc index a70f293..a9b0e2f 100644 --- a/chrome/browser/extensions/extension_event_names.cc +++ b/chrome/browser/extensions/extension_event_names.cc @@ -18,9 +18,9 @@ const char kOnWindowCreated[] = "windows.onCreated"; const char kOnWindowFocusedChanged[] = "windows.onFocusChanged"; const char kOnWindowRemoved[] = "windows.onRemoved"; -const char kOnExtensionInstalled[] = "experimental.management.onInstalled"; -const char kOnExtensionUninstalled[] = "experimental.management.onUninstalled"; -const char kOnExtensionEnabled[] = "experimental.management.onEnabled"; -const char kOnExtensionDisabled[] = "experimental.management.onDisabled"; +const char kOnExtensionInstalled[] = "management.onInstalled"; +const char kOnExtensionUninstalled[] = "management.onUninstalled"; +const char kOnExtensionEnabled[] = "management.onEnabled"; +const char kOnExtensionDisabled[] = "management.onDisabled"; } // namespace extension_event_names diff --git a/chrome/browser/extensions/extension_management_api.h b/chrome/browser/extensions/extension_management_api.h index 4109886..3176aef 100644 --- a/chrome/browser/extensions/extension_management_api.h +++ b/chrome/browser/extensions/extension_management_api.h @@ -21,25 +21,25 @@ class ExtensionManagementFunction : public SyncExtensionFunction { class GetAllExtensionsFunction : public ExtensionManagementFunction { ~GetAllExtensionsFunction() {} virtual bool RunImpl(); - DECLARE_EXTENSION_FUNCTION_NAME("experimental.management.getAll"); + DECLARE_EXTENSION_FUNCTION_NAME("management.getAll"); }; class LaunchAppFunction : public ExtensionManagementFunction { ~LaunchAppFunction() {} virtual bool RunImpl(); - DECLARE_EXTENSION_FUNCTION_NAME("experimental.management.launchApp"); + DECLARE_EXTENSION_FUNCTION_NAME("management.launchApp"); }; class SetEnabledFunction : public ExtensionManagementFunction { ~SetEnabledFunction() {} virtual bool RunImpl(); - DECLARE_EXTENSION_FUNCTION_NAME("experimental.management.setEnabled"); + DECLARE_EXTENSION_FUNCTION_NAME("management.setEnabled"); }; class UninstallFunction : public ExtensionManagementFunction { ~UninstallFunction() {} virtual bool RunImpl(); - DECLARE_EXTENSION_FUNCTION_NAME("experimental.management.uninstall"); + DECLARE_EXTENSION_FUNCTION_NAME("management.uninstall"); }; class ExtensionManagementEventRouter : public NotificationObserver { diff --git a/chrome/browser/extensions/extension_management_api_browsertest.cc b/chrome/browser/extensions/extension_management_api_browsertest.cc index 643072d..7061637 100644 --- a/chrome/browser/extensions/extension_management_api_browsertest.cc +++ b/chrome/browser/extensions/extension_management_api_browsertest.cc @@ -4,16 +4,8 @@ #include "chrome/browser/extensions/extension_browsertest.h" #include "chrome/browser/extensions/extension_test_message_listener.h" -#include "chrome/common/chrome_switches.h" - -class ExtensionManagementApiBrowserTest : public ExtensionBrowserTest { - virtual void SetUpCommandLine(CommandLine* command_line) { - ExtensionBrowserTest::SetUpCommandLine(command_line); - command_line->AppendSwitch( - switches::kEnableExperimentalExtensionApis); - } -}; +class ExtensionManagementApiBrowserTest : public ExtensionBrowserTest {}; // We test this here instead of in an ExtensionApiTest because normal extensions // are not allowed to call the install function. diff --git a/chrome/browser/extensions/extension_management_apitest.cc b/chrome/browser/extensions/extension_management_apitest.cc index 8d734cf..75b0880 100644 --- a/chrome/browser/extensions/extension_management_apitest.cc +++ b/chrome/browser/extensions/extension_management_apitest.cc @@ -2,22 +2,13 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "base/command_line.h" #include "chrome/browser/browser.h" #include "chrome/browser/extensions/extension_apitest.h" #include "chrome/browser/extensions/extensions_service.h" #include "chrome/browser/profile.h" -#include "chrome/common/chrome_switches.h" class ExtensionManagementApiTest : public ExtensionApiTest { public: - - virtual void SetUpCommandLine(CommandLine* command_line) { - ExtensionApiTest::SetUpCommandLine(command_line); - command_line->AppendSwitch( - switches::kEnableExperimentalExtensionApis); - } - virtual void InstallExtensions() { FilePath basedir = test_data_dir_.AppendASCII("management"); diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index a566716d..732f417 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -3915,7 +3915,7 @@ ] }, { - "namespace":"experimental.management", + "namespace":"management", "types": [ { "id": "IconInfo", diff --git a/chrome/common/extensions/docs/a11y.html b/chrome/common/extensions/docs/a11y.html index 92c6f6b..7447813 100644 --- a/chrome/common/extensions/docs/a11y.html +++ b/chrome/common/extensions/docs/a11y.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/api_index.html b/chrome/common/extensions/docs/api_index.html index ac8d54c..46ddd6e 100644 --- a/chrome/common/extensions/docs/api_index.html +++ b/chrome/common/extensions/docs/api_index.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • @@ -318,7 +319,7 @@ Here are the supported chrome.* APIs:

    Experimental APIs

    diff --git a/chrome/common/extensions/docs/api_other.html b/chrome/common/extensions/docs/api_other.html index 3b1f2bb..c1ef26b 100644 --- a/chrome/common/extensions/docs/api_other.html +++ b/chrome/common/extensions/docs/api_other.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/autoupdate.html b/chrome/common/extensions/docs/autoupdate.html index 3ea1162..f474abb 100644 --- a/chrome/common/extensions/docs/autoupdate.html +++ b/chrome/common/extensions/docs/autoupdate.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/background_pages.html b/chrome/common/extensions/docs/background_pages.html index be3085a..5227b51 100644 --- a/chrome/common/extensions/docs/background_pages.html +++ b/chrome/common/extensions/docs/background_pages.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/bookmarks.html b/chrome/common/extensions/docs/bookmarks.html index 2d99ba5..8283626 100644 --- a/chrome/common/extensions/docs/bookmarks.html +++ b/chrome/common/extensions/docs/bookmarks.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/browserAction.html b/chrome/common/extensions/docs/browserAction.html index ce1b362..77c2b6c 100644 --- a/chrome/common/extensions/docs/browserAction.html +++ b/chrome/common/extensions/docs/browserAction.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/content_scripts.html b/chrome/common/extensions/docs/content_scripts.html index d15aa5b..7d48d56 100644 --- a/chrome/common/extensions/docs/content_scripts.html +++ b/chrome/common/extensions/docs/content_scripts.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/contextMenus.html b/chrome/common/extensions/docs/contextMenus.html index 919e449..a7b2cdb 100644 --- a/chrome/common/extensions/docs/contextMenus.html +++ b/chrome/common/extensions/docs/contextMenus.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/cookies.html b/chrome/common/extensions/docs/cookies.html index 12278d9..ea79e4c 100644 --- a/chrome/common/extensions/docs/cookies.html +++ b/chrome/common/extensions/docs/cookies.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/devguide.html b/chrome/common/extensions/docs/devguide.html index 86c56ef..e5a801b 100644 --- a/chrome/common/extensions/docs/devguide.html +++ b/chrome/common/extensions/docs/devguide.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/docs.html b/chrome/common/extensions/docs/docs.html index abc9102..2a81648 100644 --- a/chrome/common/extensions/docs/docs.html +++ b/chrome/common/extensions/docs/docs.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/events.html b/chrome/common/extensions/docs/events.html index ad86e44..7fbf71e 100644 --- a/chrome/common/extensions/docs/events.html +++ b/chrome/common/extensions/docs/events.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.clipboard.html b/chrome/common/extensions/docs/experimental.clipboard.html index f159755..0bf145d 100644 --- a/chrome/common/extensions/docs/experimental.clipboard.html +++ b/chrome/common/extensions/docs/experimental.clipboard.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.contextMenus.html b/chrome/common/extensions/docs/experimental.contextMenus.html index aec0f4f..db22bb4 100644 --- a/chrome/common/extensions/docs/experimental.contextMenus.html +++ b/chrome/common/extensions/docs/experimental.contextMenus.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.cookies.html b/chrome/common/extensions/docs/experimental.cookies.html index 8694366..1eaeee9 100644 --- a/chrome/common/extensions/docs/experimental.cookies.html +++ b/chrome/common/extensions/docs/experimental.cookies.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.history.html b/chrome/common/extensions/docs/experimental.history.html index f1db1ad..5b1b412 100644 --- a/chrome/common/extensions/docs/experimental.history.html +++ b/chrome/common/extensions/docs/experimental.history.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.html b/chrome/common/extensions/docs/experimental.html index b5a7420..08480af 100644 --- a/chrome/common/extensions/docs/experimental.html +++ b/chrome/common/extensions/docs/experimental.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • @@ -299,7 +300,6 @@ on the following experimental APIs:
  • experimental.clipboard
  • experimental.infobars
  • - experimental.management
  • experimental.omnibox
  • experimental.processes
  • experimental.proxy
  • diff --git a/chrome/common/extensions/docs/experimental.idle.html b/chrome/common/extensions/docs/experimental.idle.html index 4c14a2f..d7b2d80 100644 --- a/chrome/common/extensions/docs/experimental.idle.html +++ b/chrome/common/extensions/docs/experimental.idle.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.infobars.html b/chrome/common/extensions/docs/experimental.infobars.html index cd72c10..97d859d 100644 --- a/chrome/common/extensions/docs/experimental.infobars.html +++ b/chrome/common/extensions/docs/experimental.infobars.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.management.html b/chrome/common/extensions/docs/experimental.management.html deleted file mode 100644 index 5f316c9..0000000 --- a/chrome/common/extensions/docs/experimental.management.html +++ /dev/null @@ -1,2221 +0,0 @@ - - - - - - - - chrome.experimental.management - Google Chrome Extensions - Google Code -
    -
    - You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files. -
    - - -
    - - -
    -
    - paramName - - - -
    - ( - optional - enumerated - - - Type - - - - array of - - paramType - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    - -
    -
    Parameters
    -
    -
    -
    -
    -
    -
    -
    -
    - - - - - - - - - - - -
    - - -
    -

    Google Chrome Extensions (Labs)

    - -
    - -
    - - - -
    -
    -

    chrome.experimental.management

    -
    - -
    -

    Contents

    -
      -
    1. - h2Name -
        -
      1. - h3Name -
      2. -
      -
    2. -
    3. - API reference: chrome.experimental.management -
        -
      1. - Properties -
          -
        1. - propertyName -
        2. -
        -
      2. -
      3. - Methods -
          -
        1. - getAll -
        2. - launchApp -
        3. - setEnabled -
        4. - uninstall -
        5. -
        -
      4. -
      5. - Events -
          -
        1. - onDisabled -
        2. - onEnabled -
        3. - onInstalled -
        4. - onUninstalled -
        5. -
        -
      6. -
      7. - Types -
          -
        1. - IconInfo -
        2. - ExtensionInfo -
        3. -
        -
      8. -
      -
    4. -
    -
    - - - -

    - For information on how to use experimental APIs, see the chrome.experimental.* APIs page. -

    - - -
    - -
    - - -
    - -

    API reference: chrome.experimental.management

    - - - - - -
    - -

    Methods

    - - -
    - -

    getAll

    - -
    void - - chrome.experimental.management.getAll(, function - callback)
    - -
    - -

    Returns a list of information about installed extensions and apps.

    - - -

    Parameters

    -
    -
    -
    -
    - callback - - - -
    - ( - optional - - - - Type - - - - array of - - function - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - - -

    Returns

    -
    -
    -
    -
    -
    -
    - - -
    -
    -

    Callback function

    -

    - The callback parameter should specify a function - that looks like this: -

    -

    - If you specify the callback parameter, it should - specify a function that looks like this: -

    - - -
    function(array of ExtensionInfo result) {...};
    -
    -
    -
    -
    - result - - - -
    - ( - - - - - Type - - - - array of - - ExtensionInfo - - - - array of - - paramType - - - - - paramType - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    -
    - - -

    - This function was added in version . - If you require this function, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -

    -
    - -
    - -

    launchApp

    - -
    void - - chrome.experimental.management.launchApp(, string - id, function - callback)
    - -
    - -

    Launches an application.

    - - -

    Parameters

    -
    -
    -
    -
    - id - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The extension id of the application.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - callback - - - -
    - ( - optional - - - - Type - - - - array of - - function - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - - -

    Returns

    -
    -
    -
    -
    -
    -
    - - -
    -
    -

    Callback function

    -

    - The callback parameter should specify a function - that looks like this: -

    -

    - If you specify the callback parameter, it should - specify a function that looks like this: -

    - - -
    function() {...};
    -
    -
    -
    -
    -
    -
    -
    -
    - - -

    - This function was added in version . - If you require this function, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -

    -
    - -
    - -

    setEnabled

    - -
    void - - chrome.experimental.management.setEnabled(, string - id, boolean - enabled, function - callback)
    - -
    - -

    Enable or disable an app or extension.

    - - -

    Parameters

    -
    -
    -
    -
    - id - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    This should be the id from an item of ExtensionInfo.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - enabled - - - -
    - ( - - - - - Type - - - - array of - - boolean - - - - ) -
    - -
    -
    - -
    Whether this item should be enabled or disabled.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - callback - - - -
    - ( - optional - - - - Type - - - - array of - - function - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - - -

    Returns

    -
    -
    -
    -
    -
    -
    - - -
    -
    -

    Callback function

    -

    - The callback parameter should specify a function - that looks like this: -

    -

    - If you specify the callback parameter, it should - specify a function that looks like this: -

    - - -
    function() {...};
    -
    -
    -
    -
    -
    -
    -
    -
    - - -

    - This function was added in version . - If you require this function, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -

    -
    - -
    - -

    uninstall

    - -
    void - - chrome.experimental.management.uninstall(, string - id, function - callback)
    - -
    - -

    Uninstall a currently installed app or extension.

    - - -

    Parameters

    -
    -
    -
    -
    - id - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    This should be the id from an item of ExtensionInfo.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - callback - - - -
    - ( - optional - - - - Type - - - - array of - - function - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - - -

    Returns

    -
    -
    -
    -
    -
    -
    - - -
    -
    -

    Callback function

    -

    - The callback parameter should specify a function - that looks like this: -

    -

    - If you specify the callback parameter, it should - specify a function that looks like this: -

    - - -
    function() {...};
    -
    -
    -
    -
    -
    -
    -
    -
    - - -

    - This function was added in version . - If you require this function, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -

    -
    - -
    - -
    - - -
    - -

    Events

    - - -
    - -

    onDisabled

    - -
    - - chrome.experimental.management.onDisabled.addListener(function(ExtensionInfo info) {...}); -
    - -
    - -

    Fired when an app or extension has been disabled

    - - -

    Parameters

    -
    -
    -
    -
    - info - - - -
    - ( - - - - - ExtensionInfo - - - - array of - - paramType - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - -
    - -
    - -

    onEnabled

    - -
    - - chrome.experimental.management.onEnabled.addListener(function(ExtensionInfo info) {...}); -
    - -
    - -

    Fired when an app or extension has been enabled.

    - - -

    Parameters

    -
    -
    -
    -
    - info - - - -
    - ( - - - - - ExtensionInfo - - - - array of - - paramType - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - -
    - -
    - -

    onInstalled

    - -
    - - chrome.experimental.management.onInstalled.addListener(function(ExtensionInfo info) {...}); -
    - -
    - -

    Fired when an app or extension has been installed.

    - - -

    Parameters

    -
    -
    -
    -
    - info - - - -
    - ( - - - - - ExtensionInfo - - - - array of - - paramType - - - - ) -
    - -
    -
    -
    - Undocumented. -
    -
    - Description of this parameter from the json schema. -
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - -
    - -
    - -

    onUninstalled

    - -
    - - chrome.experimental.management.onUninstalled.addListener(function(string id) {...}); -
    - -
    - -

    Fired when an app or extension has been uninstalled.

    - - -

    Parameters

    -
    -
    -
    -
    - id - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The id of the extension or app that was uninstalled.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    - -
    - -
    - -
    - - -
    - -

    Types

    - - -
    - -

    IconInfo

    - -
    -
    - paramName - - - -
    - ( - - - - - Type - - - - array of - - object - - - - ) -
    - -
    -
    - -
    Information about an icon belonging to an extension or app.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    - size - - - -
    - ( - - - - - Type - - - - array of - - integer - - - - ) -
    - -
    -
    - -
    A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and 16.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - url - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The url for this icon image.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - - -
    -
    -
    - -
    - -
    - -

    ExtensionInfo

    - -
    -
    - paramName - - - -
    - ( - - - - - Type - - - - array of - - object - - - - ) -
    - -
    -
    - -
    Information about an installed extension or app.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    - id - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The extension's unique identifier.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - name - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The name of this extension or app.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - version - - - -
    - ( - - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The version of this extension or app.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - enabled - - - -
    - ( - - - - - Type - - - - array of - - boolean - - - - ) -
    - -
    -
    - -
    Whether it is currently enabled or disabled.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - isApp - - - -
    - ( - - - - - Type - - - - array of - - boolean - - - - ) -
    - -
    -
    - -
    True if this is an app.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - appLaunchUrl - - - -
    - ( - optional - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The launch url (only present for apps).
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - optionsUrl - - - -
    - ( - optional - - - - Type - - - - array of - - string - - - - ) -
    - -
    -
    - -
    The url for the item's options page, if it has one.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - icons - - - -
    - ( - optional - - - - Type - - - - array of - - IconInfo - - - - array of - - paramType - - - - - paramType - - - - ) -
    - -
    -
    - -
    A list of icon information. Note that this just reflects what was declared in the manifest, and the actual image at that url may be larger or smaller than what was declared, so you might consider using explicit width and height attributes on img tags referencing these images. See the manifest documentation on icons for more details.
    -
    - This parameter was added in version - . - You must omit this parameter in earlier versions, - and you may omit it in any version. If you require this - parameter, the manifest key - minimum_chrome_version - can ensure that your extension won't be run in an earlier browser version. -
    - - -
    -
    -
    -
    -
    -
    -
    -
    - - -
    -
    -
    - -
    -
    -
    -
    - - -
    -
    -
    - -
    - -
    - -
    - -
    -
    -
    -
    - -
    - diff --git a/chrome/common/extensions/docs/experimental.omnibox.html b/chrome/common/extensions/docs/experimental.omnibox.html index 9d037b3..995f838 100644 --- a/chrome/common/extensions/docs/experimental.omnibox.html +++ b/chrome/common/extensions/docs/experimental.omnibox.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.processes.html b/chrome/common/extensions/docs/experimental.processes.html index 0a3f3dc..5e0fbc9 100644 --- a/chrome/common/extensions/docs/experimental.processes.html +++ b/chrome/common/extensions/docs/experimental.processes.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.proxy.html b/chrome/common/extensions/docs/experimental.proxy.html index c392afe..57d48f5 100644 --- a/chrome/common/extensions/docs/experimental.proxy.html +++ b/chrome/common/extensions/docs/experimental.proxy.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.sidebar.html b/chrome/common/extensions/docs/experimental.sidebar.html index fb092eb..eb9493b 100644 --- a/chrome/common/extensions/docs/experimental.sidebar.html +++ b/chrome/common/extensions/docs/experimental.sidebar.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.webNavigation.html b/chrome/common/extensions/docs/experimental.webNavigation.html index b71aac33..8ab76fc 100644 --- a/chrome/common/extensions/docs/experimental.webNavigation.html +++ b/chrome/common/extensions/docs/experimental.webNavigation.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/experimental.webRequest.html b/chrome/common/extensions/docs/experimental.webRequest.html index 45f8d34..9615bcc 100644 --- a/chrome/common/extensions/docs/experimental.webRequest.html +++ b/chrome/common/extensions/docs/experimental.webRequest.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/extension.html b/chrome/common/extensions/docs/extension.html index 593984f..b361568 100644 --- a/chrome/common/extensions/docs/extension.html +++ b/chrome/common/extensions/docs/extension.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/external_extensions.html b/chrome/common/extensions/docs/external_extensions.html index 357da72..6bf9e4f 100644 --- a/chrome/common/extensions/docs/external_extensions.html +++ b/chrome/common/extensions/docs/external_extensions.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/faq.html b/chrome/common/extensions/docs/faq.html index f6cc0d3..94ec93b 100644 --- a/chrome/common/extensions/docs/faq.html +++ b/chrome/common/extensions/docs/faq.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/getstarted.html b/chrome/common/extensions/docs/getstarted.html index ceacddf..a3a10fc 100644 --- a/chrome/common/extensions/docs/getstarted.html +++ b/chrome/common/extensions/docs/getstarted.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/history.html b/chrome/common/extensions/docs/history.html index 6a629ba..41b93ab 100644 --- a/chrome/common/extensions/docs/history.html +++ b/chrome/common/extensions/docs/history.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/hosting.html b/chrome/common/extensions/docs/hosting.html index 85ed1867..20267e7 100644 --- a/chrome/common/extensions/docs/hosting.html +++ b/chrome/common/extensions/docs/hosting.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/i18n-messages.html b/chrome/common/extensions/docs/i18n-messages.html index d2f0f6b..7ff4c33 100644 --- a/chrome/common/extensions/docs/i18n-messages.html +++ b/chrome/common/extensions/docs/i18n-messages.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/i18n.html b/chrome/common/extensions/docs/i18n.html index 7ce891d..3b5c702 100644 --- a/chrome/common/extensions/docs/i18n.html +++ b/chrome/common/extensions/docs/i18n.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/idle.html b/chrome/common/extensions/docs/idle.html index 1a2dedc..2fd5dd8 100644 --- a/chrome/common/extensions/docs/idle.html +++ b/chrome/common/extensions/docs/idle.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/index.html b/chrome/common/extensions/docs/index.html index 5b27cbf..826d74b 100644 --- a/chrome/common/extensions/docs/index.html +++ b/chrome/common/extensions/docs/index.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/management.html b/chrome/common/extensions/docs/management.html new file mode 100644 index 0000000..8fb7add --- /dev/null +++ b/chrome/common/extensions/docs/management.html @@ -0,0 +1,2226 @@ + + + + + + + + Management - Google Chrome Extensions - Google Code +
    +
    + You are viewing extension docs in chrome via the 'file:' scheme: are you expecting to see local changes when you refresh? You'll need run chrome with --allow-file-access-from-files. +
    + + +
    + + +
    +
    + paramName + + + +
    + ( + optional + enumerated + + + Type + + + + array of + + paramType + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    + +
    +
    Parameters
    +
    +
    +
    +
    +
    +
    +
    +
    + + + + + + + + + + + +
    + + +
    +

    Google Chrome Extensions (Labs)

    + +
    + +
    + + + +
    +
    +

    Management

    +
    + +
    +

    Contents

    +
      +
    1. + h2Name +
        +
      1. + h3Name +
      2. +
      +
    2. +
    3. + API reference: chrome.management +
        +
      1. + Properties +
          +
        1. + propertyName +
        2. +
        +
      2. +
      3. + Methods +
          +
        1. + getAll +
        2. + launchApp +
        3. + setEnabled +
        4. + uninstall +
        5. +
        +
      4. +
      5. + Events +
          +
        1. + onDisabled +
        2. + onEnabled +
        3. + onInstalled +
        4. + onUninstalled +
        5. +
        +
      6. +
      7. + Types +
          +
        1. + IconInfo +
        2. + ExtensionInfo +
        3. +
        +
      8. +
      +
    4. +
    +
    + + + + + + +
    Management
    + +

    +The chrome.management module provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that override the built-in New Tab page. +

    + +
    + + +
    + +

    API reference: chrome.management

    + + + + + +
    + +

    Methods

    + + +
    + +

    getAll

    + +
    void + + chrome.management.getAll(, function + callback)
    + +
    + +

    Returns a list of information about installed extensions and apps.

    + + +

    Parameters

    +
    +
    +
    +
    + callback + + + +
    + ( + optional + + + + Type + + + + array of + + function + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +

    Returns

    +
    +
    +
    +
    +
    +
    + + +
    +
    +

    Callback function

    +

    + The callback parameter should specify a function + that looks like this: +

    +

    + If you specify the callback parameter, it should + specify a function that looks like this: +

    + + +
    function(array of ExtensionInfo result) {...};
    +
    +
    +
    +
    + result + + + +
    + ( + + + + + Type + + + + array of + + ExtensionInfo + + + + array of + + paramType + + + + + paramType + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    +
    + + +

    + This function was added in version . + If you require this function, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +

    +
    + +
    + +

    launchApp

    + +
    void + + chrome.management.launchApp(, string + id, function + callback)
    + +
    + +

    Launches an application.

    + + +

    Parameters

    +
    +
    +
    +
    + id + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The extension id of the application.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + callback + + + +
    + ( + optional + + + + Type + + + + array of + + function + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +

    Returns

    +
    +
    +
    +
    +
    +
    + + +
    +
    +

    Callback function

    +

    + The callback parameter should specify a function + that looks like this: +

    +

    + If you specify the callback parameter, it should + specify a function that looks like this: +

    + + +
    function() {...};
    +
    +
    +
    +
    +
    +
    +
    +
    + + +

    + This function was added in version . + If you require this function, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +

    +
    + +
    + +

    setEnabled

    + +
    void + + chrome.management.setEnabled(, string + id, boolean + enabled, function + callback)
    + +
    + +

    Enable or disable an app or extension.

    + + +

    Parameters

    +
    +
    +
    +
    + id + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    This should be the id from an item of ExtensionInfo.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + enabled + + + +
    + ( + + + + + Type + + + + array of + + boolean + + + + ) +
    + +
    +
    + +
    Whether this item should be enabled or disabled.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + callback + + + +
    + ( + optional + + + + Type + + + + array of + + function + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +

    Returns

    +
    +
    +
    +
    +
    +
    + + +
    +
    +

    Callback function

    +

    + The callback parameter should specify a function + that looks like this: +

    +

    + If you specify the callback parameter, it should + specify a function that looks like this: +

    + + +
    function() {...};
    +
    +
    +
    +
    +
    +
    +
    +
    + + +

    + This function was added in version . + If you require this function, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +

    +
    + +
    + +

    uninstall

    + +
    void + + chrome.management.uninstall(, string + id, function + callback)
    + +
    + +

    Uninstall a currently installed app or extension.

    + + +

    Parameters

    +
    +
    +
    +
    + id + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    This should be the id from an item of ExtensionInfo.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + callback + + + +
    + ( + optional + + + + Type + + + + array of + + function + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + + +

    Returns

    +
    +
    +
    +
    +
    +
    + + +
    +
    +

    Callback function

    +

    + The callback parameter should specify a function + that looks like this: +

    +

    + If you specify the callback parameter, it should + specify a function that looks like this: +

    + + +
    function() {...};
    +
    +
    +
    +
    +
    +
    +
    +
    + + +

    + This function was added in version . + If you require this function, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +

    +
    + +
    + +
    + + +
    + +

    Events

    + + +
    + +

    onDisabled

    + +
    + + chrome.management.onDisabled.addListener(function(ExtensionInfo info) {...}); +
    + +
    + +

    Fired when an app or extension has been disabled

    + + +

    Parameters

    +
    +
    +
    +
    + info + + + +
    + ( + + + + + ExtensionInfo + + + + array of + + paramType + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + +
    + +
    + +

    onEnabled

    + +
    + + chrome.management.onEnabled.addListener(function(ExtensionInfo info) {...}); +
    + +
    + +

    Fired when an app or extension has been enabled.

    + + +

    Parameters

    +
    +
    +
    +
    + info + + + +
    + ( + + + + + ExtensionInfo + + + + array of + + paramType + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + +
    + +
    + +

    onInstalled

    + +
    + + chrome.management.onInstalled.addListener(function(ExtensionInfo info) {...}); +
    + +
    + +

    Fired when an app or extension has been installed.

    + + +

    Parameters

    +
    +
    +
    +
    + info + + + +
    + ( + + + + + ExtensionInfo + + + + array of + + paramType + + + + ) +
    + +
    +
    +
    + Undocumented. +
    +
    + Description of this parameter from the json schema. +
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + +
    + +
    + +

    onUninstalled

    + +
    + + chrome.management.onUninstalled.addListener(function(string id) {...}); +
    + +
    + +

    Fired when an app or extension has been uninstalled.

    + + +

    Parameters

    +
    +
    +
    +
    + id + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The id of the extension or app that was uninstalled.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    + +
    + +
    + +
    + + +
    + +

    Types

    + + +
    + +

    IconInfo

    + +
    +
    + paramName + + + +
    + ( + + + + + Type + + + + array of + + object + + + + ) +
    + +
    +
    + +
    Information about an icon belonging to an extension or app.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    + size + + + +
    + ( + + + + + Type + + + + array of + + integer + + + + ) +
    + +
    +
    + +
    A number representing the width and height of the icon. Likely values include (but are not limited to) 128, 48, 24, and 16.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + url + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The url for this icon image.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    +
    + +
    + +
    + +

    ExtensionInfo

    + +
    +
    + paramName + + + +
    + ( + + + + + Type + + + + array of + + object + + + + ) +
    + +
    +
    + +
    Information about an installed extension or app.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    + id + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The extension's unique identifier.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + name + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The name of this extension or app.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + version + + + +
    + ( + + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The version of this extension or app.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + enabled + + + +
    + ( + + + + + Type + + + + array of + + boolean + + + + ) +
    + +
    +
    + +
    Whether it is currently enabled or disabled.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + isApp + + + +
    + ( + + + + + Type + + + + array of + + boolean + + + + ) +
    + +
    +
    + +
    True if this is an app.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + appLaunchUrl + + + +
    + ( + optional + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The launch url (only present for apps).
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + optionsUrl + + + +
    + ( + optional + + + + Type + + + + array of + + string + + + + ) +
    + +
    +
    + +
    The url for the item's options page, if it has one.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + icons + + + +
    + ( + optional + + + + Type + + + + array of + + IconInfo + + + + array of + + paramType + + + + + paramType + + + + ) +
    + +
    +
    + +
    A list of icon information. Note that this just reflects what was declared in the manifest, and the actual image at that url may be larger or smaller than what was declared, so you might consider using explicit width and height attributes on img tags referencing these images. See the manifest documentation on icons for more details.
    +
    + This parameter was added in version + . + You must omit this parameter in earlier versions, + and you may omit it in any version. If you require this + parameter, the manifest key + minimum_chrome_version + can ensure that your extension won't be run in an earlier browser version. +
    + + +
    +
    +
    +
    +
    +
    +
    +
    + + +
    +
    +
    + +
    +
    +
    +
    + + +
    +
    +
    + +
    + +
    + +
    + +
    +
    +
    +
    + +
    + diff --git a/chrome/common/extensions/docs/manifest.html b/chrome/common/extensions/docs/manifest.html index 07a06d0..d8bd4f4 100644 --- a/chrome/common/extensions/docs/manifest.html +++ b/chrome/common/extensions/docs/manifest.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/match_patterns.html b/chrome/common/extensions/docs/match_patterns.html index 0965342..5e511b3 100644 --- a/chrome/common/extensions/docs/match_patterns.html +++ b/chrome/common/extensions/docs/match_patterns.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • @@ -495,7 +496,7 @@ Here are some examples of invalid pattern matches: - http://* + http://www.google.com No path diff --git a/chrome/common/extensions/docs/messaging.html b/chrome/common/extensions/docs/messaging.html index 6cc3bd7..120a03c 100644 --- a/chrome/common/extensions/docs/messaging.html +++ b/chrome/common/extensions/docs/messaging.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/notifications.html b/chrome/common/extensions/docs/notifications.html index 9e95058..fd0567a 100644 --- a/chrome/common/extensions/docs/notifications.html +++ b/chrome/common/extensions/docs/notifications.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/npapi.html b/chrome/common/extensions/docs/npapi.html index be509e5..5190257 100644 --- a/chrome/common/extensions/docs/npapi.html +++ b/chrome/common/extensions/docs/npapi.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/options.html b/chrome/common/extensions/docs/options.html index 000a81b..94dbfcf 100644 --- a/chrome/common/extensions/docs/options.html +++ b/chrome/common/extensions/docs/options.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/override.html b/chrome/common/extensions/docs/override.html index bb2253a..d1236c9 100644 --- a/chrome/common/extensions/docs/override.html +++ b/chrome/common/extensions/docs/override.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/overview.html b/chrome/common/extensions/docs/overview.html index 66ec6eb..2d9f9a1 100644 --- a/chrome/common/extensions/docs/overview.html +++ b/chrome/common/extensions/docs/overview.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/packaging.html b/chrome/common/extensions/docs/packaging.html index 79d8d7f..5cbc1cc 100644 --- a/chrome/common/extensions/docs/packaging.html +++ b/chrome/common/extensions/docs/packaging.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/pageAction.html b/chrome/common/extensions/docs/pageAction.html index a012cfb..9bd9388 100644 --- a/chrome/common/extensions/docs/pageAction.html +++ b/chrome/common/extensions/docs/pageAction.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/samples.html b/chrome/common/extensions/docs/samples.html index 6882945..385b931 100644 --- a/chrome/common/extensions/docs/samples.html +++ b/chrome/common/extensions/docs/samples.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • @@ -323,6 +324,8 @@ chrome.idle, + chrome.management, + chrome.pageAction, chrome.tabs, diff --git a/chrome/common/extensions/docs/samples.json b/chrome/common/extensions/docs/samples.json index f86db3f..9dd8085 100644 --- a/chrome/common/extensions/docs/samples.json +++ b/chrome/common/extensions/docs/samples.json @@ -22,10 +22,8 @@ "chrome.extension.sendRequest": "extension.html#method-sendRequest", "chrome.windows.getAll": "windows.html#method-getAll", "chrome.tabs.captureVisibleTab": "tabs.html#method-captureVisibleTab", - "chrome.experimental.management.onUninstalled": "experimental.management.html#event-onUninstalled", "chrome.idle.onStateChanged": "idle.html#event-onStateChanged", "chrome.i18n.getMessage": "i18n.html#method-getMessage", - "chrome.experimental.management.onEnabled": "experimental.management.html#event-onEnabled", "chrome.bookmarks.import": "bookmarks.html#method-import", "chrome.extension.onConnect": "extension.html#event-onConnect", "chrome.bookmarks.removeTree": "bookmarks.html#method-removeTree", @@ -38,11 +36,14 @@ "chrome.bookmarks.onChanged": "bookmarks.html#event-onChanged", "chrome.tabs.detectLanguage": "tabs.html#method-detectLanguage", "chrome.windows.onRemoved": "windows.html#event-onRemoved", + "chrome.management.uninstall": "management.html#method-uninstall", "chrome.experimental.clipboard.executePaste": "experimental.clipboard.html#method-executePaste", "chrome.experimental.webNavigation.onCompleted": "experimental.webNavigation.html#event-onCompleted", + "chrome.management.setEnabled": "management.html#method-setEnabled", "chrome.tabs.update": "tabs.html#method-update", "chrome.history.deleteRange": "history.html#method-deleteRange", "chrome.tabs.connect": "tabs.html#method-connect", + "chrome.management.onEnabled": "management.html#event-onEnabled", "chrome.cookies.set": "cookies.html#method-set", "chrome.experimental.sidebar.setBadgeText": "experimental.sidebar.html#method-setBadgeText", "chrome.experimental.webNavigation.onBeforeNavigate": "experimental.webNavigation.html#event-onBeforeNavigate", @@ -52,6 +53,7 @@ "chrome.experimental.webRequest.onBeforeRedirect": "experimental.webRequest.html#event-onBeforeRedirect", "chrome.tabs.getCurrent": "tabs.html#method-getCurrent", "chrome.experimental.sidebar.getState": "experimental.sidebar.html#method-getState", + "chrome.management.launchApp": "management.html#method-launchApp", "chrome.browserAction.setTitle": "browserAction.html#method-setTitle", "chrome.contextMenus.remove": "contextMenus.html#method-remove", "chrome.experimental.omnibox.onInputStarted": "experimental.omnibox.html#event-onInputStarted", @@ -59,6 +61,7 @@ "chrome.tabs.create": "tabs.html#method-create", "chrome.cookies.get": "cookies.html#method-get", "chrome.experimental.webRequest.onBeforeRequest": "experimental.webRequest.html#event-onBeforeRequest", + "chrome.management.onDisabled": "management.html#event-onDisabled", "chrome.windows.onCreated": "windows.html#event-onCreated", "chrome.experimental.webNavigation.onCommitted": "experimental.webNavigation.html#event-onCommitted", "chrome.bookmarks.create": "bookmarks.html#method-create", @@ -71,10 +74,10 @@ "chrome.experimental.webRequest.onCompleted": "experimental.webRequest.html#event-onCompleted", "chrome.bookmarks.onCreated": "bookmarks.html#event-onCreated", "chrome.pageAction.show": "pageAction.html#method-show", + "chrome.management.onInstalled": "management.html#event-onInstalled", "chrome.bookmarks.search": "bookmarks.html#method-search", "chrome.extension.onRequest": "extension.html#event-onRequest", "chrome.extension.getBackgroundPage": "extension.html#method-getBackgroundPage", - "chrome.experimental.management.launchApp": "experimental.management.html#method-launchApp", "chrome.pageAction.hide": "pageAction.html#method-hide", "chrome.experimental.omnibox.styleMatch": "experimental.omnibox.html#method-styleMatch", "chrome.experimental.sidebar.expand": "experimental.sidebar.html#method-expand", @@ -91,7 +94,6 @@ "chrome.cookies.getAll": "cookies.html#method-getAll", "chrome.extension.onRequestExternal": "extension.html#event-onRequestExternal", "chrome.bookmarks.onRemoved": "bookmarks.html#event-onRemoved", - "chrome.experimental.management.onDisabled": "experimental.management.html#event-onDisabled", "chrome.contextMenus.update": "contextMenus.html#method-update", "chrome.experimental.sidebar.setTitle": "experimental.sidebar.html#method-setTitle", "chrome.bookmarks.export": "bookmarks.html#method-export", @@ -100,7 +102,8 @@ "chrome.experimental.sidebar.show": "experimental.sidebar.html#method-show", "chrome.tabs.onSelectionChanged": "tabs.html#event-onSelectionChanged", "chrome.cookies.onChanged": "cookies.html#event-onChanged", - "chrome.experimental.management.uninstall": "experimental.management.html#method-uninstall", + "chrome.management.getAll": "management.html#method-getAll", + "chrome.management.onUninstalled": "management.html#event-onUninstalled", "chrome.windows.update": "windows.html#method-update", "chrome.extension.getURL": "extension.html#method-getURL", "chrome.idle.queryState": "idle.html#method-queryState", @@ -120,17 +123,14 @@ "chrome.experimental.proxy.useCustomProxySettings": "experimental.proxy.html#method-useCustomProxySettings", "chrome.browserAction.setPopup": "browserAction.html#method-setPopup", "chrome.bookmarks.onChildrenReordered": "bookmarks.html#event-onChildrenReordered", - "chrome.experimental.management.onInstalled": "experimental.management.html#event-onInstalled", "chrome.experimental.webRequest.onRequestSent": "experimental.webRequest.html#event-onRequestSent", "chrome.extension.getToolstrips": "extension.html#method-getToolstrips", "chrome.history.onVisited": "history.html#event-onVisited", "chrome.tabs.onUpdated": "tabs.html#event-onUpdated", - "chrome.experimental.management.setEnabled": "experimental.management.html#method-setEnabled", "chrome.history.deleteAll": "history.html#method-deleteAll", "chrome.experimental.webNavigation.onDOMContentLoaded": "experimental.webNavigation.html#event-onDOMContentLoaded", "chrome.tabs.getAllInWindow": "tabs.html#method-getAllInWindow", "chrome.contextMenus.create": "contextMenus.html#method-create", - "chrome.experimental.management.getAll": "experimental.management.html#method-getAll", "chrome.tabs.getSelected": "tabs.html#method-getSelected", "chrome.tabs.onAttached": "tabs.html#event-onAttached", "chrome.tabs.remove": "tabs.html#method-remove", diff --git a/chrome/common/extensions/docs/static/experimental.management.html b/chrome/common/extensions/docs/static/experimental.management.html deleted file mode 100644 index aa2fafb5..0000000 --- a/chrome/common/extensions/docs/static/experimental.management.html +++ /dev/null @@ -1,2 +0,0 @@ - - diff --git a/chrome/common/extensions/docs/static/management.html b/chrome/common/extensions/docs/static/management.html new file mode 100644 index 0000000..11bdc96 --- /dev/null +++ b/chrome/common/extensions/docs/static/management.html @@ -0,0 +1,6 @@ +
    Management
    + +

    +The chrome.management module provides ways to manage the list of extensions/apps that are installed and running. It is particularly useful for extensions that override the built-in New Tab page. +

    + diff --git a/chrome/common/extensions/docs/tabs.html b/chrome/common/extensions/docs/tabs.html index 17799d1..6bf0999 100644 --- a/chrome/common/extensions/docs/tabs.html +++ b/chrome/common/extensions/docs/tabs.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/template/api_template.html b/chrome/common/extensions/docs/template/api_template.html index adfc0b1..75f089d 100644 --- a/chrome/common/extensions/docs/template/api_template.html +++ b/chrome/common/extensions/docs/template/api_template.html @@ -164,6 +164,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/themes.html b/chrome/common/extensions/docs/themes.html index dfac356..0f4912d 100644 --- a/chrome/common/extensions/docs/themes.html +++ b/chrome/common/extensions/docs/themes.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/tut_analytics.html b/chrome/common/extensions/docs/tut_analytics.html index b38b7ae..6f6dafd 100644 --- a/chrome/common/extensions/docs/tut_analytics.html +++ b/chrome/common/extensions/docs/tut_analytics.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/tut_debugging.html b/chrome/common/extensions/docs/tut_debugging.html index 7336438..9d62494 100644 --- a/chrome/common/extensions/docs/tut_debugging.html +++ b/chrome/common/extensions/docs/tut_debugging.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/tut_oauth.html b/chrome/common/extensions/docs/tut_oauth.html index 2a66618..bab5072 100644 --- a/chrome/common/extensions/docs/tut_oauth.html +++ b/chrome/common/extensions/docs/tut_oauth.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/tutorials.html b/chrome/common/extensions/docs/tutorials.html index 7ab350c..c7bc92d 100644 --- a/chrome/common/extensions/docs/tutorials.html +++ b/chrome/common/extensions/docs/tutorials.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/whats_new.html b/chrome/common/extensions/docs/whats_new.html index fd7a196a..2bc0633 100644 --- a/chrome/common/extensions/docs/whats_new.html +++ b/chrome/common/extensions/docs/whats_new.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/windows.html b/chrome/common/extensions/docs/windows.html index 9e928e2c..0ed4523 100644 --- a/chrome/common/extensions/docs/windows.html +++ b/chrome/common/extensions/docs/windows.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/docs/xhr.html b/chrome/common/extensions/docs/xhr.html index c304f6f4..5c0176f 100644 --- a/chrome/common/extensions/docs/xhr.html +++ b/chrome/common/extensions/docs/xhr.html @@ -177,6 +177,7 @@
  • Cookies
  • Events
  • History
  • +
  • Management
  • Tabs
  • Windows
  • diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc index b88e7c1..4668c45 100644 --- a/chrome/common/extensions/extension.cc +++ b/chrome/common/extensions/extension.cc @@ -200,6 +200,7 @@ const char Extension::kExperimentalPermission[] = "experimental"; const char Extension::kGeolocationPermission[] = "geolocation"; const char Extension::kHistoryPermission[] = "history"; const char Extension::kIdlePermission[] = "idle"; +const char Extension::kManagementPermission[] = "management"; const char Extension::kNotificationPermission[] = "notifications"; const char Extension::kProxyPermission[] = "proxy"; const char Extension::kTabPermission[] = "tabs"; @@ -218,6 +219,7 @@ const Extension::Permission Extension::kPermissions[] = { { kGeolocationPermission, IDS_EXTENSION_PROMPT2_WARNING_GEOLOCATION }, { kIdlePermission, 0 }, { kHistoryPermission, IDS_EXTENSION_PROMPT2_WARNING_BROWSING_HISTORY }, + { kManagementPermission, IDS_EXTENSION_PROMPT2_WARNING_MANAGEMENT }, { kNotificationPermission, 0 }, { kProxyPermission, 0 }, { kTabPermission, IDS_EXTENSION_PROMPT2_WARNING_BROWSING_HISTORY }, diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h index f55ffe0..9172b4f 100644 --- a/chrome/common/extensions/extension.h +++ b/chrome/common/extensions/extension.h @@ -179,6 +179,7 @@ class Extension { static const char kGeolocationPermission[]; static const char kHistoryPermission[]; static const char kIdlePermission[]; + static const char kManagementPermission[]; static const char kNotificationPermission[]; static const char kProxyPermission[]; static const char kTabPermission[]; diff --git a/chrome/renderer/resources/renderer_extension_bindings.js b/chrome/renderer/resources/renderer_extension_bindings.js index 90a68bc..79a20d2 100644 --- a/chrome/renderer/resources/renderer_extension_bindings.js +++ b/chrome/renderer/resources/renderer_extension_bindings.js @@ -260,7 +260,6 @@ var chrome = chrome || {}; "experimental.extension", "experimental.infobars", "experimental.input", - "experimental.management", "experimental.metrics", "experimental.omnibox", "experimental.popup", @@ -273,6 +272,7 @@ var chrome = chrome || {}; "experimental.webRequest", "history", "idle", + "management", "pageAction", "pageActions", "tabs", diff --git a/chrome/test/data/extensions/api_test/management/test/common.js b/chrome/test/data/extensions/api_test/management/test/common.js index 744ced4..c1ae52e 100644 --- a/chrome/test/data/extensions/api_test/management/test/common.js +++ b/chrome/test/data/extensions/api_test/management/test/common.js @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -if (!chrome.management) { - chrome.management = chrome.experimental.management; -} - var assertEq = chrome.test.assertEq; var assertFalse = chrome.test.assertFalse; var assertNoLastError = chrome.test.assertNoLastError; diff --git a/chrome/test/data/extensions/api_test/management/test/manifest.json b/chrome/test/data/extensions/api_test/management/test/manifest.json index a5915d4..4c25179 100644 --- a/chrome/test/data/extensions/api_test/management/test/manifest.json +++ b/chrome/test/data/extensions/api_test/management/test/manifest.json @@ -1,5 +1,5 @@ { "name": "Extension Management API Test", "version": "0.1", - "permissions": ["experimental"] + "permissions": ["management"] } diff --git a/chrome/test/data/extensions/management/install_event/manifest.json b/chrome/test/data/extensions/management/install_event/manifest.json index 79a5831..7bbe8af 100644 --- a/chrome/test/data/extensions/management/install_event/manifest.json +++ b/chrome/test/data/extensions/management/install_event/manifest.json @@ -1,7 +1,7 @@ { "name": "Install event test", "version": "0.1", - "permissions": ["experimental"], + "permissions": ["management"], "background_page": "background.html" } diff --git a/chrome/test/data/extensions/management/install_event/test.js b/chrome/test/data/extensions/management/install_event/test.js index 09ef1c4..afdf6f8 100644 --- a/chrome/test/data/extensions/management/install_event/test.js +++ b/chrome/test/data/extensions/management/install_event/test.js @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -if (!chrome.management) { - chrome.management = chrome.experimental.management; -} - chrome.management.onInstalled.addListener(function(info) { if (info.name == "enabled_extension") { chrome.test.sendMessage("got_event"); diff --git a/chrome/test/data/extensions/management/launch_app/manifest.json b/chrome/test/data/extensions/management/launch_app/manifest.json index a4813de..ebbae31 100644 --- a/chrome/test/data/extensions/management/launch_app/manifest.json +++ b/chrome/test/data/extensions/management/launch_app/manifest.json @@ -1,6 +1,6 @@ { "name": "Launch App test extension", "version": "1", - "permissions": ["experimental"], + "permissions": ["management"], "background_page": "background.html" } \ No newline at end of file diff --git a/chrome/test/data/extensions/management/launch_app/test.js b/chrome/test/data/extensions/management/launch_app/test.js index dad2be4..ee2e2c5 100644 --- a/chrome/test/data/extensions/management/launch_app/test.js +++ b/chrome/test/data/extensions/management/launch_app/test.js @@ -2,10 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -if (!chrome.management) { - chrome.management = chrome.experimental.management; -} - window.onload = function() { chrome.management.getAll(function(items) { for (var i in items) { -- cgit v1.1