| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/string16.h" | 7 #include "base/string16.h" |
| 8 | 8 |
| 9 class RenderViewHost; | |
| 10 class TabContents; | 9 class TabContents; |
| 11 struct WebDropData; | 10 struct WebDropData; |
| 12 | 11 |
| 13 namespace content { | 12 namespace content { |
| 13 class RenderViewHost; |
| 14 class WebDragDestDelegate; | 14 class WebDragDestDelegate; |
| 15 } | 15 } |
| 16 | 16 |
| 17 // A typedef for a RenderViewHost used for comparison purposes only. | 17 // A typedef for a RenderViewHost used for comparison purposes only. |
| 18 typedef RenderViewHost* RenderViewHostIdentifier; | 18 typedef content::RenderViewHost* RenderViewHostIdentifier; |
| 19 | 19 |
| 20 // A class that handles tracking and event processing for a drag and drop | 20 // A class that handles tracking and event processing for a drag and drop |
| 21 // over the content area. Assumes something else initiates the drag, this is | 21 // over the content area. Assumes something else initiates the drag, this is |
| 22 // only for processing during a drag. | 22 // only for processing during a drag. |
| 23 | 23 |
| 24 @interface WebDragDest : NSObject { | 24 @interface WebDragDest : NSObject { |
| 25 @private | 25 @private |
| 26 // Our associated TabContents. Weak reference. | 26 // Our associated TabContents. Weak reference. |
| 27 TabContents* tabContents_; | 27 TabContents* tabContents_; |
| 28 | 28 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 fromPasteboard:(NSPasteboard*)pboard; | 70 fromPasteboard:(NSPasteboard*)pboard; |
| 71 // Given a point in window coordinates and a view in that window, return a | 71 // Given a point in window coordinates and a view in that window, return a |
| 72 // flipped point in the coordinate system of |view|. | 72 // flipped point in the coordinate system of |view|. |
| 73 - (NSPoint)flipWindowPointToView:(const NSPoint&)windowPoint | 73 - (NSPoint)flipWindowPointToView:(const NSPoint&)windowPoint |
| 74 view:(NSView*)view; | 74 view:(NSView*)view; |
| 75 // Given a point in window coordinates and a view in that window, return a | 75 // Given a point in window coordinates and a view in that window, return a |
| 76 // flipped point in screen coordinates. | 76 // flipped point in screen coordinates. |
| 77 - (NSPoint)flipWindowPointToScreen:(const NSPoint&)windowPoint | 77 - (NSPoint)flipWindowPointToScreen:(const NSPoint&)windowPoint |
| 78 view:(NSView*)view; | 78 view:(NSView*)view; |
| 79 @end | 79 @end |
| OLD | NEW |