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

Side by Side Diff: chrome/renderer/resources/extensions/searchbox_api.js

Issue 2149973002: Remove embeddedSearch.searchBox.displayInstantResults (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@searchbox_applauncher
Patch Set: rebase Created 4 years, 4 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/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var chrome; 5 var chrome;
6 if (!chrome) 6 if (!chrome)
7 chrome = {}; 7 chrome = {};
8 8
9 if (!chrome.embeddedSearch) { 9 if (!chrome.embeddedSearch) {
10 chrome.embeddedSearch = new function() { 10 chrome.embeddedSearch = new function() {
11 this.searchBox = new function() { 11 this.searchBox = new function() {
12 12
13 // ======================================================================= 13 // =======================================================================
14 // Private functions 14 // Private functions
15 // ======================================================================= 15 // =======================================================================
16 native function Focus(); 16 native function Focus();
17 native function GetDisplayInstantResults();
18 native function GetMostVisitedItemData(); 17 native function GetMostVisitedItemData();
19 native function GetQuery(); 18 native function GetQuery();
20 native function GetSearchRequestParams(); 19 native function GetSearchRequestParams();
21 native function GetRightToLeft(); 20 native function GetRightToLeft();
22 native function GetSuggestionToPrefetch(); 21 native function GetSuggestionToPrefetch();
23 native function IsFocused(); 22 native function IsFocused();
24 native function IsKeyCaptureEnabled(); 23 native function IsKeyCaptureEnabled();
25 native function Paste(); 24 native function Paste();
26 native function StartCapturingKeyStrokes(); 25 native function StartCapturingKeyStrokes();
27 native function StopCapturingKeyStrokes(); 26 native function StopCapturingKeyStrokes();
28 27
29 // ======================================================================= 28 // =======================================================================
30 // Exported functions 29 // Exported functions
31 // ======================================================================= 30 // =======================================================================
32 this.__defineGetter__('displayInstantResults', GetDisplayInstantResults);
33 this.__defineGetter__('isFocused', IsFocused); 31 this.__defineGetter__('isFocused', IsFocused);
34 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled); 32 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled);
35 this.__defineGetter__('rtl', GetRightToLeft); 33 this.__defineGetter__('rtl', GetRightToLeft);
36 this.__defineGetter__('suggestion', GetSuggestionToPrefetch); 34 this.__defineGetter__('suggestion', GetSuggestionToPrefetch);
37 this.__defineGetter__('value', GetQuery); 35 this.__defineGetter__('value', GetQuery);
38 Object.defineProperty(this, 'requestParams', 36 Object.defineProperty(this, 'requestParams',
39 { get: GetSearchRequestParams }); 37 { get: GetSearchRequestParams });
40 38
41 this.focus = function() { 39 this.focus = function() {
42 Focus(); 40 Focus();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 this.oninputcancel = null; 169 this.oninputcancel = null;
172 this.oninputstart = null; 170 this.oninputstart = null;
173 this.onmostvisitedchange = null; 171 this.onmostvisitedchange = null;
174 this.onthemechange = null; 172 this.onthemechange = null;
175 }; 173 };
176 174
177 // TODO(jered): Remove when google no longer expects this object. 175 // TODO(jered): Remove when google no longer expects this object.
178 chrome.searchBox = this.searchBox; 176 chrome.searchBox = this.searchBox;
179 }; 177 };
180 } 178 }
OLDNEW
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698