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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 long m_pointerId; | 44 long m_pointerId; |
45 double m_width; | 45 double m_width; |
46 double m_height; | 46 double m_height; |
47 float m_pressure; | 47 float m_pressure; |
48 long m_tiltX; | 48 long m_tiltX; |
49 long m_tiltY; | 49 long m_tiltY; |
50 String m_pointerType; | 50 String m_pointerType; |
51 bool m_isPrimary; | 51 bool m_isPrimary; |
52 }; | 52 }; |
53 | 53 |
| 54 |
| 55 class PointerEventDispatchMediator final : public EventDispatchMediator { |
| 56 public: |
| 57 static PassRefPtrWillBeRawPtr<PointerEventDispatchMediator> create(PassRefPt
rWillBeRawPtr<PointerEvent>); |
| 58 |
| 59 private: |
| 60 explicit PointerEventDispatchMediator(PassRefPtrWillBeRawPtr<PointerEvent>); |
| 61 PointerEvent& event() const; |
| 62 virtual bool dispatchEvent(EventDispatcher&) const override; |
| 63 }; |
| 64 |
54 DEFINE_EVENT_TYPE_CASTS(PointerEvent); | 65 DEFINE_EVENT_TYPE_CASTS(PointerEvent); |
55 | 66 |
56 } // namespace blink | 67 } // namespace blink |
57 | 68 |
58 #endif // PointerEvent_h | 69 #endif // PointerEvent_h |
OLD | NEW |