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 "content/browser/renderer_host/input/input_router_impl.h" | 5 #include "content/browser/renderer_host/input/input_router_impl.h" |
6 | 6 |
7 #include <math.h> | 7 #include <math.h> |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <tuple> | 12 #include <tuple> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/command_line.h" | 15 #include "base/command_line.h" |
16 #include "base/location.h" | 16 #include "base/location.h" |
17 #include "base/macros.h" | 17 #include "base/macros.h" |
18 #include "base/memory/ptr_util.h" | 18 #include "base/memory/ptr_util.h" |
| 19 #include "base/message_loop/message_loop.h" |
19 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
20 #include "base/single_thread_task_runner.h" | 21 #include "base/single_thread_task_runner.h" |
21 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
22 #include "base/test/scoped_feature_list.h" | 23 #include "base/test/scoped_feature_list.h" |
23 #include "base/test/scoped_task_environment.h" | 24 #include "base/test/scoped_task_environment.h" |
24 #include "base/threading/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
25 #include "build/build_config.h" | 26 #include "build/build_config.h" |
26 #include "cc/input/touch_action.h" | 27 #include "cc/input/touch_action.h" |
27 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 28 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
28 #include "content/browser/renderer_host/input/input_router_client.h" | 29 #include "content/browser/renderer_host/input/input_router_client.h" |
(...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2500 EXPECT_EQ(80, sent_event->data.fling_start.velocity_y); | 2501 EXPECT_EQ(80, sent_event->data.fling_start.velocity_y); |
2501 | 2502 |
2502 const WebGestureEvent* filter_event = | 2503 const WebGestureEvent* filter_event = |
2503 GetFilterWebInputEvent<WebGestureEvent>(); | 2504 GetFilterWebInputEvent<WebGestureEvent>(); |
2504 TestLocationInFilterEvent(filter_event, orig); | 2505 TestLocationInFilterEvent(filter_event, orig); |
2505 EXPECT_EQ(30, filter_event->data.fling_start.velocity_x); | 2506 EXPECT_EQ(30, filter_event->data.fling_start.velocity_x); |
2506 EXPECT_EQ(40, filter_event->data.fling_start.velocity_y); | 2507 EXPECT_EQ(40, filter_event->data.fling_start.velocity_y); |
2507 } | 2508 } |
2508 | 2509 |
2509 } // namespace content | 2510 } // namespace content |
OLD | NEW |