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

Side by Side Diff: content/browser/web_contents/web_drag_source_mac.h

Issue 23775005: Go back to the old method of doing file drop promises. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more detail in brokenness Created 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/mac/scoped_cftyperef.h" 8 #include "base/mac/scoped_cftyperef.h"
9 #include "base/mac/scoped_nsobject.h" 9 #include "base/mac/scoped_nsobject.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 - (void)startDrag; 79 - (void)startDrag;
80 80
81 // End the drag and clear the pasteboard; hook up to 81 // End the drag and clear the pasteboard; hook up to
82 // -draggedImage:endedAt:operation:. 82 // -draggedImage:endedAt:operation:.
83 - (void)endDragAt:(NSPoint)screenPoint 83 - (void)endDragAt:(NSPoint)screenPoint
84 operation:(NSDragOperation)operation; 84 operation:(NSDragOperation)operation;
85 85
86 // Drag moved; hook up to -draggedImage:movedTo:. 86 // Drag moved; hook up to -draggedImage:movedTo:.
87 - (void)moveDragTo:(NSPoint)screenPoint; 87 - (void)moveDragTo:(NSPoint)screenPoint;
88 88
89 // Call to drag a promised file to the given path (should be called before
90 // -endDragAt:...); hook up to -namesOfPromisedFilesDroppedAtDestination:.
91 // Returns the file name (not including path) of the file deposited (or which
92 // will be deposited).
93 - (NSString*)dragPromisedFileTo:(NSString*)path;
94
89 @end 95 @end
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_mac.mm ('k') | content/browser/web_contents/web_drag_source_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698