OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 PointerEventFactory_h | 5 #ifndef PointerEventFactory_h |
6 #define PointerEventFactory_h | 6 #define PointerEventFactory_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/events/PointerEvent.h" | 9 #include "core/events/PointerEvent.h" |
10 #include "public/platform/WebPointerProperties.h" | 10 #include "public/platform/WebPointerProperties.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 // 2. | 24 // 2. |
25 class CORE_EXPORT PointerEventFactory { | 25 class CORE_EXPORT PointerEventFactory { |
26 DISALLOW_NEW(); | 26 DISALLOW_NEW(); |
27 public: | 27 public: |
28 | 28 |
29 PointerEventFactory(); | 29 PointerEventFactory(); |
30 ~PointerEventFactory(); | 30 ~PointerEventFactory(); |
31 | 31 |
32 PointerEvent* create( | 32 PointerEvent* create( |
33 const AtomicString& mouseEventName, const PlatformMouseEvent&, | 33 const AtomicString& mouseEventName, const PlatformMouseEvent&, |
| 34 EventTarget* relatedTarget, |
34 LocalDOMWindow*); | 35 LocalDOMWindow*); |
35 | 36 |
36 PointerEvent* create(const AtomicString& type, | 37 PointerEvent* create(const AtomicString& type, |
37 const PlatformTouchPoint&, PlatformEvent::Modifiers, | 38 const PlatformTouchPoint&, PlatformEvent::Modifiers, |
38 const FloatSize& pointRadius, | 39 const FloatSize& pointRadius, |
39 const FloatPoint& clientPoint, | 40 const FloatPoint& clientPoint, |
40 DOMWindow*); | 41 DOMWindow*); |
41 | 42 |
42 PointerEvent* createPointerCancelEvent( | 43 PointerEvent* createPointerCancelEvent( |
43 const int pointerId, const WebPointerProperties::PointerType); | 44 const int pointerId, const WebPointerProperties::PointerType); |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 int m_currentId; | 112 int m_currentId; |
112 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign
edHash, UnsignedHash>> m_pointerIncomingIdMapping; | 113 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign
edHash, UnsignedHash>> m_pointerIncomingIdMapping; |
113 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId
Mapping; | 114 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId
Mapping; |
114 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr
y) + 1]; | 115 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr
y) + 1]; |
115 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry)
+ 1]; | 116 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry)
+ 1]; |
116 }; | 117 }; |
117 | 118 |
118 } // namespace blink | 119 } // namespace blink |
119 | 120 |
120 #endif // PointerEventFactory_h | 121 #endif // PointerEventFactory_h |
OLD | NEW |