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

Side by Side Diff: chrome/common/extensions/docs/examples/api/omnibox/simple-example.zip

Issue 9244005: Move the `privacy` extension API out of experimental. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Dropping 'experimental' from sample extensions. Created 8 years, 11 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 | Annotate | Revision Log
OLDNEW
1 PK‘,@Ö|ù}} 1 PK‘,@Ö|ù}}
2 simple-example/background.html// This event is fired each time the user updat es the text in the omnibox, 2 simple-example/background.html// This event is fired each time the user updat es the text in the omnibox,
3 // as long as the extension's keyword mode is still active. 3 // as long as the extension's keyword mode is still active.
4 chrome.omnibox.onInputChanged.addListener( 4 chrome.omnibox.onInputChanged.addListener(
5 function(text, suggest) { 5 function(text, suggest) {
6 console.log('inputChanged: ' + text); 6 console.log('inputChanged: ' + text);
7 suggest([ 7 suggest([
8 {content: text + " one", description: "the first one"}, 8 {content: text + " one", description: "the first one"},
9 {content: text + " number two", description: "the second entry"} 9 {content: text + " number two", description: "the second entry"}
10 ]); 10 ]);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 "version": "1.0", 47 "version": "1.0",
48 "background": { 48 "background": {
49 "scripts": ["background.html"] 49 "scripts": ["background.html"]
50 }, 50 },
51 "omnibox": { "keyword" : "omnix" } 51 "omnibox": { "keyword" : "omnix" }
52 } 52 }
53 PK‘,@Ö|ù}} 53 PK‘,@Ö|ù}}
54  simple-example/background.htmlPKÜm-@†Æ%% 54  simple-example/background.htmlPKÜm-@†Æ%%
55  ¹simple-example/background.jsPKê,@ÿò(ãã 55  ¹simple-example/background.jsPKê,@ÿò(ãã
56 ( simple-example/manifest.jsonb96919e9e650a40bc7ad46cccc02e197f94 3de18PK5 56 ( simple-example/manifest.jsonb96919e9e650a40bc7ad46cccc02e197f94 3de18PK5
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698