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

Unified Diff: chrome/common/extensions/docs/static/experimental.infobars.html

Issue 3137039: Copyedit pass on new doc (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/static/experimental.infobars.html
===================================================================
--- chrome/common/extensions/docs/static/experimental.infobars.html (revision 57248)
+++ chrome/common/extensions/docs/static/experimental.infobars.html (working copy)
@@ -1,33 +1,40 @@
<!-- BEGIN AUTHORED CONTENT -->
-<p>The infobars API allows you to add
-horizontal panels to the top of tabs.
+<p>
+The infobars API allows you to add a
+horizontal panel just above a tab's contents,
+as the following screenshot shows.
+</p>
-<p><img src="infobars.png" width="598">
+<p>
+<img src="images/infobar.png"
+ width="566" height="150"
+ alt="An infobar asking whether the user wants to translate the current page" />
+</p>
-<p>You implement the content of your
-infobar using HTML. Just like with other
-parts of the extension system, you can
-communicate to an from the infobar
-using APIs like
-<a href="extension.html#method-getBackgroundPage"
- >chrome.extension.getBackgroundPage()</a>
-and
-<a href="extension.html#method-getViews"
- >chrome.extension.getViews()</a>.
+<p>
+Use an infobar to tell the reader
+something about a particular page.
+When the user leaves the page for which the infobar is displayed,
+Google Chrome automatically closes the infobar.
+</p>
-<p>Infobars should be used to tell users
-something about a particular page. Google
-Chrome automatically closes an infobar when
-the page that it was displayed for is navigated
-elsewhere.
+<p>
+You implement the content of your
+infobar using HTML. Because infobars are ordinary pages inside an extension,
+they can
+<a href="overview.html#pageComm">communicate with other extension pages</a>.
+</p>
+
<h2 id="manifest">Manifest</h2>
-<p>Because the Infobars API is currently
-experimental, you must declare the "experimental"
+<p>
+The infobars API is currently
+experimental, so you must declare the "experimental"
permission to use it. Also, you should specify
a 16x16-pixel icon for display next to your infobar.
For example:
+</p>
<pre>{
"name": "Andy's infobar extension",
« no previous file with comments | « chrome/common/extensions/docs/samples.json ('k') | chrome/common/extensions/docs/static/experimental.omnibox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698