diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-14 20:21:54 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-14 20:21:54 +0000 |
commit | 6c2f7320e7767f71385134b184c2e0652600b5c0 (patch) | |
tree | 430e3133e61e7f20562926be75d25438210a4b97 /chrome/renderer/render_view.h | |
parent | 0c6c321fa47d17fdd07bc3a51e615f98c3605277 (diff) | |
download | chromium_src-6c2f7320e7767f71385134b184c2e0652600b5c0.zip chromium_src-6c2f7320e7767f71385134b184c2e0652600b5c0.tar.gz chromium_src-6c2f7320e7767f71385134b184c2e0652600b5c0.tar.bz2 |
Move SearchBox code out of RenderView.
Review URL: http://codereview.chromium.org/6510006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@74847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_view.h')
-rw-r--r-- | chrome/renderer/render_view.h | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/chrome/renderer/render_view.h b/chrome/renderer/render_view.h index 8cc4e79..7cbd422 100644 --- a/chrome/renderer/render_view.h +++ b/chrome/renderer/render_view.h @@ -32,7 +32,6 @@ #include "chrome/renderer/pepper_plugin_delegate_impl.h" #include "chrome/renderer/render_widget.h" #include "chrome/renderer/renderer_webcookiejar_impl.h" -#include "chrome/renderer/searchbox.h" #include "ipc/ipc_platform_file.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebAccessibilityNotification.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebConsoleMessage.h" @@ -75,6 +74,7 @@ class PepperDeviceTest; class PrintWebViewHelper; class RenderViewObserver; class RenderViewVisitor; +class SearchBox; class SkBitmap; class SpeechInputDispatcher; class WebPluginDelegatePepper; @@ -242,9 +242,7 @@ class RenderView : public RenderWidget, disable_scrollbars_size_limit_.height() <= height)); } - const SearchBox& searchbox() const { - return search_box_; - } + SearchBox* searchbox() const { return searchbox_; } const WebKit::WebNode& context_menu_node() { return context_menu_node_; } @@ -262,9 +260,6 @@ class RenderView : public RenderWidget, GetSearchProviderInstallState(WebKit::WebFrame* frame, const std::string& url); - // Sends ViewHostMsg_SetSuggestions to the browser. - void SetSuggestions(const std::vector<std::string>& suggestions); - // Evaluates a string of JavaScript in a particular frame. void EvaluateScript(const string16& frame_xpath, const string16& jscript, @@ -849,17 +844,6 @@ class RenderView : public RenderWidget, const gfx::Point& screen_pt, WebKit::WebDragOperationsMask operations_allowed); void OnEnablePreferredSizeChangedMode(int flags); - void OnSearchBoxChange(const string16& value, - bool verbatim, - int selection_start, - int selection_end); - void OnSearchBoxSubmit(const string16& value, bool verbatim); - void OnSearchBoxCancel(); - void OnSearchBoxResize(const gfx::Rect& bounds); - void OnDetermineIfPageSupportsInstant(const string16& value, - bool verbatim, - int selection_start, - int selection_end); void OnEnableViewSourceMode(); void OnExecuteCode(const ViewMsg_ExecuteCode_Params& params); void OnExecuteEditCommand(const std::string& name, const std::string& value); @@ -1264,8 +1248,6 @@ class RenderView : public RenderWidget, // The text selection the last time DidChangeSelection got called. std::string last_selection_; - SearchBox search_box_; - // View ---------------------------------------------------------------------- // Type of view attached with RenderView. See view_types.h @@ -1342,6 +1324,9 @@ class RenderView : public RenderWidget, // RenderViewObserver interface. PrintWebViewHelper* print_helper_; + // Weak pointer since it implements RenderViewObserver interface. + SearchBox* searchbox_; + scoped_refptr<AudioMessageFilter> audio_message_filter_; // Handles accessibility requests into the renderer side, as well as |