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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« 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