| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "ui/events/blink/web_input_event_traits.h" | 5 #include "ui/events/blink/web_input_event_traits.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/strings/stringprintf.h" | 8 #include "base/strings/stringprintf.h" |
| 9 #include "third_party/WebKit/public/platform/WebGestureEvent.h" | 9 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 10 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
| 10 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" | 11 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
| 12 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 11 | 13 |
| 12 using base::StringAppendF; | 14 using base::StringAppendF; |
| 13 using base::SStringPrintf; | 15 using base::SStringPrintf; |
| 14 using blink::WebGestureEvent; | 16 using blink::WebGestureEvent; |
| 15 using blink::WebInputEvent; | 17 using blink::WebInputEvent; |
| 16 using blink::WebKeyboardEvent; | 18 using blink::WebKeyboardEvent; |
| 17 using blink::WebMouseEvent; | 19 using blink::WebMouseEvent; |
| 18 using blink::WebMouseWheelEvent; | 20 using blink::WebMouseWheelEvent; |
| 19 using blink::WebTouchEvent; | 21 using blink::WebTouchEvent; |
| 20 using blink::WebTouchPoint; | 22 using blink::WebTouchPoint; |
| (...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 245 source_event_type = SourceEventType::WHEEL; | 247 source_event_type = SourceEventType::WHEEL; |
| 246 } else if (event.sourceDevice == | 248 } else if (event.sourceDevice == |
| 247 blink::WebGestureDevice::WebGestureDeviceTouchscreen) { | 249 blink::WebGestureDevice::WebGestureDeviceTouchscreen) { |
| 248 source_event_type = SourceEventType::TOUCH; | 250 source_event_type = SourceEventType::TOUCH; |
| 249 } | 251 } |
| 250 LatencyInfo latency_info(source_event_type); | 252 LatencyInfo latency_info(source_event_type); |
| 251 return latency_info; | 253 return latency_info; |
| 252 } | 254 } |
| 253 | 255 |
| 254 } // namespace ui | 256 } // namespace ui |
| OLD | NEW |