| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DragEvent_h | 5 #ifndef DragEvent_h |
| 6 #define DragEvent_h | 6 #define DragEvent_h |
| 7 | 7 |
| 8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
| 9 #include "core/events/DragEventInit.h" | 9 #include "core/events/DragEventInit.h" |
| 10 #include "core/events/MouseEvent.h" | 10 #include "core/events/MouseEvent.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 int screenX, | 31 int screenX, |
| 32 int screenY, | 32 int screenY, |
| 33 int windowX, | 33 int windowX, |
| 34 int windowY, | 34 int windowY, |
| 35 int movementX, | 35 int movementX, |
| 36 int movementY, | 36 int movementY, |
| 37 PlatformEvent::Modifiers, | 37 PlatformEvent::Modifiers, |
| 38 short button, | 38 short button, |
| 39 unsigned short buttons, | 39 unsigned short buttons, |
| 40 EventTarget* relatedTarget, | 40 EventTarget* relatedTarget, |
| 41 double platformTimeStamp, | 41 TimeTicks platformTimeStamp, |
| 42 DataTransfer*, | 42 DataTransfer*, |
| 43 PlatformMouseEvent::SyntheticEventType = | 43 PlatformMouseEvent::SyntheticEventType = |
| 44 PlatformMouseEvent::RealOrIndistinguishable); | 44 PlatformMouseEvent::RealOrIndistinguishable); |
| 45 | 45 |
| 46 static DragEvent* create(const AtomicString& type, | 46 static DragEvent* create(const AtomicString& type, |
| 47 const DragEventInit& initializer) { | 47 const DragEventInit& initializer) { |
| 48 return new DragEvent(type, initializer); | 48 return new DragEvent(type, initializer); |
| 49 } | 49 } |
| 50 | 50 |
| 51 DataTransfer* getDataTransfer() const override { | 51 DataTransfer* getDataTransfer() const override { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 70 int screenX, | 70 int screenX, |
| 71 int screenY, | 71 int screenY, |
| 72 int windowX, | 72 int windowX, |
| 73 int windowY, | 73 int windowY, |
| 74 int movementX, | 74 int movementX, |
| 75 int movementY, | 75 int movementY, |
| 76 PlatformEvent::Modifiers, | 76 PlatformEvent::Modifiers, |
| 77 short button, | 77 short button, |
| 78 unsigned short buttons, | 78 unsigned short buttons, |
| 79 EventTarget* relatedTarget, | 79 EventTarget* relatedTarget, |
| 80 double platformTimeStamp, | 80 TimeTicks platformTimeStamp, |
| 81 DataTransfer*, | 81 DataTransfer*, |
| 82 PlatformMouseEvent::SyntheticEventType); | 82 PlatformMouseEvent::SyntheticEventType); |
| 83 | 83 |
| 84 DragEvent(const AtomicString& type, const DragEventInit&); | 84 DragEvent(const AtomicString& type, const DragEventInit&); |
| 85 | 85 |
| 86 Member<DataTransfer> m_dataTransfer; | 86 Member<DataTransfer> m_dataTransfer; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 class DragEventDispatchMediator final : public EventDispatchMediator { | 89 class DragEventDispatchMediator final : public EventDispatchMediator { |
| 90 public: | 90 public: |
| 91 static DragEventDispatchMediator* create(DragEvent*); | 91 static DragEventDispatchMediator* create(DragEvent*); |
| 92 | 92 |
| 93 private: | 93 private: |
| 94 explicit DragEventDispatchMediator(DragEvent*); | 94 explicit DragEventDispatchMediator(DragEvent*); |
| 95 DragEvent& event() const; | 95 DragEvent& event() const; |
| 96 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 96 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 DEFINE_EVENT_TYPE_CASTS(DragEvent); | 99 DEFINE_EVENT_TYPE_CASTS(DragEvent); |
| 100 | 100 |
| 101 } // namespace blink | 101 } // namespace blink |
| 102 | 102 |
| 103 #endif // DragEvent_h | 103 #endif // DragEvent_h |
| OLD | NEW |