Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(768)

Unified Diff: content/browser/web_contents/web_contents_drag_win.cc

Issue 12334073: Remove WebContents methods that duplicate WebContentsView methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/web_contents/web_contents_drag_win.cc
diff --git a/content/browser/web_contents/web_contents_drag_win.cc b/content/browser/web_contents/web_contents_drag_win.cc
index cb83dcda0962b10f652723b8fbc7e848c21c223d..0b7fac48c7a486125726f73665ee01b93f3bd8a9 100644
--- a/content/browser/web_contents/web_contents_drag_win.cc
+++ b/content/browser/web_contents/web_contents_drag_win.cc
@@ -24,6 +24,7 @@
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/content_browser_client.h"
#include "content/public/browser/web_contents.h"
+#include "content/public/browser/web_contents_view.h"
#include "content/public/browser/web_drag_dest_delegate.h"
#include "net/base/net_util.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -348,7 +349,7 @@ bool WebContentsDragWin::DoDragging(const WebDropData& drop_data,
// Use a local variable to keep track of the contents view window handle.
// It might not be safe to access the instance after DoDragDrop returns
// because the window could be disposed in the nested message loop.
- HWND native_window = web_contents_->GetNativeView();
+ HWND native_window = web_contents_->GetView()->GetNativeView();
// We need to enable recursive tasks on the message loop so we can get
// updates while in the system DoDragDrop loop.
« no previous file with comments | « content/browser/android/download_controller_android_impl.cc ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698