From 177e1e5687ff03ce1b36caa139c6e5a79bfe02d3 Mon Sep 17 00:00:00 2001 From: "kathyw@chromium.org" Date: Mon, 29 Nov 2010 17:13:47 +0000 Subject: Miscellaneous small changes to the extensions doc, including mentions of exceptions for packaged apps. I plan to apply these changes to all versions of the doc. This is the first of 3 CLs I hope to get out today. TBR=aa BUG=none TEST=none Review URL: http://codereview.chromium.org/5347007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67543 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/extensions/api/extension_api.json | 4 ++-- chrome/common/extensions/docs/browserAction.html | 5 +++++ chrome/common/extensions/docs/contextMenus.html | 2 +- chrome/common/extensions/docs/extension.html | 2 +- chrome/common/extensions/docs/i18n.html | 6 ++---- chrome/common/extensions/docs/pageAction.html | 5 +++++ chrome/common/extensions/docs/static/browserAction.html | 5 +++++ chrome/common/extensions/docs/static/i18n.html | 6 ++---- chrome/common/extensions/docs/static/pageAction.html | 5 +++++ chrome/common/extensions/docs/static/xhr.html | 6 ------ chrome/common/extensions/docs/xhr.html | 6 ------ 11 files changed, 28 insertions(+), 24 deletions(-) (limited to 'chrome/common') diff --git a/chrome/common/extensions/api/extension_api.json b/chrome/common/extensions/api/extension_api.json index 91112cc..4463a3c 100644 --- a/chrome/common/extensions/api/extension_api.json +++ b/chrome/common/extensions/api/extension_api.json @@ -115,7 +115,7 @@ { "type": "string", "name": "path", - "description": "A path to a resource within an extension expressed relative to it's install directory." + "description": "A path to a resource within an extension expressed relative to its install directory." } ], "returns": { @@ -2885,7 +2885,7 @@ "parentId": { "type": "integer", "optional": true, - "description": "Note: you cannot change an item to be a child of one of it's own descendants." + "description": "Note: You cannot change an item to be a child of one of its own descendants." }, "documentUrlPatterns": { "type": "array", diff --git a/chrome/common/extensions/docs/browserAction.html b/chrome/common/extensions/docs/browserAction.html index b9827ea..441422d 100644 --- a/chrome/common/extensions/docs/browserAction.html +++ b/chrome/common/extensions/docs/browserAction.html @@ -365,6 +365,11 @@ use a page action instead of a browser action.

+

+Note: +Packaged apps cannot use browser actions. +

+

Manifest

diff --git a/chrome/common/extensions/docs/contextMenus.html b/chrome/common/extensions/docs/contextMenus.html index 4e9833a..7f7bba61 100644 --- a/chrome/common/extensions/docs/contextMenus.html +++ b/chrome/common/extensions/docs/contextMenus.html @@ -2006,7 +2006,7 @@ You can find samples of this API on the -
Note: you cannot change an item to be a child of one of it's own descendants.
+
Note: You cannot change an item to be a child of one of its own descendants.
This parameter was added in version . diff --git a/chrome/common/extensions/docs/extension.html b/chrome/common/extensions/docs/extension.html index dc5beda..c817d70 100644 --- a/chrome/common/extensions/docs/extension.html +++ b/chrome/common/extensions/docs/extension.html @@ -1224,7 +1224,7 @@ For details, see
-
A path to a resource within an extension expressed relative to it's install directory.
+
A path to a resource within an extension expressed relative to its install directory.
This parameter was added in version . diff --git a/chrome/common/extensions/docs/i18n.html b/chrome/common/extensions/docs/i18n.html index cfdd957..c45e017 100644 --- a/chrome/common/extensions/docs/i18n.html +++ b/chrome/common/extensions/docs/i18n.html @@ -825,10 +825,8 @@ For example: You can find simple examples of internationalization in the examples/api/i18n directory. -For a more complete example, see -examples/extensions/news_i18n -(compare it to -examples/extensions/news). +For a complete example, see +examples/extensions/news. For other examples and for help in viewing the source code, see Samples.

diff --git a/chrome/common/extensions/docs/pageAction.html b/chrome/common/extensions/docs/pageAction.html index 17212b7..b7486c6 100644 --- a/chrome/common/extensions/docs/pageAction.html +++ b/chrome/common/extensions/docs/pageAction.html @@ -359,6 +359,11 @@ If you want the extension's icon to always be visible, use a browser action instead.

+

+Note: +Packaged apps cannot use page actions. +

+

Manifest

diff --git a/chrome/common/extensions/docs/static/browserAction.html b/chrome/common/extensions/docs/static/browserAction.html index 2a35b5d..40da968 100644 --- a/chrome/common/extensions/docs/static/browserAction.html +++ b/chrome/common/extensions/docs/static/browserAction.html @@ -28,6 +28,11 @@ use a page action instead of a browser action.

+

+Note: +Packaged apps cannot use browser actions. +

+

Manifest

diff --git a/chrome/common/extensions/docs/static/i18n.html b/chrome/common/extensions/docs/static/i18n.html index c56abc6..4d0f9b3 100644 --- a/chrome/common/extensions/docs/static/i18n.html +++ b/chrome/common/extensions/docs/static/i18n.html @@ -509,10 +509,8 @@ LANGUAGE=es ./chrome You can find simple examples of internationalization in the examples/api/i18n directory. -For a more complete example, see -examples/extensions/news_i18n -(compare it to -examples/extensions/news). +For a complete example, see +examples/extensions/news. For other examples and for help in viewing the source code, see Samples.

diff --git a/chrome/common/extensions/docs/static/pageAction.html b/chrome/common/extensions/docs/static/pageAction.html index 0c515b9..3def87e 100644 --- a/chrome/common/extensions/docs/static/pageAction.html +++ b/chrome/common/extensions/docs/static/pageAction.html @@ -28,6 +28,11 @@ If you want the extension's icon to always be visible, use a browser action instead.

+

+Note: +Packaged apps cannot use page actions. +

+

Manifest

diff --git a/chrome/common/extensions/docs/static/xhr.html b/chrome/common/extensions/docs/static/xhr.html index a7be123..84cecfc 100644 --- a/chrome/common/extensions/docs/static/xhr.html +++ b/chrome/common/extensions/docs/static/xhr.html @@ -36,12 +36,6 @@ xhr.open("GET", chrome.extension.getURL('/config_resources/config.json'), true); xhr.send(); -

-Bug note: -Until bug 41024 is fixed, -the preceding code won't work. -

-

If the extension attempts to use a security origin other than itself, say http://www.google.com, the browser disallows it diff --git a/chrome/common/extensions/docs/xhr.html b/chrome/common/extensions/docs/xhr.html index d3c32e2..756e189 100644 --- a/chrome/common/extensions/docs/xhr.html +++ b/chrome/common/extensions/docs/xhr.html @@ -338,12 +338,6 @@ xhr.open("GET", chrome.extension.getURL('/config_resources/config.json'), true); xhr.send(); -

-Bug note: -Until bug 41024 is fixed, -the preceding code won't work. -

-

If the extension attempts to use a security origin other than itself, say http://www.google.com, the browser disallows it -- cgit v1.1