OLD | NEW |
---|---|
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 #include <vector> | 5 #include <vector> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
9 #include "ui/events/gesture_detection/motion_event.h" | 9 #include "ui/events/gesture_detection/motion_event.h" |
10 #include "ui/gfx/geometry/point_f.h" | 10 #include "ui/gfx/geometry/point_f.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 struct MockMotionEvent : public MotionEvent { | 14 struct MockMotionEvent : public MotionEvent { |
15 enum { MAX_POINTERS = 3 }; | 15 enum { MAX_POINTERS = 4 }; |
jdduke (slow)
2014/05/29 16:25:40
Hmm, should we go back to 3 here?
tdresser
2014/05/30 14:05:37
Whoops, thanks.
| |
16 enum { TOUCH_MAJOR = 10 }; | 16 enum { TOUCH_MAJOR = 10 }; |
17 | 17 |
18 MockMotionEvent(); | 18 MockMotionEvent(); |
19 explicit MockMotionEvent(Action action); | 19 explicit MockMotionEvent(Action action); |
20 MockMotionEvent(Action action, base::TimeTicks time, float x, float y); | 20 MockMotionEvent(Action action, base::TimeTicks time, float x, float y); |
21 MockMotionEvent(Action action, | 21 MockMotionEvent(Action action, |
22 base::TimeTicks time, | 22 base::TimeTicks time, |
23 float x0, | 23 float x0, |
24 float y0, | 24 float y0, |
25 float x1, | 25 float x1, |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
70 void ReleasePoint(); | 70 void ReleasePoint(); |
71 void CancelPoint(); | 71 void CancelPoint(); |
72 MotionEvent::Action action; | 72 MotionEvent::Action action; |
73 size_t pointer_count; | 73 size_t pointer_count; |
74 gfx::PointF points[MAX_POINTERS]; | 74 gfx::PointF points[MAX_POINTERS]; |
75 base::TimeTicks time; | 75 base::TimeTicks time; |
76 int id; | 76 int id; |
77 }; | 77 }; |
78 | 78 |
79 } // namespace ui | 79 } // namespace ui |
OLD | NEW |