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

Unified Diff: chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc

Issue 9581003: Get rid of chrome dependencies from tab_contents_drag_win.cc. After this I'll move it to content\br… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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: chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc
===================================================================
--- chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc (revision 124607)
+++ chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.cc (working copy)
@@ -4,6 +4,7 @@
#include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_win.h"
+#include "base/bind.h"
#include "chrome/browser/tab_contents/web_drag_bookmark_handler_win.h"
#include "chrome/browser/ui/views/tab_contents/native_tab_contents_view_delegate.h"
#include "chrome/browser/ui/views/tab_contents/tab_contents_drag_win.h"
@@ -135,7 +136,12 @@
WebKit::WebDragOperationsMask ops,
const SkBitmap& image,
const gfx::Point& image_offset) {
- drag_handler_ = new TabContentsDragWin(this);
+ drag_handler_ = new TabContentsDragWin(
+ GetNativeView(),
+ delegate_->GetWebContents(),
+ drag_dest_,
+ base::Bind(&NativeTabContentsViewWin::EndDragging,
+ base::Unretained(this)));
drag_handler_->StartDragging(drop_data, ops, image, image_offset);
}

Powered by Google App Engine
This is Rietveld 408576698