diff options
author | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-18 15:37:29 +0000 |
---|---|---|
committer | brettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-10-18 15:37:29 +0000 |
commit | 425254cdc9b7ff515285250c30976858f0f17abf (patch) | |
tree | 2ed818bbc428ac09357f368f0d9084d64ef3717b /chrome/browser/render_view_host_delegate.h | |
parent | a0e30833a5e0b0f32d28a64b36f2dd31cbe681be (diff) | |
download | chromium_src-425254cdc9b7ff515285250c30976858f0f17abf.zip chromium_src-425254cdc9b7ff515285250c30976858f0f17abf.tar.gz chromium_src-425254cdc9b7ff515285250c30976858f0f17abf.tar.bz2 |
Move more platform-specific stuff from WebContents to the view.
I refactored the way title setting is done since there were two parts that duplicated the logic and did so slightly differently.
I removed some old code in RendererGone whose premise is no longer valid and had the effect of creating a bug with no benefit.
I moved the sad tab view from WebContents to the view. Amusingly, the view was the only one using this, but it would go poke inside of the WebContents to get it.
Review URL: http://codereview.chromium.org/7650
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_view_host_delegate.h')
-rw-r--r-- | chrome/browser/render_view_host_delegate.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/chrome/browser/render_view_host_delegate.h b/chrome/browser/render_view_host_delegate.h index 746861f0..d66ce34 100644 --- a/chrome/browser/render_view_host_delegate.h +++ b/chrome/browser/render_view_host_delegate.h @@ -76,6 +76,29 @@ class RenderViewHostDelegate { // The widget is identified by the route_id passed to CreateNewWidget. virtual void ShowCreatedWidget(int route_id, const gfx::Rect& initial_pos) = 0; + + // A context menu should be shown, to be built using the context information + // provided in the supplied params. + virtual void ShowContextMenu( + const ViewHostMsg_ContextMenu_Params& params) = 0; + + // The user started dragging content of the specified type within the + // RenderView. Contextual information about the dragged content is supplied + // by WebDropData. + virtual void StartDragging(const WebDropData& drop_data) = 0; + + // The page wants to update the mouse cursor during a drag & drop operation. + // |is_drop_target| is true if the mouse is over a valid drop target. + virtual void UpdateDragCursor(bool is_drop_target) = 0; + + // Callback to inform the browser it should take back focus. If reverse is + // true, it means the focus was retrieved by doing a Shift-Tab. + virtual void TakeFocus(bool reverse) = 0; + + // Callback to inform the browser that the renderer did not process the + // specified events. This gives an opportunity to the browser to process the + // event (used for keyboard shortcuts). + virtual void HandleKeyboardEvent(const WebKeyboardEvent& event) = 0; }; class FindInPage { @@ -208,20 +231,6 @@ class RenderViewHostDelegate { bool errored, const SkBitmap& image) { } - // A context menu should be shown, to be built using the context information - // provided in the supplied params. - virtual void ShowContextMenu(const ViewHostMsg_ContextMenu_Params& params) { - } - - // The user started dragging content of the specified type within the - // RenderView. Contextual information about the dragged content is supplied - // by WebDropData. - virtual void StartDragging(const WebDropData& drop_data) { } - - // The page wants to update the mouse cursor during a drag & drop operation. - // |is_drop_target| is true if the mouse is over a valid drop target. - virtual void UpdateDragCursor(bool is_drop_target) { } - // The page wants to open a URL with the specified disposition. virtual void RequestOpenURL(const GURL& url, WindowOpenDisposition disposition) { } @@ -274,10 +283,6 @@ class RenderViewHostDelegate { // Password forms have been detected in the page. virtual void PasswordFormsSeen(const std::vector<PasswordForm>& forms) { } - // Callback to inform the browser it should take back focus. If reverse is - // true, it means the focus was retrieved by doing a Shift-Tab. - virtual void TakeFocus(bool reverse) { } - // Notification that the page has an OpenSearch description document. virtual void PageHasOSDD(RenderViewHost* render_view_host, int32 page_id, const GURL& doc_url, @@ -299,11 +304,6 @@ class RenderViewHostDelegate { NOTREACHED(); } - // Callback to inform the browser that the renderer did not process the - // specified events. This gives an opportunity to the browser to process the - // event (used for keyboard shortcuts). - virtual void HandleKeyboardEvent(const WebKeyboardEvent& event) { } - // |url| is assigned to a server that can provide alternate error pages. If // unchanged, just use the error pages built into our webkit. virtual GURL GetAlternateErrorPageURL() const { |