Index: chrome/renderer/resources/extensions/embedded_searchbox_api.js |
diff --git a/chrome/renderer/resources/extensions/embedded_searchbox_api.js b/chrome/renderer/resources/extensions/embedded_searchbox_api.js |
new file mode 100644 |
index 0000000000000000000000000000000000000000..70471d0be283c2fcefbd28d1df9855a24da0ba8a |
--- /dev/null |
+++ b/chrome/renderer/resources/extensions/embedded_searchbox_api.js |
@@ -0,0 +1,40 @@ |
+// Copyright 2012 The Chromium Authors. All rights reserved. |
sreeram
2013/03/07 18:49:22
This file is bogus. Ignore. The real embedded_sear
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+var chrome; |
+ |
+if (!chrome) |
+ chrome = {}; |
+ |
+if (!chrome.searchBox) { |
+ chrome.searchBox = new function() { |
+ native function GetQuery(); |
+ native function GetVerbatim(); |
+ native function GetSelectionStart(); |
+ native function GetSelectionEnd(); |
+ native function GetX(); |
+ native function GetY(); |
+ native function GetWidth(); |
+ native function GetHeight(); |
+ native function SetSuggestion(); |
+ |
+ this.__defineGetter__('value', GetQuery); |
+ this.__defineGetter__('verbatim', GetVerbatim); |
+ this.__defineGetter__('selectionStart', GetSelectionStart); |
+ this.__defineGetter__('selectionEnd', GetSelectionEnd); |
+ this.__defineGetter__('x', GetX); |
+ this.__defineGetter__('y', GetY); |
+ this.__defineGetter__('width', GetWidth); |
+ this.__defineGetter__('height', GetHeight); |
+ |
+ this.setSuggestions = function(obj) { |
+ SetSuggestion(obj); |
+ }; |
+ |
+ this.onchange = null; |
+ this.onsubmit = null; |
+ this.oncancel = null; |
+ this.onresize = null; |
+ }; |
+} |