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

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

Issue 9963133: Omnibox Example extension tries to load .html instead of .js. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 8 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 | « no previous file | chrome/common/extensions/docs/examples/api/omnibox/simple-example/manifest.json » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 PK/}4@†Æ%% 1 PK/}4@†Æ%%
2 simple-example/background.js// Copyright (c) 2012 The Chromium Authors. All r ights reserved. 2 simple-example/background.js// Copyright (c) 2012 The Chromium Authors. All r ights reserved.
3 // Use of this source code is governed by a BSD-style license that can be 3 // Use of this source code is governed by a BSD-style license that can be
4 // found in the LICENSE file. 4 // found in the LICENSE file.
5 5
6 // This event is fired each time the user updates the text in the omnibox, 6 // This event is fired each time the user updates the text in the omnibox,
7 // as long as the extension's keyword mode is still active. 7 // as long as the extension's keyword mode is still active.
8 chrome.omnibox.onInputChanged.addListener( 8 chrome.omnibox.onInputChanged.addListener(
9 function(text, suggest) { 9 function(text, suggest) {
10 console.log('inputChanged: ' + text); 10 console.log('inputChanged: ' + text);
11 suggest([ 11 suggest([
12 {content: text + " one", description: "the first one"}, 12 {content: text + " one", description: "the first one"},
13 {content: text + " number two", description: "the second entry"} 13 {content: text + " number two", description: "the second entry"}
14 ]); 14 ]);
15 }); 15 });
16 16
17 // This event is fired with the user accepts the input in the omnibox. 17 // This event is fired with the user accepts the input in the omnibox.
18 chrome.omnibox.onInputEntered.addListener( 18 chrome.omnibox.onInputEntered.addListener(
19 function(text) { 19 function(text) {
20 console.log('inputEntered: ' + text); 20 console.log('inputEntered: ' + text);
21 alert('You just typed "' + text + '"'); 21 alert('You just typed "' + text + '"');
22 }); 22 });
23 PKšK?@³Rd»üü 23 PKšK?@³Rd»üü
24 simple-example/manifest.json{ 24 simple-example/manifest.json{
25 "name": "Omnibox Example", 25 "name": "Omnibox Example",
26 "description" : "To use, type 'omnix' plus a search term into the Omnibox.", 26 "description" : "To use, type 'omnix' plus a search term into the Omnibox.",
27 "version": "1.1", 27 "version": "1.1",
28 "background": { 28 "background": {
29 "scripts": ["background.html"] 29 "scripts": ["background.html"]
chebert 2012/04/03 23:26:58 Shouldn't this have changed when I ran chrome/comm
30 }, 30 },
31 "omnibox": { "keyword" : "omnix" }, 31 "omnibox": { "keyword" : "omnix" },
32 "manifest_version": 2 32 "manifest_version": 2
33 } 33 }
34 PK/}4@†Æ%% 34 PK/}4@†Æ%%
35  simple-example/background.jsPKšK?@³Rd»üü 35  simple-example/background.jsPKšK?@³Rd»üü
36 ( _simple-example/manifest.json9ade0d5265e48a28b9b3a4bcd8e3a956e90 a5d1fPK¼• 36 ( _simple-example/manifest.json9ade0d5265e48a28b9b3a4bcd8e3a956e90 a5d1fPK¼•
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/docs/examples/api/omnibox/simple-example/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698