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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/web_drop_target.h

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/ui/cocoa/tab_contents/web_drop_target.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/web_drop_target.h b/chrome/browser/ui/cocoa/tab_contents/web_drop_target.h
index 566a585b1fef665eada6c4d0c1ad81a46b26b06d..c7c545199b32bbd4c5a20c8d443a0edd9495e30a 100644
--- a/chrome/browser/ui/cocoa/tab_contents/web_drop_target.h
+++ b/chrome/browser/ui/cocoa/tab_contents/web_drop_target.h
@@ -9,9 +9,12 @@
class GURL;
class RenderViewHost;
class TabContents;
-class TabContentsWrapper;
struct WebDropData;
+namespace content {
+class WebDragDestDelegate;
+}
+
// A typedef for a RenderViewHost used for comparison purposes only.
typedef RenderViewHost* RenderViewHostIdentifier;
@@ -24,10 +27,8 @@ typedef RenderViewHost* RenderViewHostIdentifier;
// Our associated TabContents. Weak reference.
TabContents* tabContents_;
- // The TabContentsWrapper for |tab_contents_|.
- // Weak reference; may be NULL if the contents aren't contained in a wrapper
- // (e.g. WebUI dialogs).
- TabContentsWrapper* tab_;
+ // Delegate; weak.
+ content::WebDragDestDelegate* delegate_;
// Updated asynchronously during a drag to tell us whether or not we should
// allow the drop.
@@ -43,6 +44,8 @@ typedef RenderViewHost* RenderViewHostIdentifier;
// (if necessary).
- (id)initWithTabContents:(TabContents*)contents;
+- (void)setDragDelegate:(content::WebDragDestDelegate*)delegate;
+
// Sets the current operation negotiated by the source and destination,
// which determines whether or not we should allow the drop. Takes effect the
// next time |-draggingUpdated:| is called.
« no previous file with comments | « chrome/browser/tab_contents/web_drag_bookmark_handler_mac.mm ('k') | chrome/browser/ui/cocoa/tab_contents/web_drop_target.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698