| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "app/download_file_interface.h" | 7 #include "app/download_file_interface.h" |
| 8 #include "base/file_path.h" | 8 #include "base/file_path.h" |
| 9 #include "base/scoped_nsobject.h" | 9 #include "base/scoped_nsobject.h" |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 | 12 |
| 13 @class TabContentsViewCocoa; |
| 13 struct WebDropData; | 14 struct WebDropData; |
| 14 @class TabContentsViewCocoa; | |
| 15 | 15 |
| 16 // A class that handles tracking and event processing for a drag and drop | 16 // A class that handles tracking and event processing for a drag and drop |
| 17 // originating from the content area. | 17 // originating from the content area. |
| 18 @interface WebDragSource : NSObject { | 18 @interface WebDragSource : NSObject { |
| 19 @private | 19 @private |
| 20 // Our tab. Weak reference (owns or co-owns us). | 20 // Our tab. Weak reference (owns or co-owns us). |
| 21 TabContentsViewCocoa* contentsView_; | 21 TabContentsViewCocoa* contentsView_; |
| 22 | 22 |
| 23 // Our drop data. Should only be initialized once. | 23 // Our drop data. Should only be initialized once. |
| 24 scoped_ptr<WebDropData> dropData_; | 24 scoped_ptr<WebDropData> dropData_; |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // Drag moved; hook up to -draggedImage:movedTo:. | 72 // Drag moved; hook up to -draggedImage:movedTo:. |
| 73 - (void)moveDragTo:(NSPoint)screenPoint; | 73 - (void)moveDragTo:(NSPoint)screenPoint; |
| 74 | 74 |
| 75 // Call to drag a promised file to the given path (should be called before | 75 // Call to drag a promised file to the given path (should be called before |
| 76 // -endDragAt:...); hook up to -namesOfPromisedFilesDroppedAtDestination:. | 76 // -endDragAt:...); hook up to -namesOfPromisedFilesDroppedAtDestination:. |
| 77 // Returns the file name (not including path) of the file deposited (or which | 77 // Returns the file name (not including path) of the file deposited (or which |
| 78 // will be deposited). | 78 // will be deposited). |
| 79 - (NSString*)dragPromisedFileTo:(NSString*)path; | 79 - (NSString*)dragPromisedFileTo:(NSString*)path; |
| 80 | 80 |
| 81 @end | 81 @end |
| OLD | NEW |