OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
24 */ | 24 */ |
25 | 25 |
26 #ifndef DragController_h | 26 #ifndef DragController_h |
27 #define DragController_h | 27 #define DragController_h |
28 | 28 |
29 #include "core/page/DragActions.h" | 29 #include "core/page/DragActions.h" |
30 #include "core/platform/DragImage.h" | 30 #include "core/platform/DragImage.h" |
31 #include "core/platform/KURL.h" | 31 #include "core/platform/KURL.h" |
32 #include "core/platform/graphics/IntPoint.h" | 32 #include "core/platform/graphics/IntPoint.h" |
| 33 #include "heap/Handle.h" |
33 | 34 |
34 namespace WebCore { | 35 namespace WebCore { |
35 | 36 |
36 class Clipboard; | 37 class Clipboard; |
37 class Document; | 38 class Document; |
38 class DragClient; | 39 class DragClient; |
39 class DragData; | 40 class DragData; |
40 struct DragSession; | 41 struct DragSession; |
41 struct DragState; | 42 struct DragState; |
42 class Element; | 43 class Element; |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 bool doDrag(Frame* src, Clipboard* clipboard, DragImageRef dragImage, co
nst KURL& linkURL, const KURL& imageURL, Node* node, IntPoint& dragLoc, IntPoint
& dragImageOffset); | 114 bool doDrag(Frame* src, Clipboard* clipboard, DragImageRef dragImage, co
nst KURL& linkURL, const KURL& imageURL, Node* node, IntPoint& dragLoc, IntPoint
& dragImageOffset); |
114 void doImageDrag(Element*, const IntPoint&, const IntRect&, Clipboard*,
Frame*, IntPoint&); | 115 void doImageDrag(Element*, const IntPoint&, const IntRect&, Clipboard*,
Frame*, IntPoint&); |
115 void doSystemDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipbo
ard*, Frame*, bool forLink); | 116 void doSystemDrag(DragImageRef, const IntPoint&, const IntPoint&, Clipbo
ard*, Frame*, bool forLink); |
116 void cleanupAfterSystemDrag(); | 117 void cleanupAfterSystemDrag(); |
117 | 118 |
118 Page* m_page; | 119 Page* m_page; |
119 DragClient* m_client; | 120 DragClient* m_client; |
120 | 121 |
121 RefPtr<Document> m_documentUnderMouse; // The document the mouse was las
t dragged over. | 122 RefPtr<Document> m_documentUnderMouse; // The document the mouse was las
t dragged over. |
122 RefPtr<Document> m_dragInitiator; // The Document (if any) that initiate
d the drag. | 123 RefPtr<Document> m_dragInitiator; // The Document (if any) that initiate
d the drag. |
123 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse; | 124 Persistent<HTMLInputElement> m_fileInputElementUnderMouse; |
124 bool m_documentIsHandlingDrag; | 125 bool m_documentIsHandlingDrag; |
125 | 126 |
126 DragDestinationAction m_dragDestinationAction; | 127 DragDestinationAction m_dragDestinationAction; |
127 DragSourceAction m_dragSourceAction; | 128 DragSourceAction m_dragSourceAction; |
128 bool m_didInitiateDrag; | 129 bool m_didInitiateDrag; |
129 DragOperation m_sourceDragOperation; // Set in startDrag when a drag sta
rts from a mouse down within WebKit | 130 DragOperation m_sourceDragOperation; // Set in startDrag when a drag sta
rts from a mouse down within WebKit |
130 IntPoint m_dragOffset; | 131 IntPoint m_dragOffset; |
131 KURL m_draggingImageURL; | 132 KURL m_draggingImageURL; |
132 }; | 133 }; |
133 | 134 |
134 } | 135 } |
135 | 136 |
136 #endif | 137 #endif |
OLD | NEW |