OLD | NEW |
1 <div id="pageData-name" class="pageData">Omnibox</div> | |
2 | |
3 <!-- BEGIN AUTHORED CONTENT --> | |
4 <p> | 1 <p> |
5 The omnibox API allows you to register a | 2 The omnibox API allows you to register a |
6 keyword with Google Chrome's address bar, | 3 keyword with Google Chrome's address bar, |
7 which is also known as the omnibox. | 4 which is also known as the omnibox. |
8 </p> | 5 </p> |
9 | 6 |
10 <p> | 7 <p> |
11 <img src="../images/omnibox.png" width="300" height="150" | 8 <img src="{{static}}/images/omnibox.png" width="300" height="150" |
12 alt="A screenshot showing suggestions related to the keyword 'Chromium Search'
"/> | 9 alt="A screenshot showing suggestions related to the keyword 'Chromium Search'
"/> |
13 </p> | 10 </p> |
14 | 11 |
15 <p> | 12 <p> |
16 When the user enters your extension's | 13 When the user enters your extension's |
17 keyword, the user starts | 14 keyword, the user starts |
18 interacting solely with your extension. | 15 interacting solely with your extension. |
19 Each keystroke is sent to your | 16 Each keystroke is sent to your |
20 extension, and you can provide suggestions | 17 extension, and you can provide suggestions |
21 in response. | 18 in response. |
22 </p> | 19 </p> |
23 | 20 |
24 <p> | 21 <p> |
25 The suggestions can be richly formatted | 22 The suggestions can be richly formatted |
26 in a variety of ways. | 23 in a variety of ways. |
27 <!-- PENDING: for example? (include a mention of method name, maybe show a code
snippet) --> | 24 |
28 When the user accepts | 25 When the user accepts |
29 a suggestion, your extension is notified | 26 a suggestion, your extension is notified |
30 and can take action. | 27 and can take action. |
31 </p> | 28 </p> |
32 | 29 |
33 <h2 id="manifest">Manifest</h2> | 30 <h2 id="manifest">Manifest</h2> |
34 | 31 |
35 <p> | 32 <p> |
36 You must include an <code>omnibox</code> <code>keyword</code> field | 33 You must include an <code>omnibox</code> <code>keyword</code> field |
37 in the <a href="manifest.html">manifest</a> | 34 in the <a href="manifest.html">manifest</a> |
(...skipping 29 matching lines...) Expand all Loading... |
67 For example, the <a href="contextMenus.html" | 64 For example, the <a href="contextMenus.html" |
68 >context menus API</a> also uses a 16x16-pixel | 65 >context menus API</a> also uses a 16x16-pixel |
69 icon, but it is displayed in color. | 66 icon, but it is displayed in color. |
70 </p> | 67 </p> |
71 | 68 |
72 | 69 |
73 <h2 id="examples">Examples</h2> | 70 <h2 id="examples">Examples</h2> |
74 | 71 |
75 <p> | 72 <p> |
76 You can find samples of this API on the | 73 You can find samples of this API on the |
77 <a href="samples.html#omnibox">sample page</a>. | 74 <a href="samples.html#omnibox">sample page</a>. |
78 | |
79 <!-- END AUTHORED CONTENT --> | |
OLD | NEW |