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_macros.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/platform/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" |
(...skipping 1303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1329 // is made asynchronously, to minimize divergence between main thread and | 1329 // is made asynchronously, to minimize divergence between main thread and |
1330 // impl thread event handling paths. | 1330 // impl thread event handling paths. |
1331 base::ThreadTaskRunnerHandle::Get()->PostTask( | 1331 base::ThreadTaskRunnerHandle::Get()->PostTask( |
1332 FROM_HERE, | 1332 FROM_HERE, |
1333 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, | 1333 base::Bind(&InputScrollElasticityController::ObserveGestureEventAndResult, |
1334 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, | 1334 scroll_elasticity_controller_->GetWeakPtr(), gesture_event, |
1335 scroll_result)); | 1335 scroll_result)); |
1336 } | 1336 } |
1337 | 1337 |
1338 } // namespace ui | 1338 } // namespace ui |
OLD | NEW |