summaryrefslogtreecommitdiffstats
path: root/lib/web_contents_view_qt.h
diff options
context:
space:
mode:
authorZeno Albisser <zeno.albisser@digia.com>2013-05-30 11:05:44 +0200
committerSimon Hausmann <simon.hausmann@digia.com>2013-05-31 10:55:54 +0200
commit2b656b820deaff0efc2d643abd45658ea3e1e2bc (patch)
tree9ad97609e8e5643970198c659d45c55e58b9f3d3 /lib/web_contents_view_qt.h
parentdf4db31eb2185244fee92975403b53a84a751b88 (diff)
Create the RasterWindowContainer in WebContentsViewQt.
Diffstat (limited to 'lib/web_contents_view_qt.h')
-rw-r--r--lib/web_contents_view_qt.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/web_contents_view_qt.h b/lib/web_contents_view_qt.h
index 0d9786e7b..068df4e7d 100644
--- a/lib/web_contents_view_qt.h
+++ b/lib/web_contents_view_qt.h
@@ -14,6 +14,7 @@ class WebContentsViewQt
{
public:
WebContentsViewQt(content::WebContents* web_contents)
+ : m_windowContainer(new RasterWindowContainer)
{ }
content::RenderWidgetHostView* CreateViewForWidget(content::RenderWidgetHost* render_widget_host)
@@ -63,12 +64,10 @@ public:
virtual void ShowPopupMenu(const gfx::Rect& bounds, int item_height, double item_font_size, int selected_item,
const std::vector<WebMenuItem>& items, bool right_aligned, bool allow_multiple_selection) { QT_NOT_YET_IMPLEMENTED }
-
- void setWindowContainer(void* c) { m_windowContainer = c; }
- void* windowContainer() { return m_windowContainer; }
+ RasterWindowContainer* windowContainer() { return m_windowContainer; }
private:
- void* m_windowContainer;
+ RasterWindowContainer* m_windowContainer;
};
#endif \ No newline at end of file