Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7299)

Unified Diff: chrome/common/extensions/docs/server2/templates/intros/page_action.html

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment in converter.py Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/docs/server2/templates/intros/page_action.html
diff --git a/chrome/common/extensions/docs/server2/templates/intros/pageAction.html b/chrome/common/extensions/docs/server2/templates/intros/page_action.html
similarity index 90%
copy from chrome/common/extensions/docs/server2/templates/intros/pageAction.html
copy to chrome/common/extensions/docs/server2/templates/intros/page_action.html
index 1dc45d8e429f45a20d31187617f61ffbf47c4a36..b15b575b5a6a9bcd821b1b4f5d2d31939701bb01 100644
--- a/chrome/common/extensions/docs/server2/templates/intros/pageAction.html
+++ b/chrome/common/extensions/docs/server2/templates/intros/page_action.html
@@ -1,4 +1,6 @@
-<!-- BEGIN AUTHORED CONTENT -->
+
+
+
<p>
Use page actions to put icons inside the address bar.
Page actions represent actions
@@ -10,28 +12,36 @@ Some examples:
<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
represents a page action
that lets you subscribe to
the RSS feed for the current page.
</p>
+
<img src="{{static}}/images/page-action.png"
width="361" height="79" />
+
<p>
If you want the extension's icon to always be visible,
use a <a href="browserAction.html">browser action</a> instead.
</p>
+
<p class="caution">
<strong>Note:</strong>
Packaged apps cannot use page actions.
</p>
+
+
<h2 id="manifest">Manifest</h2>
+
<p>
Register your page action in the
<a href="manifest.html">extension manifest</a>
like this:
</p>
+
<pre>{
"name": "My extension",
...
@@ -42,7 +52,9 @@ like this:
}</b>,
...
}</pre>
+
<h2 id="ui">Parts of the UI</h2>
+
<p>
Like browser actions,
page actions can have an icon,
@@ -53,6 +65,7 @@ You can find information about icons, tooltips, and popups
by reading about the
<a href="browserAction.html#ui">browser action UI</a>.
</p>
+
<p>
You make a page action appear and disappear using the
<a href="#method-show">show()</a> and
@@ -65,10 +78,15 @@ until the tab is closed
or starts displaying a different URL
(because the user clicks a link, for example).
</p>
-<!-- [PENDING: We should discuss how tabs and page actions are related. All methods take a tab ID argument. How do you get that tab ID? What's the usual way of arranging the code that monitors pages? Point to examples.] -->
+
+
+
+
<h2 id="tips">Tips</h2>
+
<p>For the best visual impact,
follow these guidelines:</p>
+
<ul>
<li><b>Do</b> use page actions
for features that make sense
@@ -80,7 +98,10 @@ follow these guidelines:</p>
<li><b>Don't</b> constantly animate your icon.
That's just annoying.
</ul>
+
+
<h2 id="examples"> Examples </h2>
+
<p>
You can find simple examples of using page actions in the
<a href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions/docs/examples/api/pageAction/">examples/api/pageAction</a>
@@ -88,4 +109,5 @@ directory.
For other examples and for help in viewing the source code, see
<a href="samples.html">Samples</a>.
</p>
-<!-- END AUTHORED CONTENT -->
+
+

Powered by Google App Engine
This is Rietveld 408576698