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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 public: | 56 public: |
57 ~DragController(); | 57 ~DragController(); |
58 | 58 |
59 static PassOwnPtr<DragController> create(Page*, DragClient*); | 59 static PassOwnPtr<DragController> create(Page*, DragClient*); |
60 | 60 |
61 DragSession dragEntered(DragData*); | 61 DragSession dragEntered(DragData*); |
62 void dragExited(DragData*); | 62 void dragExited(DragData*); |
63 DragSession dragUpdated(DragData*); | 63 DragSession dragUpdated(DragData*); |
64 bool performDrag(DragData*); | 64 bool performDrag(DragData*); |
65 | 65 |
66 Node* draggableNode(const Frame*, Node*, const IntPoint&, DragState&) co
nst; | 66 enum SelectionDragPolicy { |
| 67 ImmediateSelectionDragResolution, |
| 68 DelayedSelectionDragResolution, |
| 69 }; |
| 70 Node* draggableNode(const Frame*, Node*, const IntPoint&, SelectionDragP
olicy, DragSourceAction&) const; |
67 void dragEnded(); | 71 void dragEnded(); |
68 | 72 |
69 bool populateDragClipboard(Frame* src, const DragState&, const IntPoint&
dragOrigin); | 73 bool populateDragClipboard(Frame* src, const DragState&, const IntPoint&
dragOrigin); |
70 bool startDrag(Frame* src, const DragState&, const PlatformMouseEvent& d
ragEvent, const IntPoint& dragOrigin); | 74 bool startDrag(Frame* src, const DragState&, const PlatformMouseEvent& d
ragEvent, const IntPoint& dragOrigin); |
71 | 75 |
72 static const int DragIconRightInset; | 76 static const int DragIconRightInset; |
73 static const int DragIconBottomInset; | 77 static const int DragIconBottomInset; |
74 | 78 |
75 private: | 79 private: |
76 DragController(Page*, DragClient*); | 80 DragController(Page*, DragClient*); |
(...skipping 23 matching lines...) Expand all Loading... |
100 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse; | 104 RefPtr<HTMLInputElement> m_fileInputElementUnderMouse; |
101 bool m_documentIsHandlingDrag; | 105 bool m_documentIsHandlingDrag; |
102 | 106 |
103 DragDestinationAction m_dragDestinationAction; | 107 DragDestinationAction m_dragDestinationAction; |
104 bool m_didInitiateDrag; | 108 bool m_didInitiateDrag; |
105 }; | 109 }; |
106 | 110 |
107 } | 111 } |
108 | 112 |
109 #endif | 113 #endif |
OLD | NEW |