OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "content/browser/renderer_host/input/synthetic_touch_pointer.h" | 5 #include "content/browser/renderer_host/input/synthetic_touch_pointer.h" |
6 | 6 |
7 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 7 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
8 | 8 |
9 namespace content { | 9 namespace content { |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 const base::TimeTicks& timestamp) { | 36 const base::TimeTicks& timestamp) { |
37 touch_event_.MovePoint(index, x, y); | 37 touch_event_.MovePoint(index, x, y); |
38 } | 38 } |
39 | 39 |
40 void SyntheticTouchPointer::Release(int index, | 40 void SyntheticTouchPointer::Release(int index, |
41 SyntheticGestureTarget* target, | 41 SyntheticGestureTarget* target, |
42 const base::TimeTicks& timestamp) { | 42 const base::TimeTicks& timestamp) { |
43 touch_event_.ReleasePoint(index); | 43 touch_event_.ReleasePoint(index); |
44 } | 44 } |
45 | 45 |
| 46 SyntheticGestureParams::GestureSourceType SyntheticTouchPointer::SourceType() |
| 47 const { |
| 48 return SyntheticGestureParams::TOUCH_INPUT; |
| 49 } |
| 50 |
46 } // namespace content | 51 } // namespace content |
OLD | NEW |