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

Unified Diff: chrome/renderer/searchbox/searchbox.h

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/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/searchbox/searchbox.h
diff --git a/chrome/renderer/searchbox/searchbox.h b/chrome/renderer/searchbox/searchbox.h
index 351316c6c94c93a49d9c0c17ebb742fffe76f053..36f1932fa48f2905ccc841a4b796b3f6c3931ca9 100644
--- a/chrome/renderer/searchbox/searchbox.h
+++ b/chrome/renderer/searchbox/searchbox.h
@@ -11,6 +11,7 @@
#include "base/string16.h"
#include "chrome/common/instant_types.h"
#include "chrome/common/search_types.h"
+#include "content/public/common/page_transition_types.h"
#include "content/public/renderer/render_view_observer.h"
#include "content/public/renderer/render_view_observer_tracker.h"
#include "ui/gfx/rect.h"
@@ -25,20 +26,23 @@ class SearchBox : public content::RenderViewObserver,
explicit SearchBox(content::RenderView* render_view);
virtual ~SearchBox();
- // Sends ViewHostMsg_SetSuggestions to the browser.
+ // Sends ChromeViewHostMsg_SetSuggestions to the browser.
void SetSuggestions(const std::vector<InstantSuggestion>& suggestions);
- // Sends ViewHostMsg_ShowInstantPreview to the browser.
+ // Sends ChromeViewHostMsg_ShowInstantPreview to the browser.
void ShowInstantPreview(InstantShownReason reason,
int height,
InstantSizeUnits units);
- // Sends ViewHostMsg_StartCapturingKeyStrokes to the browser.
+ // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser.
void StartCapturingKeyStrokes();
- // Sends ViewHostMsg_StopCapturingKeyStrokes to the browser.
+ // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser.
void StopCapturingKeyStrokes();
+ // Send ChromeViewHostMsg_SearchBoxNavigate to the browser.
+ void NavigateToURL(const GURL& url, content::PageTransition transition);
+
const string16& query() const { return query_; }
bool verbatim() const { return verbatim_; }
size_t selection_start() const { return selection_start_; }
« no previous file with comments | « chrome/common/render_messages.h ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698