OLD | NEW |
1 <!-- BEGIN AUTHORED CONTENT --> | |
2 <p> | 1 <p> |
3 The omnibox API allows you to register a | 2 The omnibox API allows you to register a |
4 keyword with Google Chrome's address bar, | 3 keyword with Google Chrome's address bar, |
5 which is also known as the omnibox. | 4 which is also known as the omnibox. |
6 </p> | 5 </p> |
7 <p> | 6 <p> |
8 <img src="{{static}}/images/omnibox.png" width="300" height="150" | 7 <img src="{{static}}/images/omnibox.png" width="300" height="150" |
9 alt="A screenshot showing suggestions related to the keyword 'Chromium Search'
"/> | 8 alt="A screenshot showing suggestions related to the keyword 'Chromium Search'
"/> |
10 </p> | 9 </p> |
11 <p> | 10 <p> |
12 When the user enters your extension's | 11 When the user enters your extension's |
13 keyword, the user starts | 12 keyword, the user starts |
14 interacting solely with your extension. | 13 interacting solely with your extension. |
15 Each keystroke is sent to your | 14 Each keystroke is sent to your |
16 extension, and you can provide suggestions | 15 extension, and you can provide suggestions |
17 in response. | 16 in response. |
18 </p> | 17 </p> |
19 <p> | 18 <p> |
20 The suggestions can be richly formatted | 19 The suggestions can be richly formatted |
21 in a variety of ways. | 20 in a variety of ways. |
22 <!-- PENDING: for example? (include a mention of method name, maybe show a code
snippet) --> | |
23 When the user accepts | 21 When the user accepts |
24 a suggestion, your extension is notified | 22 a suggestion, your extension is notified |
25 and can take action. | 23 and can take action. |
26 </p> | 24 </p> |
27 <h2 id="manifest">Manifest</h2> | 25 <h2 id="manifest">Manifest</h2> |
28 <p> | 26 <p> |
29 You must include an <code>omnibox</code> <code>keyword</code> field | 27 You must include an <code>omnibox</code> <code>keyword</code> field |
30 in the <a href="manifest.html">manifest</a> | 28 in the <a href="manifest.html">manifest</a> |
31 to use the omnibox API. | 29 to use the omnibox API. |
32 You should also | 30 You should also |
(...skipping 21 matching lines...) Expand all Loading... |
54 your 16x16-pixel icon. You should provide | 52 your 16x16-pixel icon. You should provide |
55 a full-color version so that it can also be | 53 a full-color version so that it can also be |
56 used in other situations that require color. | 54 used in other situations that require color. |
57 For example, the <a href="contextMenus.html" | 55 For example, the <a href="contextMenus.html" |
58 >context menus API</a> also uses a 16x16-pixel | 56 >context menus API</a> also uses a 16x16-pixel |
59 icon, but it is displayed in color. | 57 icon, but it is displayed in color. |
60 </p> | 58 </p> |
61 <h2 id="examples">Examples</h2> | 59 <h2 id="examples">Examples</h2> |
62 <p> | 60 <p> |
63 You can find samples of this API on the | 61 You can find samples of this API on the |
64 <a href="samples.html#omnibox">sample page</a>. | 62 <a href="samples.html#omnibox">sample page</a>. |
65 <!-- END AUTHORED CONTENT --> | |
OLD | NEW |