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

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

Issue 1964523002: Fix clientX/Y properties of touch pointer events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix zoom problem Created 4 years, 7 months 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 19 matching lines...) Expand all
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698