OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 if (!chrome.searchBox) { | 8 if (!chrome.searchBox) { |
9 chrome.searchBox = new function() { | 9 chrome.searchBox = new function() { |
10 // ========================================================================= | 10 // ========================================================================= |
(...skipping 14 matching lines...) Expand all Loading... |
25 native function GetSelectionStart(); | 25 native function GetSelectionStart(); |
26 native function GetSelectionEnd(); | 26 native function GetSelectionEnd(); |
27 native function GetX(); | 27 native function GetX(); |
28 native function GetY(); | 28 native function GetY(); |
29 native function GetWidth(); | 29 native function GetWidth(); |
30 native function GetHeight(); | 30 native function GetHeight(); |
31 native function GetAutocompleteResults(); | 31 native function GetAutocompleteResults(); |
32 native function GetContext(); | 32 native function GetContext(); |
33 native function GetThemeBackgroundInfo(); | 33 native function GetThemeBackgroundInfo(); |
34 native function GetThemeAreaHeight(); | 34 native function GetThemeAreaHeight(); |
| 35 native function IsKeyCaptureEnabled(); |
35 native function NavigateContentWindow(); | 36 native function NavigateContentWindow(); |
36 native function SetSuggestions(); | 37 native function SetSuggestions(); |
37 native function SetQuerySuggestion(); | 38 native function SetQuerySuggestion(); |
38 native function SetQuerySuggestionFromAutocompleteResult(); | 39 native function SetQuerySuggestionFromAutocompleteResult(); |
39 native function SetQuery(); | 40 native function SetQuery(); |
40 native function SetQueryFromAutocompleteResult(); | 41 native function SetQueryFromAutocompleteResult(); |
41 native function Show(); | 42 native function Show(); |
42 native function StartCapturingKeyStrokes(); | 43 native function StartCapturingKeyStrokes(); |
43 native function StopCapturingKeyStrokes(); | 44 native function StopCapturingKeyStrokes(); |
44 | 45 |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // ========================================================================= | 172 // ========================================================================= |
172 this.__defineGetter__('value', GetQuery); | 173 this.__defineGetter__('value', GetQuery); |
173 this.__defineGetter__('verbatim', GetVerbatim); | 174 this.__defineGetter__('verbatim', GetVerbatim); |
174 this.__defineGetter__('selectionStart', GetSelectionStart); | 175 this.__defineGetter__('selectionStart', GetSelectionStart); |
175 this.__defineGetter__('selectionEnd', GetSelectionEnd); | 176 this.__defineGetter__('selectionEnd', GetSelectionEnd); |
176 this.__defineGetter__('x', GetX); | 177 this.__defineGetter__('x', GetX); |
177 this.__defineGetter__('y', GetY); | 178 this.__defineGetter__('y', GetY); |
178 this.__defineGetter__('width', GetWidth); | 179 this.__defineGetter__('width', GetWidth); |
179 this.__defineGetter__('height', GetHeight); | 180 this.__defineGetter__('height', GetHeight); |
180 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper); | 181 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper); |
| 182 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled); |
181 this.__defineGetter__('context', GetContext); | 183 this.__defineGetter__('context', GetContext); |
182 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); | 184 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); |
183 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight); | 185 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight); |
184 this.setSuggestions = function(text) { | 186 this.setSuggestions = function(text) { |
185 SetSuggestions(text); | 187 SetSuggestions(text); |
186 }; | 188 }; |
187 this.setAutocompleteText = function(text, behavior) { | 189 this.setAutocompleteText = function(text, behavior) { |
188 SetQuerySuggestion(text, behavior); | 190 SetQuerySuggestion(text, behavior); |
189 }; | 191 }; |
190 this.setRestrictedAutocompleteText = function(resultId) { | 192 this.setRestrictedAutocompleteText = function(resultId) { |
(...skipping 19 matching lines...) Expand all Loading... |
210 }; | 212 }; |
211 this.stopCapturingKeyStrokes = function() { | 213 this.stopCapturingKeyStrokes = function() { |
212 StopCapturingKeyStrokes(); | 214 StopCapturingKeyStrokes(); |
213 }; | 215 }; |
214 this.onchange = null; | 216 this.onchange = null; |
215 this.onsubmit = null; | 217 this.onsubmit = null; |
216 this.oncancel = null; | 218 this.oncancel = null; |
217 this.onresize = null; | 219 this.onresize = null; |
218 this.onautocompleteresults = null; | 220 this.onautocompleteresults = null; |
219 this.onkeypress = null; | 221 this.onkeypress = null; |
| 222 this.onkeycapturechange = null; |
220 this.oncontextchange = null; | 223 this.oncontextchange = null; |
221 }; | 224 }; |
222 } | 225 } |
OLD | NEW |