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

Side by Side Diff: ui/events/gesture_detection/gesture_event_data.h

Issue 1989623002: Suppressed MEs for gestures from cancelled PEs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Plumbed aura gestures, fixed unittests. 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 5 #ifndef UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_
6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 6 #define UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 10 matching lines...) Expand all
21 GestureEventData(const GestureEventDetails&, 21 GestureEventData(const GestureEventDetails&,
22 int motion_event_id, 22 int motion_event_id,
23 MotionEvent::ToolType primary_tool_type, 23 MotionEvent::ToolType primary_tool_type,
24 base::TimeTicks time, 24 base::TimeTicks time,
25 float x, 25 float x,
26 float y, 26 float y,
27 float raw_x, 27 float raw_x,
28 float raw_y, 28 float raw_y,
29 size_t touch_point_count, 29 size_t touch_point_count,
30 const gfx::RectF& bounding_box, 30 const gfx::RectF& bounding_box,
31 int flags); 31 int flags,
32 uint32_t unique_touch_event_id);
32 GestureEventData(EventType type, const GestureEventData&); 33 GestureEventData(EventType type, const GestureEventData&);
33 GestureEventData(const GestureEventData& other); 34 GestureEventData(const GestureEventData& other);
34 35
35 EventType type() const { return details.type(); } 36 EventType type() const { return details.type(); }
36 37
37 GestureEventDetails details; 38 GestureEventDetails details;
38 int motion_event_id; 39 int motion_event_id;
39 MotionEvent::ToolType primary_tool_type; 40 MotionEvent::ToolType primary_tool_type;
40 base::TimeTicks time; 41 base::TimeTicks time;
41 float x; 42 float x;
42 float y; 43 float y;
43 float raw_x; 44 float raw_x;
44 float raw_y; 45 float raw_y;
45 int flags; 46 int flags;
46 47
48 // This field gets a meaningful value right before sending the gesture event
49 // off to the renderer at TouchDispositionGestureFilter::SendGesture.
50 uint32_t unique_touch_event_id;
51
47 private: 52 private:
48 friend class GestureEventDataPacket; 53 friend class GestureEventDataPacket;
49 54
50 // Initializes type to GESTURE_TYPE_INVALID. 55 // Initializes type to GESTURE_TYPE_INVALID.
51 GestureEventData(); 56 GestureEventData();
52 }; 57 };
53 58
54 } // namespace ui 59 } // namespace ui
55 60
56 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 61 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698