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 PointerEvent_h | 5 #ifndef PointerEvent_h |
6 #define PointerEvent_h | 6 #define PointerEvent_h |
7 | 7 |
8 #include "core/events/MouseEvent.h" | 8 #include "core/events/MouseEvent.h" |
9 #include "core/events/PointerEventInit.h" | 9 #include "core/events/PointerEventInit.h" |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 double height() const { return m_height; } | 29 double height() const { return m_height; } |
30 float pressure() const { return m_pressure; } | 30 float pressure() const { return m_pressure; } |
31 long tiltX() const { return m_tiltX; } | 31 long tiltX() const { return m_tiltX; } |
32 long tiltY() const { return m_tiltY; } | 32 long tiltY() const { return m_tiltY; } |
33 const String& pointerType() const { return m_pointerType; } | 33 const String& pointerType() const { return m_pointerType; } |
34 bool isPrimary() const { return m_isPrimary; } | 34 bool isPrimary() const { return m_isPrimary; } |
35 | 35 |
36 bool isMouseEvent() const override; | 36 bool isMouseEvent() const override; |
37 bool isPointerEvent() const override; | 37 bool isPointerEvent() const override; |
38 | 38 |
| 39 PassRefPtrWillBeRawPtr<EventDispatchMediator> createMediator() override; |
| 40 |
39 DECLARE_VIRTUAL_TRACE(); | 41 DECLARE_VIRTUAL_TRACE(); |
40 | 42 |
41 private: | 43 private: |
42 PointerEvent(); | 44 PointerEvent(); |
43 PointerEvent(const AtomicString&, const PointerEventInit&); | 45 PointerEvent(const AtomicString&, const PointerEventInit&); |
44 | 46 |
45 long m_pointerId; | 47 long m_pointerId; |
46 double m_width; | 48 double m_width; |
47 double m_height; | 49 double m_height; |
48 float m_pressure; | 50 float m_pressure; |
(...skipping 12 matching lines...) Expand all Loading... |
61 explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>); | 63 explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>); |
62 PointerEvent& event() const; | 64 PointerEvent& event() const; |
63 bool dispatchEvent(EventDispatcher&) const override; | 65 bool dispatchEvent(EventDispatcher&) const override; |
64 }; | 66 }; |
65 | 67 |
66 DEFINE_EVENT_TYPE_CASTS(PointerEvent); | 68 DEFINE_EVENT_TYPE_CASTS(PointerEvent); |
67 | 69 |
68 } // namespace blink | 70 } // namespace blink |
69 | 71 |
70 #endif // PointerEvent_h | 72 #endif // PointerEvent_h |
OLD | NEW |