diff options
author | kathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 07:12:43 +0000 |
---|---|---|
committer | kathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-23 07:12:43 +0000 |
commit | 90d6a1942b4496ca97a75eadd8a9c2497405c7ea (patch) | |
tree | ceae419e696f7f22f34f3380508c6e516f7d8dd3 /chrome | |
parent | c38ba0250a72f17c2b5caed4dc96dcca8db927b2 (diff) | |
download | chromium_src-90d6a1942b4496ca97a75eadd8a9c2497405c7ea.zip chromium_src-90d6a1942b4496ca97a75eadd8a9c2497405c7ea.tar.gz chromium_src-90d6a1942b4496ca97a75eadd8a9c2497405c7ea.tar.bz2 |
Removed page action references to badges and popups.
Added information about the lifetime of show().
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/336004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29883 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/common/extensions/docs/pageAction.html | 28 | ||||
-rwxr-xr-x | chrome/common/extensions/docs/static/pageAction.html | 28 |
2 files changed, 34 insertions, 22 deletions
diff --git a/chrome/common/extensions/docs/pageAction.html b/chrome/common/extensions/docs/pageAction.html index 38d0133..c40266c 100644 --- a/chrome/common/extensions/docs/pageAction.html +++ b/chrome/common/extensions/docs/pageAction.html @@ -247,12 +247,11 @@ Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages. Some examples: -"Subscribe to this page's RSS feed", -"Make a slideshow out of this page's photos". -<span class="comment"> -[PENDING: check] -</span> </p> +<ul> + <li> Subscribe to this page's RSS feed </li> + <li> Make a slideshow out of this page's photos </li> +</ul> <p> The RSS icon in the following screenshot @@ -286,15 +285,15 @@ like this: any of the values, you must include an empty <b>page_action</b> entry in your manifest so that the system - reserves space for your page action + reserves a slot for your page action in the address bar.</p> <h2 id="ui">Parts of the UI</h2> <p> -Page actions have the same UI parts as browser actions — -icon, tooltip, badge, and popup — -with the addition that page actions can appear and disappear. +Page actions have an icon and optional tooltip, +just like browser actions do. +In addition, page actions can appear and disappear. For information about the common UI parts, read about the <a href="browserAction.html#ui">browser action UI</a>. @@ -302,8 +301,15 @@ read about the <p> You make a page action appear and disappear using the -<a href="#method-hide">hide()</a> and -<a href="#method-show">show()</a> methods, respectively. +<a href="#method-show">show()</a> and +<a href="#method-hide">hide()</a> methods, respectively. +By default, a page action is hidden. +When you show it, you specify the tab +in which the icon should appear. +The icon remains visible +until the tab is closed +or starts displaying a different URL +(because the user clicks a link, for example). </p> <div class="comment"> diff --git a/chrome/common/extensions/docs/static/pageAction.html b/chrome/common/extensions/docs/static/pageAction.html index 402c431..204048d 100755 --- a/chrome/common/extensions/docs/static/pageAction.html +++ b/chrome/common/extensions/docs/static/pageAction.html @@ -7,12 +7,11 @@ Page actions represent actions that can be taken on the current page, but that aren't applicable to all pages. Some examples: -"Subscribe to this page's RSS feed", -"Make a slideshow out of this page's photos". -<span class="comment"> -[PENDING: check] -</span> </p> +<ul> + <li> Subscribe to this page's RSS feed </li> + <li> Make a slideshow out of this page's photos </li> +</ul> <p> The RSS icon in the following screenshot @@ -47,15 +46,15 @@ like this: any of the values, you must include an empty <b>page_action</b> entry in your manifest so that the system - reserves space for your page action + reserves a slot for your page action in the address bar.</p> <h2 id="ui">Parts of the UI</h2> <p> -Page actions have the same UI parts as browser actions — -icon, tooltip, badge, and popup — -with the addition that page actions can appear and disappear. +Page actions have an icon and optional tooltip, +just like browser actions do. +In addition, page actions can appear and disappear. For information about the common UI parts, read about the <a href="browserAction.html#ui">browser action UI</a>. @@ -63,8 +62,15 @@ read about the <p> You make a page action appear and disappear using the -<a href="#method-hide">hide()</a> and -<a href="#method-show">show()</a> methods, respectively. +<a href="#method-show">show()</a> and +<a href="#method-hide">hide()</a> methods, respectively. +By default, a page action is hidden. +When you show it, you specify the tab +in which the icon should appear. +The icon remains visible +until the tab is closed +or starts displaying a different URL +(because the user clicks a link, for example). </p> <div class="comment"> |