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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 enum SelectionDragPolicy { | 64 enum SelectionDragPolicy { |
65 ImmediateSelectionDragResolution, | 65 ImmediateSelectionDragResolution, |
66 DelayedSelectionDragResolution, | 66 DelayedSelectionDragResolution, |
67 }; | 67 }; |
68 Node* draggableNode(const LocalFrame*, Node*, const IntPoint&, SelectionDrag
Policy, DragSourceAction&) const; | 68 Node* draggableNode(const LocalFrame*, Node*, const IntPoint&, SelectionDrag
Policy, DragSourceAction&) const; |
69 void dragEnded(); | 69 void dragEnded(); |
70 | 70 |
71 bool populateDragDataTransfer(LocalFrame* src, const DragState&, const IntPo
int& dragOrigin); | 71 bool populateDragDataTransfer(LocalFrame* src, const DragState&, const IntPo
int& dragOrigin); |
72 bool startDrag(LocalFrame* src, const DragState&, const PlatformMouseEvent&
dragEvent, const IntPoint& dragOrigin); | 72 bool startDrag(LocalFrame* src, const DragState&, const PlatformMouseEvent&
dragEvent, const IntPoint& dragOrigin); |
73 | 73 |
74 void trace(Visitor*); | 74 DECLARE_TRACE(); |
75 | 75 |
76 static const int DragIconRightInset; | 76 static const int DragIconRightInset; |
77 static const int DragIconBottomInset; | 77 static const int DragIconBottomInset; |
78 | 78 |
79 private: | 79 private: |
80 DragController(Page*, DragClient*); | 80 DragController(Page*, DragClient*); |
81 | 81 |
82 bool dispatchTextInputEventFor(LocalFrame*, DragData*); | 82 bool dispatchTextInputEventFor(LocalFrame*, DragData*); |
83 bool canProcessDrag(DragData*); | 83 bool canProcessDrag(DragData*); |
84 bool concludeEditDrag(DragData*); | 84 bool concludeEditDrag(DragData*); |
(...skipping 19 matching lines...) Expand all Loading... |
104 RefPtrWillBeMember<HTMLInputElement> m_fileInputElementUnderMouse; | 104 RefPtrWillBeMember<HTMLInputElement> m_fileInputElementUnderMouse; |
105 bool m_documentIsHandlingDrag; | 105 bool m_documentIsHandlingDrag; |
106 | 106 |
107 DragDestinationAction m_dragDestinationAction; | 107 DragDestinationAction m_dragDestinationAction; |
108 bool m_didInitiateDrag; | 108 bool m_didInitiateDrag; |
109 }; | 109 }; |
110 | 110 |
111 } // namespace blink | 111 } // namespace blink |
112 | 112 |
113 #endif // DragController_h | 113 #endif // DragController_h |
OLD | NEW |