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

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

Issue 10832042: Extensions Docs Server: Doc conversion script (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: everything but svn stuff 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/omnibox.html
diff --git a/chrome/common/extensions/docs/server2/templates/intros/omnibox.html b/chrome/common/extensions/docs/server2/templates/intros/omnibox.html
index d365177e202571d5a761294a507daf339977c087..8465482933ef97d5fe8ce4b99116723716d5ce8d 100644
--- a/chrome/common/extensions/docs/server2/templates/intros/omnibox.html
+++ b/chrome/common/extensions/docs/server2/templates/intros/omnibox.html
@@ -1,13 +1,14 @@
-<!-- BEGIN AUTHORED CONTENT -->
<p>
The omnibox API allows you to register a
keyword with Google Chrome's address bar,
which is also known as the omnibox.
</p>
+
<p>
<img src="{{static}}/images/omnibox.png" width="300" height="150"
alt="A screenshot showing suggestions related to the keyword 'Chromium Search'"/>
</p>
+
<p>
When the user enters your extension's
keyword, the user starts
@@ -16,15 +17,18 @@ Each keystroke is sent to your
extension, and you can provide suggestions
in response.
</p>
+
<p>
The suggestions can be richly formatted
in a variety of ways.
-<!-- PENDING: for example? (include a mention of method name, maybe show a code snippet) -->
+
When the user accepts
a suggestion, your extension is notified
and can take action.
</p>
+
<h2 id="manifest">Manifest</h2>
+
<p>
You must include an <code>omnibox</code> <code>keyword</code> field
in the <a href="manifest.html">manifest</a>
@@ -34,9 +38,11 @@ specify a 16x16-pixel icon, which will be
displayed in the address bar when suggesting that users
enter keyword mode.
</p>
+
<p>
For example:
</p>
+
<pre>{
"name": "Aaron's omnibox extension",
"version": "1.0",
@@ -48,6 +54,7 @@ For example:
"scripts": ["background.js"]
}
}</pre>
+
<p class="note">
<strong>Note:</strong>
Chrome automatically creates a grayscale version of
@@ -58,8 +65,10 @@ For example, the <a href="contextMenus.html"
>context menus API</a> also uses a 16x16-pixel
icon, but it is displayed in color.
</p>
+
+
<h2 id="examples">Examples</h2>
+
<p>
You can find samples of this API on the
-<a href="samples.html#omnibox">sample page</a>.
-<!-- END AUTHORED CONTENT -->
+<a href="samples.html#omnibox">sample page</a>.

Powered by Google App Engine
This is Rietveld 408576698