Index: content/browser/web_contents/web_contents_view_gtk.cc |
=================================================================== |
--- content/browser/web_contents/web_contents_view_gtk.cc (revision 168623) |
+++ content/browser/web_contents/web_contents_view_gtk.cc (working copy) |
@@ -148,6 +148,13 @@ |
return view; |
} |
+void WebContentsViewGtk::SetView(RenderWidgetHostView* view) { |
+ gfx::NativeView content_view = view->GetNativeView(); |
+ drag_dest_.reset(new WebDragDestGtk(web_contents_, content_view)); |
+ if (delegate_.get()) |
+ drag_dest_->set_delegate(delegate_->GetDragDestDelegate()); |
+} |
+ |
gfx::NativeView WebContentsViewGtk::GetNativeView() const { |
if (delegate_.get()) |
return delegate_->GetNativeView(); |