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

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

Issue 212663010: Store the id of a contributing motion event in GestureEventData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update test. Created 6 years, 8 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 | Annotate | Revision Log
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 "base/time/time.h" 8 #include "base/time/time.h"
9 #include "ui/events/event_constants.h" 9 #include "ui/events/event_constants.h"
10 #include "ui/events/gesture_detection/gesture_detection_export.h" 10 #include "ui/events/gesture_detection/gesture_detection_export.h"
11 #include "ui/events/gesture_event_details.h" 11 #include "ui/events/gesture_event_details.h"
12 12
13 namespace ui { 13 namespace ui {
14 14
15 class GestureEventDataPacket; 15 class GestureEventDataPacket;
16 16
17 struct GESTURE_DETECTION_EXPORT GestureEventData { 17 struct GESTURE_DETECTION_EXPORT GestureEventData {
18 GestureEventData(EventType type, 18 GestureEventData(EventType type,
19 int motion_event_id,
19 base::TimeTicks time, 20 base::TimeTicks time,
20 float x, 21 float x,
21 float y, 22 float y,
22 const GestureEventDetails& details); 23 const GestureEventDetails& details);
23 24
24 GestureEventData(EventType type, 25 GestureEventData(EventType type,
26 int motion_event_id,
25 base::TimeTicks time, 27 base::TimeTicks time,
26 float x, 28 float x,
27 float y); 29 float y);
28 30
29 EventType type; 31 EventType type;
32 int motion_event_id;
30 base::TimeTicks time; 33 base::TimeTicks time;
31 float x; 34 float x;
32 float y; 35 float y;
33 36
34 GestureEventDetails details; 37 GestureEventDetails details;
35 38
36 private: 39 private:
37 friend class GestureEventDataPacket; 40 friend class GestureEventDataPacket;
38 41
39 // Initializes type to GESTURE_TYPE_INVALID. 42 // Initializes type to GESTURE_TYPE_INVALID.
40 GestureEventData(); 43 GestureEventData();
41 }; 44 };
42 45
43 } // namespace ui 46 } // namespace ui
44 47
45 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_ 48 #endif // UI_EVENTS_GESTURE_DETECTION_GESTURE_EVENT_DATA_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/motion_event_web.cc ('k') | ui/events/gesture_detection/gesture_event_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698