| 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/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/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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 // A mask of the allowed drag operations. | 42 // A mask of the allowed drag operations. |
| 43 NSDragOperation dragOperationMask_; | 43 NSDragOperation dragOperationMask_; |
| 44 | 44 |
| 45 // The file name to be saved to for a drag-out download. | 45 // The file name to be saved to for a drag-out download. |
| 46 base::FilePath downloadFileName_; | 46 base::FilePath downloadFileName_; |
| 47 | 47 |
| 48 // The URL to download from for a drag-out download. | 48 // The URL to download from for a drag-out download. |
| 49 GURL downloadURL_; | 49 GURL downloadURL_; |
| 50 | 50 |
| 51 // The file UTI associated with the file drag, if any. | 51 // The file UTI associated with the file drag, if any. |
| 52 base::mac::ScopedCFTypeRef<CFStringRef> fileUTI_; | 52 base::ScopedCFTypeRef<CFStringRef> fileUTI_; |
| 53 } | 53 } |
| 54 | 54 |
| 55 // Initialize a WebDragSource object for a drag (originating on the given | 55 // Initialize a WebDragSource object for a drag (originating on the given |
| 56 // contentsView and with the given dropData and pboard). Fill the pasteboard | 56 // contentsView and with the given dropData and pboard). Fill the pasteboard |
| 57 // with data types appropriate for dropData. | 57 // with data types appropriate for dropData. |
| 58 - (id)initWithContents:(content::WebContentsImpl*)contents | 58 - (id)initWithContents:(content::WebContentsImpl*)contents |
| 59 view:(NSView*)contentsView | 59 view:(NSView*)contentsView |
| 60 dropData:(const WebDropData*)dropData | 60 dropData:(const WebDropData*)dropData |
| 61 image:(NSImage*)image | 61 image:(NSImage*)image |
| 62 offset:(NSPoint)offset | 62 offset:(NSPoint)offset |
| (...skipping 17 matching lines...) Expand all Loading... |
| 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 @end | 89 @end |
| OLD | NEW |