Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(261)

Side by Side Diff: third_party/WebKit/Source/core/events/PointerEventFactory.h

Issue 2510133002: Add getCoalescedEvents API to PointerEvent (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 PlatformMouseEvent&,
34 const Vector<PlatformMouseEvent>&,
34 LocalDOMWindow*); 35 LocalDOMWindow*);
35 36
36 PointerEvent* create(const AtomicString& type, 37 PointerEvent* create(const PlatformTouchPoint&,
37 const PlatformTouchPoint&, 38 const Vector<PlatformTouchPoint>&,
38 PlatformEvent::Modifiers, 39 PlatformEvent::Modifiers,
39 const FloatSize& pointRadius, 40 LocalFrame*,
40 const FloatPoint& clientPoint,
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
50 // For creating boundary events (i.e pointerout/leave/over/enter) 50 // For creating boundary events (i.e pointerout/leave/over/enter)
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PointerEvent.idl ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698