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 12 matching lines...) Expand all Loading... |
23 // 1 and those that are generated by touch and pen will have increasing ids from | 23 // 1 and those that are generated by touch and pen will have increasing ids from |
24 // 2. | 24 // 2. |
25 class CORE_EXPORT PointerEventFactory { | 25 class CORE_EXPORT PointerEventFactory { |
26 DISALLOW_NEW(); | 26 DISALLOW_NEW(); |
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 WebMouseEvent&, |
34 const Vector<PlatformMouseEvent>&, | 34 const Vector<WebMouseEvent>&, |
35 LocalDOMWindow*); | 35 LocalDOMWindow*); |
36 | 36 |
37 PointerEvent* create(const WebTouchPoint&, | 37 PointerEvent* create(const WebTouchPoint&, |
38 const Vector<WebTouchPoint>&, | 38 const Vector<WebTouchPoint>&, |
39 WebInputEvent::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, |
(...skipping 80 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 |