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 "base/string16.h" | 7 #include "base/string16.h" |
8 | 8 |
9 class GURL; | 9 class GURL; |
10 class RenderViewHost; | 10 class RenderViewHost; |
11 class TabContents; | 11 class TabContents; |
12 class WebDropData; | 12 struct WebDropData; |
13 | 13 |
14 // A typedef for a RenderViewHost used for comparison purposes only. | 14 // A typedef for a RenderViewHost used for comparison purposes only. |
15 typedef RenderViewHost* RenderViewHostIdentifier; | 15 typedef RenderViewHost* RenderViewHostIdentifier; |
16 | 16 |
17 // A class that handles tracking and event processing for a drag and drop | 17 // A class that handles tracking and event processing for a drag and drop |
18 // over the content area. Assumes something else initiates the drag, this is | 18 // over the content area. Assumes something else initiates the drag, this is |
19 // only for processing during a drag. | 19 // only for processing during a drag. |
20 | 20 |
21 @interface WebDropTarget : NSObject { | 21 @interface WebDropTarget : NSObject { |
22 @private | 22 @private |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 fromPasteboard:(NSPasteboard*)pboard; | 71 fromPasteboard:(NSPasteboard*)pboard; |
72 // Given a point in window coordinates and a view in that window, return a | 72 // Given a point in window coordinates and a view in that window, return a |
73 // flipped point in the coordinate system of |view|. | 73 // flipped point in the coordinate system of |view|. |
74 - (NSPoint)flipWindowPointToView:(const NSPoint&)windowPoint | 74 - (NSPoint)flipWindowPointToView:(const NSPoint&)windowPoint |
75 view:(NSView*)view; | 75 view:(NSView*)view; |
76 // Given a point in window coordinates and a view in that window, return a | 76 // Given a point in window coordinates and a view in that window, return a |
77 // flipped point in screen coordinates. | 77 // flipped point in screen coordinates. |
78 - (NSPoint)flipWindowPointToScreen:(const NSPoint&)windowPoint | 78 - (NSPoint)flipWindowPointToScreen:(const NSPoint&)windowPoint |
79 view:(NSView*)view; | 79 view:(NSView*)view; |
80 @end | 80 @end |
OLD | NEW |