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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 class DragImage; | 42 class DragImage; |
43 struct DragSession; | 43 struct DragSession; |
44 class DragState; | 44 class DragState; |
45 class LocalFrame; | 45 class LocalFrame; |
46 class FrameSelection; | 46 class FrameSelection; |
47 class HTMLInputElement; | 47 class HTMLInputElement; |
48 class Node; | 48 class Node; |
49 class Page; | 49 class Page; |
50 class PlatformMouseEvent; | 50 class PlatformMouseEvent; |
51 | 51 |
52 class CORE_EXPORT DragController final : public GarbageCollectedFinalized<DragCo
ntroller> { | 52 class CORE_EXPORT DragController final : public GarbageCollected<DragController>
{ |
53 WTF_MAKE_NONCOPYABLE(DragController); | 53 WTF_MAKE_NONCOPYABLE(DragController); |
54 public: | 54 public: |
55 ~DragController(); | |
56 | |
57 static DragController* create(Page*); | 55 static DragController* create(Page*); |
58 | 56 |
59 DragSession dragEntered(DragData*); | 57 DragSession dragEntered(DragData*); |
60 void dragExited(DragData*); | 58 void dragExited(DragData*); |
61 DragSession dragUpdated(DragData*); | 59 DragSession dragUpdated(DragData*); |
62 bool performDrag(DragData*); | 60 bool performDrag(DragData*); |
63 | 61 |
64 enum SelectionDragPolicy { | 62 enum SelectionDragPolicy { |
65 ImmediateSelectionDragResolution, | 63 ImmediateSelectionDragResolution, |
66 DelayedSelectionDragResolution, | 64 DelayedSelectionDragResolution, |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 Member<HTMLInputElement> m_fileInputElementUnderMouse; | 100 Member<HTMLInputElement> m_fileInputElementUnderMouse; |
103 bool m_documentIsHandlingDrag; | 101 bool m_documentIsHandlingDrag; |
104 | 102 |
105 DragDestinationAction m_dragDestinationAction; | 103 DragDestinationAction m_dragDestinationAction; |
106 bool m_didInitiateDrag; | 104 bool m_didInitiateDrag; |
107 }; | 105 }; |
108 | 106 |
109 } // namespace blink | 107 } // namespace blink |
110 | 108 |
111 #endif // DragController_h | 109 #endif // DragController_h |
OLD | NEW |