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

Unified Diff: chrome/common/extensions/docs/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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.omnibox.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/experimental.infobars.html
===================================================================
--- chrome/common/extensions/docs/experimental.infobars.html (revision 57248)
+++ chrome/common/extensions/docs/experimental.infobars.html (working copy)
@@ -289,35 +289,42 @@
<!-- STATIC CONTENT PLACEHOLDER -->
<div id="static"><!-- 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><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><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><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>
-</p><h2 id="manifest">Manifest</h2>
-<p>Because the Infobars API is currently
-experimental, you must declare the "experimental"
+<h2 id="manifest">Manifest</h2>
+
+<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>
-</p><pre>{
+<pre>{
"name": "Andy's infobar extension",
"version": "1.0",
<b>"permissions": ["experimental"],</b>
« no previous file with comments | « no previous file | chrome/common/extensions/docs/experimental.omnibox.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698