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

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: Fix Mac build error (PopupChangedBoundsTo -> OnPopupChangedBounds) 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
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 72925b8ba1eb6dea7504b0b93043e76e3b8058fa..b037d4313ed6675587ba24c981b60d9e57e64f75 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -37,6 +37,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();
@@ -191,6 +194,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__('isKeyCaptureEnabled', IsKeyCaptureEnabled);
this.__defineGetter__('context', GetContext);
@@ -237,5 +243,6 @@ if (!chrome.searchBox) {
this.onkeypress = null;
this.onkeycapturechange = null;
this.oncontextchange = null;
+ this.onmarginchange = null;
};
}
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698