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

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

Issue 9289057: Changing manifest to v2 extension samples (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Adding zip files after rebasing with master Created 8 years, 10 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
OLDNEW
1 PKh‡2@†Æ%% 1 PKh‡2@†Æ%%
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);
(...skipping 15 matching lines...) Expand all
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.0", 27 "version": "1.0",
28 "background": { 28 "background": {
29 "scripts": ["background.html"] 29 "scripts": ["background.html"]
30 }, 30 },
31 "omnibox": { "keyword" : "omnix" } 31 "omnibox": { "keyword" : "omnix" }
32 } 32 }
33 PKh‡2@†Æ%% 33 PKh‡2@†Æ%%
34  simple-example/background.jsPKh‡2@ÿò(ãã 34  simple-example/background.jsPKh‡2@ÿò(ãã
35 ( _simple-example/manifest.json9a925b29e8e9d9c3953d140f1bdee2bae3f 0b3acPK¼| 35 ( _simple-example/manifest.json9a925b29e8e9d9c3953d140f1bdee2bae3f 0b3acPK¼|
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698