OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/renderer/gpu/input_handler_proxy.h" | 5 #include "content/renderer/gpu/input_handler_proxy.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "content/renderer/gpu/input_handler_proxy_client.h" | 10 #include "content/renderer/gpu/input_handler_proxy_client.h" |
11 #include "third_party/WebKit/public/platform/Platform.h" | 11 #include "third_party/WebKit/public/platform/Platform.h" |
12 #include "third_party/WebKit/public/web/WebInputEvent.h" | 12 #include "third_party/WebKit/public/web/WebInputEvent.h" |
13 #include "ui/base/latency_info.h" | 13 #include "ui/events/latency_info.h" |
14 | 14 |
15 using WebKit::WebFloatPoint; | 15 using WebKit::WebFloatPoint; |
16 using WebKit::WebFloatSize; | 16 using WebKit::WebFloatSize; |
17 using WebKit::WebGestureEvent; | 17 using WebKit::WebGestureEvent; |
18 using WebKit::WebInputEvent; | 18 using WebKit::WebInputEvent; |
19 using WebKit::WebMouseWheelEvent; | 19 using WebKit::WebMouseWheelEvent; |
20 using WebKit::WebPoint; | 20 using WebKit::WebPoint; |
21 using WebKit::WebTouchEvent; | 21 using WebKit::WebTouchEvent; |
22 | 22 |
23 namespace { | 23 namespace { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 TRACE_EVENT2("renderer", | 447 TRACE_EVENT2("renderer", |
448 "InputHandlerProxy::notifyCurrentFlingVelocity", | 448 "InputHandlerProxy::notifyCurrentFlingVelocity", |
449 "vx", | 449 "vx", |
450 velocity.width, | 450 velocity.width, |
451 "vy", | 451 "vy", |
452 velocity.height); | 452 velocity.height); |
453 input_handler_->NotifyCurrentFlingVelocity(ToClientScrollIncrement(velocity)); | 453 input_handler_->NotifyCurrentFlingVelocity(ToClientScrollIncrement(velocity)); |
454 } | 454 } |
455 | 455 |
456 } // namespace content | 456 } // namespace content |
OLD | NEW |