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

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

Issue 8430013: Split Mac WebDropTarget into two, content and chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: changes 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 870facc121299bad460b8c232b1ec4de7bf28f2b..cd6e693fddf472fe0bb5171d67acf64aed861540 100644
--- a/chrome/browser/tab_contents/tab_contents_view_mac.mm
+++ b/chrome/browser/tab_contents/tab_contents_view_mac.mm
@@ -11,6 +11,7 @@
#include "chrome/browser/browser_shutdown.h"
#import "chrome/browser/renderer_host/chrome_render_widget_host_view_mac_delegate.h"
#include "chrome/browser/tab_contents/render_view_context_menu_mac.h"
+#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"
@@ -420,6 +421,9 @@ void TabContentsViewMac::Observe(int type,
tabContentsView_ = w;
dropTarget_.reset(
[[WebDropTarget alloc] initWithTabContents:[self tabContents]]);
+ bookmarkHandler_.reset(new WebDragBookmarkHandlerMac);
+ [dropTarget_ setDragDelegate:
+ static_cast<content::WebDragDestDelegate*>(bookmarkHandler_.get())];
[self registerDragTypes];
// TabContentsViewCocoa's ViewID may be changed to VIEW_ID_DEV_TOOLS_DOCKED
// by TabContentsController, so we can't just override -viewID method to
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_mac.h ('k') | chrome/browser/tab_contents/web_drag_bookmark_handler_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698