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

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

Issue 11413217: Instant API: tell page whether the browser is capturing key strokes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@focus
Patch Set: Rebase and refactor. 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 8d3a98a8cc3723ad9e16c08d3c4ba7a359763de5..73b5d3617d41ae8ddb95db7176198abff626047f 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -33,6 +33,7 @@ if (!chrome.searchBox) {
native function GetDisplayInstantResults();
native function GetThemeBackgroundInfo();
native function GetThemeAreaHeight();
+ native function IsKeyCaptureEnabled();
native function NavigateContentWindow();
native function SetSuggestions();
native function SetQuerySuggestion();
@@ -179,6 +180,7 @@ if (!chrome.searchBox) {
this.__defineGetter__('width', GetWidth);
this.__defineGetter__('height', GetHeight);
this.__defineGetter__('nativeSuggestions', GetAutocompleteResultsWrapper);
+ this.__defineGetter__('isKeyCaptureEnabled', IsKeyCaptureEnabled);
this.__defineGetter__('context', GetContext);
this.__defineGetter__('displayInstantResults', GetDisplayInstantResults);
this.__defineGetter__('themeBackgroundInfo', GetThemeBackgroundInfo);
@@ -219,6 +221,7 @@ if (!chrome.searchBox) {
this.onresize = null;
this.onautocompleteresults = null;
this.onkeypress = null;
+ this.onkeycapturechange = null;
this.oncontextchange = null;
};
}

Powered by Google App Engine
This is Rietveld 408576698