OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. | 2 * Copyright (C) 2011 Google Inc. |
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 10 matching lines...) Expand all Loading... |
21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 21 * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
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 DragState_h | 26 #ifndef DragState_h |
27 #define DragState_h | 27 #define DragState_h |
28 | 28 |
29 #include "core/page/DragActions.h" | 29 #include "core/page/DragActions.h" |
30 #include "platform/heap/Handle.h" | 30 #include "platform/heap/Handle.h" |
31 #include "wtf/Noncopyable.h" | 31 #include "platform/wtf/Noncopyable.h" |
32 | 32 |
33 namespace blink { | 33 namespace blink { |
34 | 34 |
35 class DataTransfer; | 35 class DataTransfer; |
36 class Node; | 36 class Node; |
37 | 37 |
38 class DragState final : public GarbageCollected<DragState> { | 38 class DragState final : public GarbageCollected<DragState> { |
39 WTF_MAKE_NONCOPYABLE(DragState); | 39 WTF_MAKE_NONCOPYABLE(DragState); |
40 | 40 |
41 public: | 41 public: |
42 DragState() {} | 42 DragState() {} |
43 | 43 |
44 // Element that may be a drag source, for the current mouse gesture. | 44 // Element that may be a drag source, for the current mouse gesture. |
45 Member<Node> drag_src_; | 45 Member<Node> drag_src_; |
46 DragSourceAction drag_type_; | 46 DragSourceAction drag_type_; |
47 // Used on only the source side of dragging. | 47 // Used on only the source side of dragging. |
48 Member<DataTransfer> drag_data_transfer_; | 48 Member<DataTransfer> drag_data_transfer_; |
49 | 49 |
50 DEFINE_INLINE_TRACE() { | 50 DEFINE_INLINE_TRACE() { |
51 visitor->Trace(drag_src_); | 51 visitor->Trace(drag_src_); |
52 visitor->Trace(drag_data_transfer_); | 52 visitor->Trace(drag_data_transfer_); |
53 } | 53 } |
54 }; | 54 }; |
55 | 55 |
56 } // namespace blink | 56 } // namespace blink |
57 | 57 |
58 #endif // DragState_h | 58 #endif // DragState_h |
OLD | NEW |