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

Side by Side Diff: third_party/WebKit/Source/platform/PlatformGestureEvent.h

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 6 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 /* 1 /*
2 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 case GestureTwoFingerTap: 201 case GestureTwoFingerTap:
202 case GestureLongPress: 202 case GestureLongPress:
203 case GestureLongTap: 203 case GestureLongTap:
204 return false; 204 return false;
205 default: 205 default:
206 ASSERT_NOT_REACHED(); 206 ASSERT_NOT_REACHED();
207 return false; 207 return false;
208 } 208 }
209 } 209 }
210 210
211 uint32_t uniqueTouchEventId() const { return m_uniqueTouchEventId; }
212
211 protected: 213 protected:
212 IntPoint m_position; 214 IntPoint m_position;
213 IntPoint m_globalPosition; 215 IntPoint m_globalPosition;
214 IntSize m_area; 216 IntSize m_area;
215 PlatformGestureSource m_source; 217 PlatformGestureSource m_source;
216 218
217 union { 219 union {
218 struct { 220 struct {
219 int m_tapCount; 221 int m_tapCount;
220 } m_tap; 222 } m_tap;
221 223
222 struct { 224 struct {
223 // |m_deltaX| and |m_deltaY| represent deltas in GSU but 225 // |m_deltaX| and |m_deltaY| represent deltas in GSU but
224 // are only hints in GSB. 226 // are only hints in GSB.
225 float m_deltaX; 227 float m_deltaX;
226 float m_deltaY; 228 float m_deltaY;
227 float m_velocityX; 229 float m_velocityX;
228 float m_velocityY; 230 float m_velocityY;
229 int m_preventPropagation; 231 int m_preventPropagation;
230 ScrollInertialPhase m_inertialPhase; 232 ScrollInertialPhase m_inertialPhase;
231 ScrollGranularity m_deltaUnits; 233 ScrollGranularity m_deltaUnits;
232 int m_resendingPluginId; 234 int m_resendingPluginId;
233 bool m_synthetic; 235 bool m_synthetic;
234 } m_scroll; 236 } m_scroll;
235 237
236 struct { 238 struct {
237 float m_scale; 239 float m_scale;
238 } m_pinchUpdate; 240 } m_pinchUpdate;
239 } m_data; 241 } m_data;
242
243 uint32_t m_uniqueTouchEventId;
240 }; 244 };
241 245
242 } // namespace blink 246 } // namespace blink
243 247
244 #endif // PlatformGestureEvent_h 248 #endif // PlatformGestureEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/input/TouchEventManager.cpp ('k') | third_party/WebKit/Source/platform/PlatformTouchEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698