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

Side by Side Diff: third_party/WebKit/public/platform/WebTouchEvent.h

Issue 2646163002: Remove PlatformTouchEvent/Point and use WebTouchEvent/Point instead (Closed)
Patch Set: Rebase Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 WebTouchEvent_h 5 #ifndef WebTouchEvent_h
6 #define WebTouchEvent_h 6 #define WebTouchEvent_h
7 7
8 #include "WebInputEvent.h" 8 #include "WebInputEvent.h"
9 9
10 namespace blink { 10 namespace blink {
(...skipping 30 matching lines...) Expand all
41 // A unique identifier for the touch event. Valid ids start at one and 41 // A unique identifier for the touch event. Valid ids start at one and
42 // increase monotonically. Zero means an unknown id. 42 // increase monotonically. Zero means an unknown id.
43 uint32_t uniqueTouchEventId; 43 uint32_t uniqueTouchEventId;
44 44
45 WebTouchEvent() 45 WebTouchEvent()
46 : WebInputEvent(sizeof(WebTouchEvent)), dispatchType(Blocking) {} 46 : WebInputEvent(sizeof(WebTouchEvent)), dispatchType(Blocking) {}
47 47
48 WebTouchEvent(Type type, int modifiers, double timeStampSeconds) 48 WebTouchEvent(Type type, int modifiers, double timeStampSeconds)
49 : WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds), 49 : WebInputEvent(sizeof(WebTouchEvent), type, modifiers, timeStampSeconds),
50 dispatchType(Blocking) {} 50 dispatchType(Blocking) {}
51
52 #if INSIDE_BLINK
53
54 // Sets any scaled values to be their computed values and sets |frameScale|
55 // back to 1 and |translateX|, |translateY| back to 0.
56 BLINK_PLATFORM_EXPORT WebTouchEvent flattenTransform() const;
57 BLINK_PLATFORM_EXPORT WebTouchPoint
Rick Byers 2017/01/27 17:27:59 nit: please add a comment describing the purpose o
dtapuska 2017/01/27 19:22:50 Done.
58 touchPointInRootFrame(unsigned touchPoint) const;
59
60 bool isCancelable() const { return dispatchType == Blocking; }
61 #endif
51 }; 62 };
52 63
53 #pragma pack(pop) 64 #pragma pack(pop)
54 65
55 } // namespace blink 66 } // namespace blink
56 67
57 #endif // WebTouchEvent_h 68 #endif // WebTouchEvent_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698