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

Unified Diff: chrome/browser/instant/instant_client.h

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 | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_client.h
diff --git a/chrome/browser/instant/instant_client.h b/chrome/browser/instant/instant_client.h
index 1c213ad7d06788aeba7d2e0ccc08db3f5fbf1e3f..95ab9096d75d298fdc9736ea61838e03d824cad0 100644
--- a/chrome/browser/instant/instant_client.h
+++ b/chrome/browser/instant/instant_client.h
@@ -50,6 +50,14 @@ class InstantClient : public content::WebContentsObserver {
int height,
InstantSizeUnits units) = 0;
+ // Called when the page wants the browser to start capturing user key
+ // strokes.
+ virtual void StartCapturingKeyStrokes() = 0;
+
+ // Called when the page wants the browser to stop capturing user key
+ // strokes.
+ virtual void StopCapturingKeyStrokes() = 0;
+
protected:
virtual ~Delegate();
};
@@ -123,6 +131,8 @@ class InstantClient : public content::WebContentsObserver {
InstantShownReason reason,
int height,
InstantSizeUnits units);
+ void StartCapturingKeyStrokes(int page_id);
+ void StopCapturingKeyStrokes(int page_id);
Delegate* const delegate_;
« no previous file with comments | « no previous file | chrome/browser/instant/instant_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698