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

Side by Side Diff: chrome/renderer/resources/extensions/searchbox_api.js

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase after r171018 Created 8 years 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
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 // ========================================================================= 10 // =========================================================================
(...skipping 10 matching lines...) Expand all
21 // Private functions 21 // Private functions
22 // ========================================================================= 22 // =========================================================================
23 native function GetQuery(); 23 native function GetQuery();
24 native function GetVerbatim(); 24 native function GetVerbatim();
25 native function GetSelectionStart(); 25 native function GetSelectionStart();
26 native function GetSelectionEnd(); 26 native function GetSelectionEnd();
27 native function GetX(); 27 native function GetX();
28 native function GetY(); 28 native function GetY();
29 native function GetWidth(); 29 native function GetWidth();
30 native function GetHeight(); 30 native function GetHeight();
31 native function GetStartMargin();
32 native function GetEndMargin();
33 native function GetRightToLeft();
31 native function GetAutocompleteResults(); 34 native function GetAutocompleteResults();
32 native function GetContext(); 35 native function GetContext();
33 native function GetDisplayInstantResults(); 36 native function GetDisplayInstantResults();
34 native function GetThemeBackgroundInfo(); 37 native function GetThemeBackgroundInfo();
35 native function GetThemeAreaHeight(); 38 native function GetThemeAreaHeight();
36 native function NavigateContentWindow(); 39 native function NavigateContentWindow();
37 native function SetSuggestions(); 40 native function SetSuggestions();
38 native function SetQuerySuggestion(); 41 native function SetQuerySuggestion();
39 native function SetQuerySuggestionFromAutocompleteResult(); 42 native function SetQuerySuggestionFromAutocompleteResult();
40 native function SetQuery(); 43 native function SetQuery();
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 // Exported functions 172 // Exported functions
170 // ========================================================================= 173 // =========================================================================
171 this.__defineGetter__('value', GetQuery); 174 this.__defineGetter__('value', GetQuery);
172 this.__defineGetter__('verbatim', GetVerbatim); 175 this.__defineGetter__('verbatim', GetVerbatim);
173 this.__defineGetter__('selectionStart', GetSelectionStart); 176 this.__defineGetter__('selectionStart', GetSelectionStart);
174 this.__defineGetter__('selectionEnd', GetSelectionEnd); 177 this.__defineGetter__('selectionEnd', GetSelectionEnd);
175 this.__defineGetter__('x', GetX); 178 this.__defineGetter__('x', GetX);
176 this.__defineGetter__('y', GetY); 179 this.__defineGetter__('y', GetY);
177 this.__defineGetter__('width', GetWidth); 180 this.__defineGetter__('width', GetWidth);
178 this.__defineGetter__('height', GetHeight); 181 this.__defineGetter__('height', GetHeight);
182 this.__defineGetter__('startMargin', GetStartMargin);
183 this.__defineGetter__('endMargin', GetEndMargin);
184 this.__defineGetter__('rtl', GetRightToLeft);
179 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper); 185 this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper);
180 this.__defineGetter__('context', GetContext); 186 this.__defineGetter__('context', GetContext);
181 this.__defineGetter__('displayInstantResults', GetDisplayInstantResults); 187 this.__defineGetter__('displayInstantResults', GetDisplayInstantResults);
182 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo); 188 this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
183 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight); 189 this.__defineGetter__('themeAreaHeight', GetThemeAreaHeight);
184 this.setSuggestions = function(text) { 190 this.setSuggestions = function(text) {
185 SetSuggestions(text); 191 SetSuggestions(text);
186 }; 192 };
187 this.setAutocompleteText = function(text, behavior) { 193 this.setAutocompleteText = function(text, behavior) {
188 SetQuerySuggestion(text, behavior); 194 SetQuerySuggestion(text, behavior);
(...skipping 16 matching lines...) Expand all
205 this.navigateContentWindow = function(destination) { 211 this.navigateContentWindow = function(destination) {
206 return NavigateContentWindow(destination); 212 return NavigateContentWindow(destination);
207 }; 213 };
208 this.onchange = null; 214 this.onchange = null;
209 this.onsubmit = null; 215 this.onsubmit = null;
210 this.oncancel = null; 216 this.oncancel = null;
211 this.onresize = null; 217 this.onresize = null;
212 this.onautocompleteresults = null; 218 this.onautocompleteresults = null;
213 this.onkeypress = null; 219 this.onkeypress = null;
214 this.oncontextchange = null; 220 this.oncontextchange = null;
221 this.onmarginchange = null;
215 }; 222 };
216 } 223 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698