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

Side by Side Diff: chrome/test/data/extensions/api_test/omnibox/test.html

Issue 2078021: First pass at experimental omnibox API. There are plenty of rough edges and (Closed)
Patch Set: no prefer_keyword Created 10 years, 6 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 unified diff | Download patch
« no previous file with comments | « chrome/test/data/extensions/api_test/omnibox/manifest.json ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 if (!chrome.omnibox) {
3 chrome.omnibox = chrome.experimental.omnibox;
4 }
5
6 chrome.experimental.omnibox.onInputChanged.addListener(
7 function(text, suggest) {
8 suggest([
9 {content: text + "n1", description: "description1"},
10 {content: text + "n2", description: "description2"},
11 {content: text + "n3", description: "description3"}
12 ]);
13 });
14
15 chrome.experimental.omnibox.onInputEntered.addListener(
16 function(text) {
17 chrome.test.assertEq("command", text);
18 chrome.test.notifyPass();
19 });
20
21 // Now we wait for the input events to fire.
22 chrome.test.notifyPass();
23 </script>
OLDNEW
« no previous file with comments | « chrome/test/data/extensions/api_test/omnibox/manifest.json ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698