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

Unified Diff: chrome/renderer/searchbox/searchbox.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: 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
Index: chrome/renderer/searchbox/searchbox.cc
diff --git a/chrome/renderer/searchbox/searchbox.cc b/chrome/renderer/searchbox/searchbox.cc
index 9f1e82c294ade030a4037d2e2cc4fc7b7da628c7..391cd0ae241a800db341d52451348d2351043239 100644
--- a/chrome/renderer/searchbox/searchbox.cc
+++ b/chrome/renderer/searchbox/searchbox.cc
@@ -55,6 +55,12 @@ void SearchBox::StopCapturingKeyStrokes() {
render_view()->GetRoutingID(), render_view()->GetPageId()));
}
+void SearchBox::NavigateToURL(const GURL& url) {
+ render_view()->Send(new ChromeViewHostMsg_SearchBoxNavigate(
+ render_view()->GetRoutingID(), render_view()->GetPageId(),
+ url));
+}
+
gfx::Rect SearchBox::GetRect() {
// Need to adjust for scale.
if (rect_.IsEmpty())

Powered by Google App Engine
This is Rietveld 408576698