| 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 19 matching lines...) Expand all Loading... |
| 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 EventTarget* relatedTarget, |
| 35 AbstractView*); | 35 AbstractView*); |
| 36 | 36 |
| 37 PointerEvent* create(const AtomicString& type, | 37 PointerEvent* create(const AtomicString& type, |
| 38 const PlatformTouchPoint&, PlatformEvent::Modifiers, | 38 const PlatformTouchPoint&, PlatformEvent::Modifiers, |
| 39 const FloatSize& pointRadius, | 39 const FloatSize& pointRadius, |
| 40 const FloatPoint& pagePoint); | 40 const FloatPoint& clientPoint); |
| 41 | 41 |
| 42 PointerEvent* createPointerCancelEvent( | 42 PointerEvent* createPointerCancelEvent( |
| 43 const int pointerId, const WebPointerProperties::PointerType); | 43 const int pointerId, const WebPointerProperties::PointerType); |
| 44 | 44 |
| 45 // For creating capture events (i.e got/lostpointercapture) | 45 // For creating capture events (i.e got/lostpointercapture) |
| 46 PointerEvent* createPointerCaptureEvent( | 46 PointerEvent* createPointerCaptureEvent( |
| 47 PointerEvent*, | 47 PointerEvent*, |
| 48 const AtomicString&); | 48 const AtomicString&); |
| 49 | 49 |
| 50 // For creating transition events (i.e pointerout/leave/over/enter) | 50 // For creating transition events (i.e pointerout/leave/over/enter) |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 int m_currentId; | 108 int m_currentId; |
| 109 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign
edHash, UnsignedHash>> m_pointerIncomingIdMapping; | 109 HashMap<IncomingId, int, WTF::PairHash<int, int>, WTF::PairHashTraits<Unsign
edHash, UnsignedHash>> m_pointerIncomingIdMapping; |
| 110 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId
Mapping; | 110 HashMap<int, PointerAttributes, WTF::IntHash<int>, UnsignedHash> m_pointerId
Mapping; |
| 111 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr
y) + 1]; | 111 int m_primaryId[static_cast<int>(WebPointerProperties::PointerType::LastEntr
y) + 1]; |
| 112 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry)
+ 1]; | 112 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry)
+ 1]; |
| 113 }; | 113 }; |
| 114 | 114 |
| 115 } // namespace blink | 115 } // namespace blink |
| 116 | 116 |
| 117 #endif // PointerEventFactory_h | 117 #endif // PointerEventFactory_h |
| OLD | NEW |