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

Unified Diff: chrome/browser/tab_contents/tab_contents_view_mac.mm

Issue 8440001: Move Mac's WebDragDest to content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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/tab_contents/tab_contents_view_mac.mm
diff --git a/chrome/browser/tab_contents/tab_contents_view_mac.mm b/chrome/browser/tab_contents/tab_contents_view_mac.mm
index cd6e693fddf472fe0bb5171d67acf64aed861540..069d699cc42e4a6d99ff616f106749e01d458160 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -14,7 +14,6 @@
#include "chrome/browser/tab_contents/web_drag_bookmark_handler_mac.h"
#import "chrome/browser/ui/cocoa/focus_tracker.h"
#import "chrome/browser/ui/cocoa/tab_contents/sad_tab_controller.h"
-#import "chrome/browser/ui/cocoa/tab_contents/web_drop_target.h"
#import "chrome/browser/ui/cocoa/view_id_util.h"
#include "content/browser/renderer_host/render_view_host.h"
#include "content/browser/renderer_host/render_view_host_factory.h"
@@ -23,6 +22,7 @@
#include "content/browser/tab_contents/popup_menu_helper_mac.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/tab_contents/tab_contents_delegate.h"
+#import "content/browser/tab_contents/web_drag_dest_mac.h"
#import "content/browser/tab_contents/web_drag_source_mac.h"
#import "content/common/chrome_application_mac.h"
#include "content/common/view_messages.h"
@@ -420,7 +420,7 @@ void TabContentsViewMac::Observe(int type,
if (self != nil) {
tabContentsView_ = w;
dropTarget_.reset(
- [[WebDropTarget alloc] initWithTabContents:[self tabContents]]);
+ [[WebDragDest alloc] initWithTabContents:[self tabContents]]);
bookmarkHandler_.reset(new WebDragBookmarkHandlerMac);
[dropTarget_ setDragDelegate:
static_cast<content::WebDragDestDelegate*>(bookmarkHandler_.get())];

Powered by Google App Engine
This is Rietveld 408576698