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

Unified Diff: chrome/renderer/resources/extensions/embedded_searchbox_api.js

Issue 12386019: Instant: Use only one hidden WebContents per profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/resources/extensions/OWNERS ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
+ };
+}
« no previous file with comments | « chrome/renderer/resources/extensions/OWNERS ('k') | chrome/renderer/resources/extensions/searchbox_api.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698