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

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

Issue 11466007: Add new IPC for searchbox to pipe SearchBox NavigateContentWindow calls to the browser. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove extra ; 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 6f23d9a8540191e64a238431b00fd681ec830527..1582a97347321cdaf7f14ab84d93e2d8cf69cdc9 100644
--- a/chrome/browser/instant/instant_client.cc
+++ b/chrome/browser/instant/instant_client.cc
@@ -97,6 +97,8 @@ bool InstantClient::OnMessageReceived(const IPC::Message& message) {
StartCapturingKeyStrokes);
IPC_MESSAGE_HANDLER(ChromeViewHostMsg_StopCapturingKeyStrokes,
StopCapturingKeyStrokes);
+ IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SearchBoxNavigate,
+ SearchBoxNavigate);
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
return handled;
@@ -146,3 +148,10 @@ void InstantClient::StopCapturingKeyStrokes(int page_id) {
if (web_contents()->IsActiveEntry(page_id))
delegate_->StopCapturingKeyStrokes();
}
+
+void InstantClient::SearchBoxNavigate(int page_id,
+ const GURL& url,
+ content::PageTransition transition) {
+ if (web_contents()->IsActiveEntry(page_id))
+ delegate_->NavigateToURL(url, transition);
+}
« 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