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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 public: | 28 public: |
29 PointerEventFactory(); | 29 PointerEventFactory(); |
30 ~PointerEventFactory(); | 30 ~PointerEventFactory(); |
31 | 31 |
32 PointerEvent* create(const AtomicString& mouseEventName, | 32 PointerEvent* create(const AtomicString& mouseEventName, |
33 const PlatformMouseEvent&, | 33 const PlatformMouseEvent&, |
34 const Vector<PlatformMouseEvent>&, | 34 const Vector<PlatformMouseEvent>&, |
35 LocalDOMWindow*); | 35 LocalDOMWindow*); |
36 | 36 |
37 PointerEvent* create(const PlatformTouchPoint&, | 37 PointerEvent* create(const WebTouchPoint&, |
38 const Vector<PlatformTouchPoint>&, | 38 const Vector<WebTouchPoint>&, |
39 PlatformEvent::Modifiers, | 39 WebInputEvent::Modifiers, |
40 LocalFrame*, | 40 LocalFrame*, |
41 DOMWindow*); | 41 DOMWindow*); |
42 | 42 |
43 PointerEvent* createPointerCancelEvent( | 43 PointerEvent* createPointerCancelEvent( |
44 const int pointerId, | 44 const int pointerId, |
45 const WebPointerProperties::PointerType); | 45 const WebPointerProperties::PointerType); |
46 | 46 |
47 // For creating capture events (i.e got/lostpointercapture) | 47 // For creating capture events (i.e got/lostpointercapture) |
48 PointerEvent* createPointerCaptureEvent(PointerEvent*, const AtomicString&); | 48 PointerEvent* createPointerCaptureEvent(PointerEvent*, const AtomicString&); |
49 | 49 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 int m_primaryId[static_cast<int>( | 125 int m_primaryId[static_cast<int>( |
126 WebPointerProperties::PointerType::LastEntry) + | 126 WebPointerProperties::PointerType::LastEntry) + |
127 1]; | 127 1]; |
128 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + | 128 int m_idCount[static_cast<int>(WebPointerProperties::PointerType::LastEntry) + |
129 1]; | 129 1]; |
130 }; | 130 }; |
131 | 131 |
132 } // namespace blink | 132 } // namespace blink |
133 | 133 |
134 #endif // PointerEventFactory_h | 134 #endif // PointerEventFactory_h |
OLD | NEW |