| 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" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; | 65 virtual scoped_ptr<MotionEvent> Cancel() const OVERRIDE; |
| 66 | 66 |
| 67 // Utility methods. | 67 // Utility methods. |
| 68 void SetId(int new_id); | 68 void SetId(int new_id); |
| 69 void SetTime(base::TimeTicks new_time); | 69 void SetTime(base::TimeTicks new_time); |
| 70 void PressPoint(float x, float y); | 70 void PressPoint(float x, float y); |
| 71 void MovePoint(size_t index, float x, float y); | 71 void MovePoint(size_t index, float x, float y); |
| 72 void ReleasePoint(); | 72 void ReleasePoint(); |
| 73 void CancelPoint(); | 73 void CancelPoint(); |
| 74 void SetTouchMajor(float new_touch_major); | 74 void SetTouchMajor(float new_touch_major); |
| 75 void SetRawOffset(float raw_offset_x, float raw_offset_y); |
| 75 | 76 |
| 76 MotionEvent::Action action; | 77 MotionEvent::Action action; |
| 77 size_t pointer_count; | 78 size_t pointer_count; |
| 78 gfx::PointF points[MAX_POINTERS]; | 79 gfx::PointF points[MAX_POINTERS]; |
| 80 gfx::Vector2dF raw_offset; |
| 79 base::TimeTicks time; | 81 base::TimeTicks time; |
| 80 float touch_major; | 82 float touch_major; |
| 81 int id; | 83 int id; |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace ui | 86 } // namespace ui |
| OLD | NEW |