| OLD | NEW |
| 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 if (!chrome.searchBox) { | 8 if (!chrome.searchBox) { |
| 9 chrome.searchBox = new function() { | 9 chrome.searchBox = new function() { |
| 10 var safeObjects = {}; | 10 var safeObjects = {}; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 // Private functions | 30 // Private functions |
| 31 // ========================================================================= | 31 // ========================================================================= |
| 32 native function GetQuery(); | 32 native function GetQuery(); |
| 33 native function GetVerbatim(); | 33 native function GetVerbatim(); |
| 34 native function GetSelectionStart(); | 34 native function GetSelectionStart(); |
| 35 native function GetSelectionEnd(); | 35 native function GetSelectionEnd(); |
| 36 native function GetX(); | 36 native function GetX(); |
| 37 native function GetY(); | 37 native function GetY(); |
| 38 native function GetWidth(); | 38 native function GetWidth(); |
| 39 native function GetHeight(); | 39 native function GetHeight(); |
| 40 native function GetStartMargin(); |
| 41 native function GetEndMargin(); |
| 42 native function GetRightToLeft(); |
| 40 native function GetAutocompleteResults(); | 43 native function GetAutocompleteResults(); |
| 41 native function GetContext(); | 44 native function GetContext(); |
| 42 native function GetDisplayInstantResults(); | 45 native function GetDisplayInstantResults(); |
| 43 native function GetFont(); | 46 native function GetFont(); |
| 44 native function GetFontSize(); | 47 native function GetFontSize(); |
| 45 native function GetThemeBackgroundInfo(); | 48 native function GetThemeBackgroundInfo(); |
| 46 native function GetThemeAreaHeight(); | 49 native function GetThemeAreaHeight(); |
| 47 native function IsKeyCaptureEnabled(); | 50 native function IsKeyCaptureEnabled(); |
| 48 native function NavigateContentWindow(); | 51 native function NavigateContentWindow(); |
| 49 native function SetSuggestions(); | 52 native function SetSuggestions(); |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 // Exported functions | 187 // Exported functions |
| 185 // ========================================================================= | 188 // ========================================================================= |
| 186 this.__defineGetter__('value', GetQuery); | 189 this.__defineGetter__('value', GetQuery); |
| 187 this.__defineGetter__('verbatim', GetVerbatim); | 190 this.__defineGetter__('verbatim', GetVerbatim); |
| 188 this.__defineGetter__('selectionStart', GetSelectionStart); | 191 this.__defineGetter__('selectionStart', GetSelectionStart); |
| 189 this.__defineGetter__('selectionEnd', GetSelectionEnd); | 192 this.__defineGetter__('selectionEnd', GetSelectionEnd); |
| 190 this.__defineGetter__('x', GetX); | 193 this.__defineGetter__('x', GetX); |
| 191 this.__defineGetter__('y', GetY); | 194 this.__defineGetter__('y', GetY); |
| 192 this.__defineGetter__('width', GetWidth); | 195 this.__defineGetter__('width', GetWidth); |
| 193 this.__defineGetter__('height', GetHeight); | 196 this.__defineGetter__('height', GetHeight); |
| 197 this.__defineGetter__('startMargin', GetStartMargin); |
| 198 this.__defineGetter__('endMargin', GetEndMargin); |
| 199 this.__defineGetter__('rtl', GetRightToLeft); |
| 194 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper); | 200 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper); |
| 195 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled); | 201 this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled); |
| 196 this.__defineGetter__('context', GetContext); | 202 this.__defineGetter__('context', GetContext); |
| 197 this.__defineGetter__('displayInstantResults', GetDisplayInstantResults); | 203 this.__defineGetter__('displayInstantResults', GetDisplayInstantResults); |
| 198 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); | 204 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); |
| 199 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight); | 205 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight); |
| 200 this.__defineGetter__('font', GetFont); | 206 this.__defineGetter__('font', GetFont); |
| 201 this.__defineGetter__('fontSize', GetFontSize); | 207 this.__defineGetter__('fontSize', GetFontSize); |
| 202 this.setSuggestions = function(text) { | 208 this.setSuggestions = function(text) { |
| 203 SetSuggestions(text); | 209 SetSuggestions(text); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 230 StopCapturingKeyStrokes(); | 236 StopCapturingKeyStrokes(); |
| 231 }; | 237 }; |
| 232 this.onchange = null; | 238 this.onchange = null; |
| 233 this.onsubmit = null; | 239 this.onsubmit = null; |
| 234 this.oncancel = null; | 240 this.oncancel = null; |
| 235 this.onresize = null; | 241 this.onresize = null; |
| 236 this.onautocompleteresults = null; | 242 this.onautocompleteresults = null; |
| 237 this.onkeypress = null; | 243 this.onkeypress = null; |
| 238 this.onkeycapturechange = null; | 244 this.onkeycapturechange = null; |
| 239 this.oncontextchange = null; | 245 this.oncontextchange = null; |
| 246 this.onmarginchange = null; |
| 240 }; | 247 }; |
| 241 } | 248 } |
| OLD | NEW |