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 19 matching lines...) Expand all Loading... |
30 #include "wtf/Noncopyable.h" | 30 #include "wtf/Noncopyable.h" |
31 #include "wtf/RefPtr.h" | 31 #include "wtf/RefPtr.h" |
32 | 32 |
33 namespace WebCore { | 33 namespace WebCore { |
34 | 34 |
35 class Clipboard; | 35 class Clipboard; |
36 class Node; | 36 class Node; |
37 | 37 |
38 class DragState : public NoBaseWillBeGarbageCollectedFinalized<DragState> { | 38 class DragState : public NoBaseWillBeGarbageCollectedFinalized<DragState> { |
39 WTF_MAKE_NONCOPYABLE(DragState); | 39 WTF_MAKE_NONCOPYABLE(DragState); |
40 DECLARE_GC_INFO; | |
41 public: | 40 public: |
42 DragState() { } | 41 DragState() { } |
43 RefPtr<Node> m_dragSrc; // element that may be a drag source, for the curren
t mouse gesture | 42 RefPtr<Node> m_dragSrc; // element that may be a drag source, for the curren
t mouse gesture |
44 DragSourceAction m_dragType; | 43 DragSourceAction m_dragType; |
45 RefPtrWillBeMember<Clipboard> m_dragClipboard; // used on only the source si
de of dragging | 44 RefPtrWillBeMember<Clipboard> m_dragClipboard; // used on only the source si
de of dragging |
46 | 45 |
47 void trace(Visitor* visitor) | 46 void trace(Visitor* visitor) |
48 { | 47 { |
49 visitor->trace(m_dragClipboard); | 48 visitor->trace(m_dragClipboard); |
50 } | 49 } |
51 }; | 50 }; |
52 | 51 |
53 } // namespace WebCore | 52 } // namespace WebCore |
54 | 53 |
55 #endif // DragState_h | 54 #endif // DragState_h |
OLD | NEW |