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

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

Issue 11369137: Implement {Start,Stop}CapturingKeyStrokes for Instant. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase. Added comment. 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 7952b3b63aea9a10f810770fc2ce153efe021564..8d3a98a8cc3723ad9e16c08d3c4ba7a359763de5 100644
--- a/chrome/renderer/resources/extensions/searchbox_api.js
+++ b/chrome/renderer/resources/extensions/searchbox_api.js
@@ -40,6 +40,8 @@ if (!chrome.searchBox) {
native function SetQuery();
native function SetQueryFromAutocompleteResult();
native function Show();
+ native function StartCapturingKeyStrokes();
+ native function StopCapturingKeyStrokes();
// Returns the |restrictedText| wrapped in a ShadowDOM.
function SafeWrap(restrictedText) {
@@ -205,6 +207,12 @@ if (!chrome.searchBox) {
this.navigateContentWindow = function(destination) {
return NavigateContentWindow(destination);
};
+ this.startCapturingKeyStrokes = function() {
+ StartCapturingKeyStrokes();
+ };
+ this.stopCapturingKeyStrokes = function() {
+ StopCapturingKeyStrokes();
+ };
this.onchange = null;
this.onsubmit = null;
this.oncancel = 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