summaryrefslogtreecommitdiffstats
path: root/chrome/browser/render_widget_host_view.h
diff options
context:
space:
mode:
authorbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 15:29:03 +0000
committerbrettw@google.com <brettw@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-17 15:29:03 +0000
commit15787f8f3946a513d39a1f0d9a12925f447fa18d (patch)
tree9f68bab4d2682376d7d11ec42024f67823470427 /chrome/browser/render_widget_host_view.h
parent0d05594d912d67dcbcd5b899a1036819603922b1 (diff)
downloadchromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.zip
chromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.tar.gz
chromium_src-15787f8f3946a513d39a1f0d9a12925f447fa18d.tar.bz2
Separate out most view creation from WebContents. This adds a new sub-delegate to RenderViewHostDelegate which is implemented by WebContentsView. I did a lot of plumbing and moving around as a result.
Review URL: http://codereview.chromium.org/6608 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@3527 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/render_widget_host_view.h')
-rw-r--r--chrome/browser/render_widget_host_view.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/chrome/browser/render_widget_host_view.h b/chrome/browser/render_widget_host_view.h
index a94add7..be9c128 100644
--- a/chrome/browser/render_widget_host_view.h
+++ b/chrome/browser/render_widget_host_view.h
@@ -18,6 +18,8 @@ namespace IPC {
class Message;
}
+class RenderProcessHost;
+class RenderWidgetHost;
class WebCursor;
///////////////////////////////////////////////////////////////////////////////
@@ -35,6 +37,16 @@ class WebCursor;
///////////////////////////////////////////////////////////////////////////////
class RenderWidgetHostView {
public:
+ // Platform-specific creator. Use this to construct new RenderWidgetHostViews
+ // rather than using RenderWidgetHostViewWin & friends.
+ //
+ // The RenderWidgetHost must already be created (because we can't know if it's
+ // going to be a regular RenderWidgetHost or a RenderViewHost (a subclass).
+ static RenderWidgetHostView* CreateViewForWidget(RenderWidgetHost* widget);
+
+ // Returns the associated RenderWidgetHost.
+ virtual RenderWidgetHost* GetRenderWidgetHost() const = 0;
+
// Notifies the View that it has become visible.
virtual void DidBecomeSelected() = 0;