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

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

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/browser/instant/instant_client.h ('k') | chrome/browser/instant/instant_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/instant/instant_client.cc
diff --git a/chrome/browser/instant/instant_client.cc b/chrome/browser/instant/instant_client.cc
index 5a4efc5beb611c68ca3037ade75f53e0c4b57988..eb045bc7e514b5860c439896fb8c7e0862b336d2 100644
--- a/chrome/browser/instant/instant_client.cc
+++ b/chrome/browser/instant/instant_client.cc
@@ -88,6 +88,10 @@ bool InstantClient::OnMessageReceived(const IPC::Message& message) {
InstantSupportDetermined)
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_ShowInstantPreview,
ShowInstantPreview)
+ IPC_MESSAGE_HANDLER(ChromeViewHostMsg_StartCapturingKeyStrokes,
+ StartCapturingKeyStrokes);
+ IPC_MESSAGE_HANDLER(ChromeViewHostMsg_StopCapturingKeyStrokes,
+ StopCapturingKeyStrokes);
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -112,3 +116,13 @@ void InstantClient::ShowInstantPreview(int page_id,
if (web_contents()->IsActiveEntry(page_id))
delegate_->ShowInstantPreview(reason, height, units);
}
+
+void InstantClient::StartCapturingKeyStrokes(int page_id) {
+ if (web_contents()->IsActiveEntry(page_id))
+ delegate_->StartCapturingKeyStrokes();
+}
+
+void InstantClient::StopCapturingKeyStrokes(int page_id) {
+ if (web_contents()->IsActiveEntry(page_id))
+ delegate_->StopCapturingKeyStrokes();
+}
« no previous file with comments | « chrome/browser/instant/instant_client.h ('k') | chrome/browser/instant/instant_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698