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

Unified Diff: chrome/browser/web_contents_view_win.h

Issue 7650: Move more platform-specific stuff from WebContents to the view.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 months 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/browser/web_contents_view_win.h
===================================================================
--- chrome/browser/web_contents_view_win.h (revision 3558)
+++ chrome/browser/web_contents_view_win.h (working copy)
@@ -5,11 +5,13 @@
#ifndef CHROME_BROWSER_WEB_CONTENTS_VIEW_WIN_H_
#define CHROME_BROWSER_WEB_CONTENTS_VIEW_WIN_H_
+#include "base/scoped_ptr.h"
#include "chrome/browser/web_contents_view.h"
#include "chrome/views/container_win.h"
class InfoBarView;
class InfoBarMessageView;
+class SadTabView;
struct WebDropData;
class WebDropTarget;
@@ -35,16 +37,13 @@
virtual HWND GetContainerHWND() const;
virtual HWND GetContentHWND() const;
virtual void GetContainerBounds(gfx::Rect* out) const;
- virtual void StartDragging(const WebDropData& drop_data);
virtual void DetachPluginWindows();
virtual void DisplayErrorInInfoBar(const std::wstring& text);
virtual void SetInfoBarVisible(bool visible);
virtual bool IsInfoBarVisible() const;
virtual InfoBarView* GetInfoBarView();
- virtual void UpdateDragCursor(bool is_drop_target);
- virtual void ShowContextMenu(
- const ViewHostMsg_ContextMenu_Params& params);
- virtual void HandleKeyboardEvent(const WebKeyboardEvent& event);
+ virtual void SetPageTitle(const std::wstring& title);
+ virtual void Invalidate();
// Backend implementation of RenderViewHostDelegate::View.
virtual WebContents* CreateNewWindowInternal(
@@ -56,6 +55,12 @@
bool user_gesture);
virtual void ShowCreatedWidgetInternal(RenderWidgetHostView* widget_host_view,
const gfx::Rect& initial_pos);
+ virtual void ShowContextMenu(
+ const ViewHostMsg_ContextMenu_Params& params);
+ virtual void StartDragging(const WebDropData& drop_data);
+ virtual void UpdateDragCursor(bool is_drop_target);
+ virtual void TakeFocus(bool reverse);
+ virtual void HandleKeyboardEvent(const WebKeyboardEvent& event);
private:
// Windows events ------------------------------------------------------------
@@ -94,6 +99,10 @@
// InfoBarView, lazily created.
scoped_ptr<InfoBarView> info_bar_view_;
+ // Used to render the sad tab. This will be non-NULL only when the sad tab is
+ // visible.
+ scoped_ptr<SadTabView> sad_tab_;
+
// Info bar for crashed plugin message.
// IMPORTANT: This instance is owned by the InfoBarView. It is valid
// only if InfoBarView::GetChildIndex for this view is valid.

Powered by Google App Engine
This is Rietveld 408576698