summaryrefslogtreecommitdiffstats
path: root/chrome/common
diff options
context:
space:
mode:
authorkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 19:25:19 +0000
committerkathyw@google.com <kathyw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-09 19:25:19 +0000
commit580356f1523b1edcc4ad1e2a8eb7da4a0e469a17 (patch)
tree87f8f0f44250b8480677568996998c4f1227efa9 /chrome/common
parent8c80e993119b8b5eac5761aae52536f6a064fd9c (diff)
downloadchromium_src-580356f1523b1edcc4ad1e2a8eb7da4a0e469a17.zip
chromium_src-580356f1523b1edcc4ad1e2a8eb7da4a0e469a17.tar.gz
chromium_src-580356f1523b1edcc4ad1e2a8eb7da4a0e469a17.tar.bz2
Add popups to page actions.
TEST=none BUG=none Review URL: http://codereview.chromium.org/379006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31459 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r--chrome/common/extensions/docs/pageAction.html23
-rwxr-xr-xchrome/common/extensions/docs/static/pageAction.html17
2 files changed, 23 insertions, 17 deletions
diff --git a/chrome/common/extensions/docs/pageAction.html b/chrome/common/extensions/docs/pageAction.html
index 02b7ba0..417a4e3 100644
--- a/chrome/common/extensions/docs/pageAction.html
+++ b/chrome/common/extensions/docs/pageAction.html
@@ -258,7 +258,7 @@ the RSS feed for the current page.
<img src="images/page-action.png" width="361" height="79">
<p>
-If you want your icon to always be visible,
+If you want the extension's icon to always be visible,
use a <a href="browserAction.html">browser action</a> instead.
</p>
@@ -272,8 +272,9 @@ like this:
</p>
<pre>"page_action": {
- "default_title": "Do action", <em>// optional; shown in tooltip</em>
- "default_icon": "icons/foo.png" <em>// optional</em>
+ "default_title": "Do action", <em>// optional; shown in tooltip</em>
+ "default_icon": "icons/foo.png", <em>// optional</em>
+ "popup": "popup.html" <em>// optional</em>
}</pre>
<p><b>Note:</b> Even if you don't include
@@ -284,19 +285,21 @@ like this:
in the address bar.</p>
<p>
-Although the "default_icon" is optional, it's a good idea to provide one.
-When users install your extension, if you have set a default icon, it can
-be previewed to the user so they know what to look for when your page action
+Set "default_icon" if at all possible.
+Users see the default icon when they install your extension,
+which helps them know what to look for when your page action
is active for a given page.</p>
<h2 id="ui">Parts of the UI</h2>
<p>
-Page actions have an icon and optional tooltip,
-just like browser actions do.
+Like browser actions,
+page actions have an icon and
+can also have a tooltip and popup;
+they can't have badges, however.
In addition, page actions can appear and disappear.
-For information about the common UI parts,
-read about the
+You can find information about icons, tooltips, and popups
+by reading about the
<a href="browserAction.html#ui">browser action UI</a>.
</p>
diff --git a/chrome/common/extensions/docs/static/pageAction.html b/chrome/common/extensions/docs/static/pageAction.html
index 06a722e..08e34ec 100755
--- a/chrome/common/extensions/docs/static/pageAction.html
+++ b/chrome/common/extensions/docs/static/pageAction.html
@@ -24,7 +24,7 @@ the RSS feed for the current page.
width="361" height="79" />
<p>
-If you want your icon to always be visible,
+If you want the extension's icon to always be visible,
use a <a href="browserAction.html">browser action</a> instead.
</p>
@@ -38,8 +38,9 @@ like this:
</p>
<pre>"page_action": {
- "default_title": "Do action", <em>// optional; shown in tooltip</em>
- "default_icon": "icons/foo.png" <em>// optional</em>
+ "default_title": "Do action", <em>// optional; shown in tooltip</em>
+ "default_icon": "icons/foo.png", <em>// optional</em>
+ "popup": "popup.html" <em>// optional</em>
}</pre>
<p><b>Note:</b> Even if you don't include
@@ -58,11 +59,13 @@ is active for a given page.</p>
<h2 id="ui">Parts of the UI</h2>
<p>
-Page actions have an icon and optional tooltip,
-just like browser actions do.
+Like browser actions,
+page actions have an icon and
+can also have a tooltip and popup;
+they can't have badges, however.
In addition, page actions can appear and disappear.
-For information about the common UI parts,
-read about the
+You can find information about icons, tooltips, and popups
+by reading about the
<a href="browserAction.html#ui">browser action UI</a>.
</p>