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(); |
+} |