| 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 "platform/wtf/Allocator.h" | 10 #include "platform/wtf/Allocator.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 public: | 28 public: |
| 29 PointerEventFactory(); | 29 PointerEventFactory(); |
| 30 ~PointerEventFactory(); | 30 ~PointerEventFactory(); |
| 31 | 31 |
| 32 PointerEvent* Create(const AtomicString& mouse_event_name, | 32 PointerEvent* Create(const AtomicString& mouse_event_name, |
| 33 const WebMouseEvent&, | 33 const WebMouseEvent&, |
| 34 const Vector<WebMouseEvent>&, | 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<std::pair<WebTouchPoint, TimeTicks>>&, |
| 39 WebInputEvent::Modifiers, | 39 WebInputEvent::Modifiers, |
| 40 TimeTicks event_platform_time_stamp, |
| 40 LocalFrame*, | 41 LocalFrame*, |
| 41 DOMWindow*); | 42 DOMWindow*); |
| 42 | 43 |
| 43 PointerEvent* CreatePointerCancelEvent( | 44 PointerEvent* CreatePointerCancelEvent( |
| 44 const int pointer_id, | 45 const int pointer_id, |
| 45 const WebPointerProperties::PointerType); | 46 const WebPointerProperties::PointerType); |
| 46 | 47 |
| 47 // For creating capture events (i.e got/lostpointercapture) | 48 // For creating capture events (i.e got/lostpointercapture) |
| 48 PointerEvent* CreatePointerCaptureEvent(PointerEvent*, const AtomicString&); | 49 PointerEvent* CreatePointerCaptureEvent(PointerEvent*, const AtomicString&); |
| 49 | 50 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 WebPointerProperties::PointerType::kLastEntry) + | 127 WebPointerProperties::PointerType::kLastEntry) + |
| 127 1]; | 128 1]; |
| 128 int id_count_[static_cast<int>( | 129 int id_count_[static_cast<int>( |
| 129 WebPointerProperties::PointerType::kLastEntry) + | 130 WebPointerProperties::PointerType::kLastEntry) + |
| 130 1]; | 131 1]; |
| 131 }; | 132 }; |
| 132 | 133 |
| 133 } // namespace blink | 134 } // namespace blink |
| 134 | 135 |
| 135 #endif // PointerEventFactory_h | 136 #endif // PointerEventFactory_h |
| OLD | NEW |