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

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

Issue 174364: Plumb the DragOperation through all the layers between the platform DnD code ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/cocoa/web_drop_target.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cocoa/web_drop_target.h
===================================================================
--- chrome/browser/cocoa/web_drop_target.h (revision 25321)
+++ chrome/browser/cocoa/web_drop_target.h (working copy)
@@ -22,7 +22,7 @@
// Updated asynchronously during a drag to tell us whether or not we should
// allow the drop.
- BOOL isDropTarget_;
+ NSDragOperation current_operation_;
// Keep track of the render view host we're dragging over. If it changes
// during a drag, we need to re-send the DragEnter message.
@@ -34,9 +34,10 @@
// (if necessary).
- (id)initWithTabContents:(TabContents*)contents;
-// Call to set whether or not we should allow the drop. Takes effect the
+// 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.
-- (void)setIsDropTarget:(BOOL)isDropTarget;
+- (void)setCurrentOperation: (NSDragOperation)operation;
// Messages to send during the tracking of a drag, ususally upon receiving
// calls from the view system. Communicates the drag messages to WebCore.
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/cocoa/web_drop_target.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698