| 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/threading/thread_task_runner_handle.h" | 17 #include "base/threading/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/platform/WebInputEvent.h" |
| 21 #include "ui/events/blink/did_overscroll_params.h" | 21 #include "ui/events/blink/did_overscroll_params.h" |
| 22 #include "ui/events/blink/input_handler_proxy_client.h" | 22 #include "ui/events/blink/input_handler_proxy_client.h" |
| 23 #include "ui/events/blink/input_scroll_elasticity_controller.h" | 23 #include "ui/events/blink/input_scroll_elasticity_controller.h" |
| 24 #include "ui/events/latency_info.h" | 24 #include "ui/events/latency_info.h" |
| 25 #include "ui/gfx/geometry/point_conversions.h" | 25 #include "ui/gfx/geometry/point_conversions.h" |
| 26 | 26 |
| 27 using blink::WebFloatPoint; | 27 using blink::WebFloatPoint; |
| 28 using blink::WebFloatSize; | 28 using blink::WebFloatSize; |
| 29 using blink::WebGestureEvent; | 29 using blink::WebGestureEvent; |
| 30 using blink::WebInputEvent; | 30 using blink::WebInputEvent; |
| (...skipping 1310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1341 // is made asynchronously, to minimize divergence between main thread and | 1341 // is made asynchronously, to minimize divergence between main thread and |
| 1342 // impl thread event handling paths. | 1342 // impl thread event handling paths. |
| 1343 base::ThreadTaskRunnerHandle::Get()->PostTask( | 1343 base::ThreadTaskRunnerHandle::Get()->PostTask( |
| 1344 FROM_HERE, | 1344 FROM_HERE, |
| 1345 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, | 1345 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, |
| 1346 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, | 1346 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, |
| 1347 scroll_result)); | 1347 scroll_result)); |
| 1348 } | 1348 } |
| 1349 | 1349 |
| 1350 } // namespace ui | 1350 } // namespace ui |
| OLD | NEW |