mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-01-23 16:01:08 +01:00
f6c829a424
git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/1364@1053 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
32 lines
1.4 KiB
Diff
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;
|
|
|