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 "content/browser/renderer_host/input/gesture_event_packet.h" | 5 #include "content/browser/renderer_host/input/gesture_event_packet.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "ui/events/gesture_detection/motion_event.h" |
8 | 9 |
9 using blink::WebGestureEvent; | 10 using blink::WebGestureEvent; |
10 using blink::WebInputEvent; | 11 using blink::WebInputEvent; |
11 using blink::WebTouchEvent; | 12 using blink::WebTouchEvent; |
12 using blink::WebTouchPoint; | 13 using blink::WebTouchPoint; |
13 | 14 |
14 namespace content { | 15 namespace content { |
15 namespace { | 16 namespace { |
16 | 17 |
17 GestureEventPacket::GestureSource ToGestureSource(const WebTouchEvent& event) { | 18 GestureEventPacket::GestureSource ToGestureSource(const WebTouchEvent& event) { |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 65 } |
65 | 66 |
66 GestureEventPacket GestureEventPacket::FromTouchTimeout( | 67 GestureEventPacket GestureEventPacket::FromTouchTimeout( |
67 const WebGestureEvent& event) { | 68 const WebGestureEvent& event) { |
68 GestureEventPacket packet(TOUCH_TIMEOUT); | 69 GestureEventPacket packet(TOUCH_TIMEOUT); |
69 packet.Push(event); | 70 packet.Push(event); |
70 return packet; | 71 return packet; |
71 } | 72 } |
72 | 73 |
73 } // namespace content | 74 } // namespace content |
OLD | NEW |