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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/resources/extensions/searchbox_api.js
diff --git a/chrome/renderer/resources/extensions/searchbox_api.js b/chrome/renderer/resources/extensions/searchbox_api.js
index 7952b3b63aea9a10f810770fc2ce153efe021564..169fb234806e942f316b5d1a11de55f0b4f5e16d 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -28,6 +28,9 @@ if (!chrome.searchBox) {
native function GetY();
native function GetWidth();
native function GetHeight();
+ native function GetStartMargin();
+ native function GetEndMargin();
+ native function GetRightToLeft();
native function GetAutocompleteResults();
native function GetContext();
native function GetDisplayInstantResults();
@@ -176,6 +179,9 @@ if (!chrome.searchBox) {
this.__defineGetter__('y', GetY);
this.__defineGetter__('width', GetWidth);
this.__defineGetter__('height', GetHeight);
+ this.__defineGetter__('startMargin', GetStartMargin);
+ this.__defineGetter__('endMargin', GetEndMargin);
+ this.__defineGetter__('rtl', GetRightToLeft);
this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper);
this.__defineGetter__('context', GetContext);
this.__defineGetter__('displayInstantResults', GetDisplayInstantResults);
@@ -212,5 +218,6 @@ if (!chrome.searchBox) {
this.onautocompleteresults = null;
this.onkeypress = null;
this.oncontextchange = null;
+ this.onmarginchange = null;
};
}

Powered by Google App Engine
This is Rietveld 408576698