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

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

Issue 20824007: Fixing infobars apis docs which was introduced by https://chromiumcodereview.appspot.com/20081002 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: FIxed the docs for infobars Created 7 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
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/public/extensions/infobars.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/docs/templates/intros/infobars.html
diff --git a/chrome/common/extensions/docs/templates/intros/infobars.html b/chrome/common/extensions/docs/templates/intros/infobars.html
index 009f9d9c0b7b833ea4d3e400e5a046236076092b..e3bba7d1ffd3adfa2eaaf1923d66c2c4809de81c 100644
--- a/chrome/common/extensions/docs/templates/intros/infobars.html
+++ b/chrome/common/extensions/docs/templates/intros/infobars.html
@@ -1 +1,47 @@
-{{+partials.standard_extensions_api api:apis.infobars intro:intros.infobars}}
+<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="{{static}}/images/infobar.png"
+ width="566" height="150"
+ alt="An infobar asking whether the user wants to translate the current page" />
+</p>
+
+<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>
+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>
+The infobars API is avaiable under "infobars"
+permission and dev channel only. Also, you should specify
+a 16x16-pixel icon for display next to your infobar.
+For example:
+</p>
+
+<pre>{
+ "name": "Andy's infobar extension",
+ "version": "1.0",
+ <b>"permissions": ["infobars"],</b>
+ <b>"icons": {</b>
+ <b>"16": "16.png"</b>
+ <b>},</b>
+ "background": {
+ "scripts": ["background.js"]
+ }
+}</pre>
« no previous file with comments | « no previous file | chrome/common/extensions/docs/templates/public/extensions/infobars.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698