summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authoryoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 17:31:59 +0000
committeryoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-09-02 17:31:59 +0000
commit802f74ed233cfbbac0c7c18ec5b072e77fdbb817 (patch)
tree7a22744fce467942612718b2ee73874580bb40d1 /chrome/common
parentade9abe99a04fc49e55ced8d31abc5441bf7032d (diff)
downloadchromium_src-802f74ed233cfbbac0c7c18ec5b072e77fdbb817.zip
chromium_src-802f74ed233cfbbac0c7c18ec5b072e77fdbb817.tar.gz
chromium_src-802f74ed233cfbbac0c7c18ec5b072e77fdbb817.tar.bz2
Make the management API support the offline_enabled field.
BUG=none TEST=added test to ExtensionManagementApiTest.Basics Review URL: http://codereview.chromium.org/7826020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99398 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/api/extension_api.json4
-rw-r--r--chrome/common/extensions/docs/management.html68
2 files changed, 72 insertions, 0 deletions
diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json
index 607e9e4..04146e5 100644
--- a/chrome/common/extensions/api/extension_api.json
+++ b/chrome/common/extensions/api/extension_api.json
@@ -6337,6 +6337,10 @@
"type": "string",
"optional": true
},
+ "offlineEnabled": {
+ "description": "Whether the extension or app declares that it supports offline.",
+ "type": "boolean"
+ },
"optionsUrl": {
"description": "The url for the item's options page, if it has one.",
"type": "string"
diff --git a/chrome/common/extensions/docs/management.html b/chrome/common/extensions/docs/management.html
index 15c71bb..4a917e5 100644
--- a/chrome/common/extensions/docs/management.html
+++ b/chrome/common/extensions/docs/management.html
@@ -3424,6 +3424,74 @@ The one method that doesn't require the "manifest" permission is
</div><div>
<div>
<dt>
+ <var>offlineEnabled</var>
+ <em>
+
+ <!-- TYPE -->
+ <div style="display:inline">
+ (
+ <span class="optional" style="display: none; ">optional</span>
+ <span class="enum" style="display: none; ">enumerated</span>
+ <span id="typeTemplate">
+ <span style="display: none; ">
+ <a> Type</a>
+ </span>
+ <span>
+ <span style="display: none; ">
+ array of <span><span></span></span>
+ </span>
+ <span>boolean</span>
+ <span style="display: none; "></span>
+ </span>
+ </span>
+ )
+ </div>
+
+ </em>
+ </dt>
+ <dd class="todo" style="display: none; ">
+ Undocumented.
+ </dd>
+ <dd>Whether the extension or app declares that it supports offline.</dd>
+ <dd style="display: none; ">
+ This parameter was added in version
+ <b><span></span></b>.
+ You must omit this parameter in earlier versions,
+ and you may omit it in any version. If you require this
+ parameter, the manifest key
+ <a href="manifest.html#minimum_chrome_version">minimum_chrome_version</a>
+ can ensure that your extension won't be run in an earlier browser version.
+ </dd>
+
+ <!-- OBJECT PROPERTIES -->
+ <dd style="display: none; ">
+ <dl>
+ <div>
+ <div>
+ </div>
+ </div>
+ </dl>
+ </dd>
+
+ <!-- OBJECT METHODS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ <!-- OBJECT EVENT FIELDS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ <!-- FUNCTION PARAMETERS -->
+ <dd style="display: none; ">
+ <div></div>
+ </dd>
+
+ </div>
+ </div><div>
+ <div>
+ <dt>
<var>optionsUrl</var>
<em>