OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | |
sreeram
2013/03/07 18:49:22
This file is bogus. Ignore. The real embedded_sear
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 var chrome; | |
6 | |
7 if (!chrome) | |
8 chrome = {}; | |
9 | |
10 if (!chrome.searchBox) { | |
11 chrome.searchBox = new function() { | |
12 native function GetQuery(); | |
13 native function GetVerbatim(); | |
14 native function GetSelectionStart(); | |
15 native function GetSelectionEnd(); | |
16 native function GetX(); | |
17 native function GetY(); | |
18 native function GetWidth(); | |
19 native function GetHeight(); | |
20 native function SetSuggestion(); | |
21 | |
22 this.__defineGetter__('value', GetQuery); | |
23 this.__defineGetter__('verbatim', GetVerbatim); | |
24 this.__defineGetter__('selectionStart', GetSelectionStart); | |
25 this.__defineGetter__('selectionEnd', GetSelectionEnd); | |
26 this.__defineGetter__('x', GetX); | |
27 this.__defineGetter__('y', GetY); | |
28 this.__defineGetter__('width', GetWidth); | |
29 this.__defineGetter__('height', GetHeight); | |
30 | |
31 this.setSuggestions = function(obj) { | |
32 SetSuggestion(obj); | |
33 }; | |
34 | |
35 this.onchange = null; | |
36 this.onsubmit = null; | |
37 this.oncancel = null; | |
38 this.onresize = null; | |
39 }; | |
40 } | |
OLD | NEW |