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