cef/cef3/patch/patches/content_popups.patch
Marshall Greenblatt f6c829a424 Update content_popups.patch
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@1053 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
2013-01-24 22:08:26 +00:00

32 lines
1.4 KiB
Diff

Index: browser/web_contents/web_contents_impl.cc
===================================================================
--- browser/web_contents/web_contents_impl.cc (revision 178221)
+++ browser/web_contents/web_contents_impl.cc (working copy)
@@ -1401,8 +1401,10 @@
new RenderWidgetHostImpl(this, process, route_id);
created_widgets_.insert(widget_host);
- RenderWidgetHostViewPort* widget_view =
- RenderWidgetHostViewPort::CreateViewForWidget(widget_host);
+ RenderWidgetHostViewPort* widget_view = RenderWidgetHostViewPort::FromRWHV(
+ view_->CreateViewForPopupWidget(widget_host));
+ if (!widget_view)
+ widget_view = RenderWidgetHostViewPort::CreateViewForWidget(widget_host);
if (!is_fullscreen) {
// Popups should not get activated.
widget_view->SetPopupType(popup_type);
Index: public/browser/web_contents_view.h
===================================================================
--- public/browser/web_contents_view.h (revision 178221)
+++ public/browser/web_contents_view.h (working copy)
@@ -38,6 +38,9 @@
virtual RenderWidgetHostView* CreateViewForWidget(
RenderWidgetHost* render_widget_host) = 0;
+ virtual RenderWidgetHostView* CreateViewForPopupWidget(
+ RenderWidgetHost* render_widget_host) { return NULL; }
+
// Returns the native widget that contains the contents of the tab.
virtual gfx::NativeView GetNativeView() const = 0;