| 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 16 matching lines...) Expand all Loading... |
| 27 bool canBubble, | 27 bool canBubble, |
| 28 bool cancelable, | 28 bool cancelable, |
| 29 AbstractView*, | 29 AbstractView*, |
| 30 int detail, | 30 int detail, |
| 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 WebInputEvent::Modifiers, |
| 38 short button, | 38 short button, |
| 39 unsigned short buttons, | 39 unsigned short buttons, |
| 40 EventTarget* relatedTarget, | 40 EventTarget* relatedTarget, |
| 41 TimeTicks platformTimeStamp, | 41 TimeTicks platformTimeStamp, |
| 42 DataTransfer*, | 42 DataTransfer*, |
| 43 SyntheticEventType = RealOrIndistinguishable); | 43 SyntheticEventType = RealOrIndistinguishable); |
| 44 | 44 |
| 45 static DragEvent* create(const AtomicString& type, | 45 static DragEvent* create(const AtomicString& type, |
| 46 const DragEventInit& initializer) { | 46 const DragEventInit& initializer) { |
| 47 return new DragEvent(type, initializer); | 47 return new DragEvent(type, initializer); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 65 bool canBubble, | 65 bool canBubble, |
| 66 bool cancelable, | 66 bool cancelable, |
| 67 AbstractView*, | 67 AbstractView*, |
| 68 int detail, | 68 int detail, |
| 69 int screenX, | 69 int screenX, |
| 70 int screenY, | 70 int screenY, |
| 71 int windowX, | 71 int windowX, |
| 72 int windowY, | 72 int windowY, |
| 73 int movementX, | 73 int movementX, |
| 74 int movementY, | 74 int movementY, |
| 75 PlatformEvent::Modifiers, | 75 WebInputEvent::Modifiers, |
| 76 short button, | 76 short button, |
| 77 unsigned short buttons, | 77 unsigned short buttons, |
| 78 EventTarget* relatedTarget, | 78 EventTarget* relatedTarget, |
| 79 TimeTicks platformTimeStamp, | 79 TimeTicks platformTimeStamp, |
| 80 DataTransfer*, | 80 DataTransfer*, |
| 81 SyntheticEventType); | 81 SyntheticEventType); |
| 82 | 82 |
| 83 DragEvent(const AtomicString& type, const DragEventInit&); | 83 DragEvent(const AtomicString& type, const DragEventInit&); |
| 84 | 84 |
| 85 Member<DataTransfer> m_dataTransfer; | 85 Member<DataTransfer> m_dataTransfer; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 class DragEventDispatchMediator final : public EventDispatchMediator { | 88 class DragEventDispatchMediator final : public EventDispatchMediator { |
| 89 public: | 89 public: |
| 90 static DragEventDispatchMediator* create(DragEvent*); | 90 static DragEventDispatchMediator* create(DragEvent*); |
| 91 | 91 |
| 92 private: | 92 private: |
| 93 explicit DragEventDispatchMediator(DragEvent*); | 93 explicit DragEventDispatchMediator(DragEvent*); |
| 94 DragEvent& event() const; | 94 DragEvent& event() const; |
| 95 DispatchEventResult dispatchEvent(EventDispatcher&) const override; | 95 DispatchEventResult dispatchEvent(EventDispatcher&) const override; |
| 96 }; | 96 }; |
| 97 | 97 |
| 98 DEFINE_EVENT_TYPE_CASTS(DragEvent); | 98 DEFINE_EVENT_TYPE_CASTS(DragEvent); |
| 99 | 99 |
| 100 } // namespace blink | 100 } // namespace blink |
| 101 | 101 |
| 102 #endif // DragEvent_h | 102 #endif // DragEvent_h |
| OLD | NEW |