| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "ui/events/blink/input_handler_proxy.h" | 5 #include "ui/events/blink/input_handler_proxy.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 | 10 |
| 11 #include "base/auto_reset.h" | 11 #include "base/auto_reset.h" |
| 12 #include "base/command_line.h" | 12 #include "base/command_line.h" |
| 13 #include "base/location.h" | 13 #include "base/location.h" |
| 14 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/metrics/histogram.h" | 15 #include "base/metrics/histogram.h" |
| 16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
| 17 #include "base/thread_task_runner_handle.h" | 17 #include "base/thread_task_runner_handle.h" |
| 18 #include "base/trace_event/trace_event.h" | 18 #include "base/trace_event/trace_event.h" |
| 19 #include "cc/input/main_thread_scrolling_reason.h" | 19 #include "cc/input/main_thread_scrolling_reason.h" |
| 20 #include "third_party/WebKit/public/web/WebInputEvent.h" | 20 #include "third_party/WebKit/public/web/WebInputEvent.h" |
| 21 #include "ui/events/blink/input_handler_proxy_client.h" | 21 #include "ui/events/blink/input_handler_proxy_client.h" |
| 22 #include "ui/events/blink/input_scroll_elasticity_controller.h" | 22 #include "ui/events/blink/input_scroll_elasticity_controller.h" |
| 23 #include "ui/events/latency_info.h" |
| 23 #include "ui/gfx/geometry/point_conversions.h" | 24 #include "ui/gfx/geometry/point_conversions.h" |
| 24 #include "ui/latency_info/latency_info.h" | |
| 25 | 25 |
| 26 using blink::WebFloatPoint; | 26 using blink::WebFloatPoint; |
| 27 using blink::WebFloatSize; | 27 using blink::WebFloatSize; |
| 28 using blink::WebGestureEvent; | 28 using blink::WebGestureEvent; |
| 29 using blink::WebInputEvent; | 29 using blink::WebInputEvent; |
| 30 using blink::WebMouseEvent; | 30 using blink::WebMouseEvent; |
| 31 using blink::WebMouseWheelEvent; | 31 using blink::WebMouseWheelEvent; |
| 32 using blink::WebPoint; | 32 using blink::WebPoint; |
| 33 using blink::WebTouchEvent; | 33 using blink::WebTouchEvent; |
| 34 using blink::WebTouchPoint; | 34 using blink::WebTouchPoint; |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1345 // is made asynchronously, to minimize divergence between main thread and | 1345 // is made asynchronously, to minimize divergence between main thread and |
| 1346 // impl thread event handling paths. | 1346 // impl thread event handling paths. |
| 1347 base::ThreadTaskRunnerHandle::Get()->PostTask( | 1347 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 1348 FROM_HERE, | 1348 FROM_HERE, |
| 1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, | 1349 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, |
| 1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, | 1350 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, |
| 1351 scroll_result)); | 1351 scroll_result)); |
| 1352 } | 1352 } |
| 1353 | 1353 |
| 1354 } // namespace ui | 1354 } // namespace ui |
| OLD | NEW |