| 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 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 class DataTransfer; | 36 class DataTransfer; |
| 37 class Node; | 37 class Node; |
| 38 | 38 |
| 39 // TODO(Oilpan): when Node is always on the heap, just derive from GarbageCollec
ted<>. | 39 // TODO(Oilpan): when Node is always on the heap, just derive from GarbageCollec
ted<>. |
| 40 class DragState final : public GarbageCollectedFinalized<DragState> { | 40 class DragState final : public GarbageCollectedFinalized<DragState> { |
| 41 WTF_MAKE_NONCOPYABLE(DragState); | 41 WTF_MAKE_NONCOPYABLE(DragState); |
| 42 public: | 42 public: |
| 43 DragState() { } | 43 DragState() { } |
| 44 | 44 |
| 45 RefPtrWillBeMember<Node> m_dragSrc; // element that may be a drag source, fo
r the current mouse gesture | 45 Member<Node> m_dragSrc; // element that may be a drag source, for the curren
t mouse gesture |
| 46 DragSourceAction m_dragType; | 46 DragSourceAction m_dragType; |
| 47 Member<DataTransfer> m_dragDataTransfer; // used on only the source side of
dragging | 47 Member<DataTransfer> m_dragDataTransfer; // used on only the source side of
dragging |
| 48 | 48 |
| 49 DEFINE_INLINE_TRACE() | 49 DEFINE_INLINE_TRACE() |
| 50 { | 50 { |
| 51 visitor->trace(m_dragSrc); | 51 visitor->trace(m_dragSrc); |
| 52 visitor->trace(m_dragDataTransfer); | 52 visitor->trace(m_dragDataTransfer); |
| 53 } | 53 } |
| 54 }; | 54 }; |
| 55 | 55 |
| 56 } // namespace blink | 56 } // namespace blink |
| 57 | 57 |
| 58 #endif // DragState_h | 58 #endif // DragState_h |
| OLD | NEW |