| OLD | NEW |
| 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/file_path.h" | 7 #include "base/file_path.h" |
| 8 #include "base/mac/scoped_cftyperef.h" | 8 #include "base/mac/scoped_cftyperef.h" |
| 9 #include "base/memory/scoped_nsobject.h" | 9 #include "base/memory/scoped_nsobject.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // The offset to draw |dragImage_| at. | 34 // The offset to draw |dragImage_| at. |
| 35 NSPoint imageOffset_; | 35 NSPoint imageOffset_; |
| 36 | 36 |
| 37 // Our pasteboard. | 37 // Our pasteboard. |
| 38 scoped_nsobject<NSPasteboard> pasteboard_; | 38 scoped_nsobject<NSPasteboard> pasteboard_; |
| 39 | 39 |
| 40 // A mask of the allowed drag operations. | 40 // A mask of the allowed drag operations. |
| 41 NSDragOperation dragOperationMask_; | 41 NSDragOperation dragOperationMask_; |
| 42 | 42 |
| 43 // The file name to be saved to for a drag-out download. | 43 // The file name to be saved to for a drag-out download. |
| 44 FilePath downloadFileName_; | 44 base::FilePath downloadFileName_; |
| 45 | 45 |
| 46 // The URL to download from for a drag-out download. | 46 // The URL to download from for a drag-out download. |
| 47 GURL downloadURL_; | 47 GURL downloadURL_; |
| 48 | 48 |
| 49 // The file UTI associated with the file drag, if any. | 49 // The file UTI associated with the file drag, if any. |
| 50 base::mac::ScopedCFTypeRef<CFStringRef> fileUTI_; | 50 base::mac::ScopedCFTypeRef<CFStringRef> fileUTI_; |
| 51 } | 51 } |
| 52 | 52 |
| 53 // Initialize a WebDragSource object for a drag (originating on the given | 53 // Initialize a WebDragSource object for a drag (originating on the given |
| 54 // contentsView and with the given dropData and pboard). Fill the pasteboard | 54 // contentsView and with the given dropData and pboard). Fill the pasteboard |
| (...skipping 29 matching lines...) Expand all Loading... |
| 84 // Drag moved; hook up to -draggedImage:movedTo:. | 84 // Drag moved; hook up to -draggedImage:movedTo:. |
| 85 - (void)moveDragTo:(NSPoint)screenPoint; | 85 - (void)moveDragTo:(NSPoint)screenPoint; |
| 86 | 86 |
| 87 // Call to drag a promised file to the given path (should be called before | 87 // Call to drag a promised file to the given path (should be called before |
| 88 // -endDragAt:...); hook up to -namesOfPromisedFilesDroppedAtDestination:. | 88 // -endDragAt:...); hook up to -namesOfPromisedFilesDroppedAtDestination:. |
| 89 // Returns the file name (not including path) of the file deposited (or which | 89 // Returns the file name (not including path) of the file deposited (or which |
| 90 // will be deposited). | 90 // will be deposited). |
| 91 - (NSString*)dragPromisedFileTo:(NSString*)path; | 91 - (NSString*)dragPromisedFileTo:(NSString*)path; |
| 92 | 92 |
| 93 @end | 93 @end |
| OLD | NEW |