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_mouse_pointer.h" | 5 #include "content/browser/renderer_host/input/synthetic_mouse_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 28 matching lines...) Expand all Loading... |
39 } | 39 } |
40 | 40 |
41 void SyntheticMousePointer::Release(int index, | 41 void SyntheticMousePointer::Release(int index, |
42 SyntheticGestureTarget* target, | 42 SyntheticGestureTarget* target, |
43 const base::TimeTicks& timestamp) { | 43 const base::TimeTicks& timestamp) { |
44 mouse_event_ = SyntheticWebMouseEventBuilder::Build( | 44 mouse_event_ = SyntheticWebMouseEventBuilder::Build( |
45 blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y, 0); | 45 blink::WebInputEvent::MouseUp, mouse_event_.x, mouse_event_.y, 0); |
46 mouse_event_.clickCount = 1; | 46 mouse_event_.clickCount = 1; |
47 } | 47 } |
48 | 48 |
| 49 SyntheticGestureParams::GestureSourceType SyntheticMousePointer::SourceType() |
| 50 const { |
| 51 return SyntheticGestureParams::MOUSE_INPUT; |
| 52 } |
| 53 |
49 } // namespace content | 54 } // namespace content |
OLD | NEW |