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 | 12 |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/single_thread_task_runner.h" | 16 #include "base/single_thread_task_runner.h" |
17 #include "base/strings/utf_string_conversions.h" | 17 #include "base/strings/utf_string_conversions.h" |
18 #include "base/thread_task_runner_handle.h" | 18 #include "base/threading/thread_task_runner_handle.h" |
19 #include "build/build_config.h" | 19 #include "build/build_config.h" |
20 #include "content/browser/renderer_host/input/gesture_event_queue.h" | 20 #include "content/browser/renderer_host/input/gesture_event_queue.h" |
21 #include "content/browser/renderer_host/input/input_router_client.h" | 21 #include "content/browser/renderer_host/input/input_router_client.h" |
22 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" | 22 #include "content/browser/renderer_host/input/mock_input_ack_handler.h" |
23 #include "content/browser/renderer_host/input/mock_input_router_client.h" | 23 #include "content/browser/renderer_host/input/mock_input_router_client.h" |
24 #include "content/common/content_constants_internal.h" | 24 #include "content/common/content_constants_internal.h" |
25 #include "content/common/edit_command.h" | 25 #include "content/common/edit_command.h" |
26 #include "content/common/input/synthetic_web_input_event_builders.h" | 26 #include "content/common/input/synthetic_web_input_event_builders.h" |
27 #include "content/common/input/touch_action.h" | 27 #include "content/common/input/touch_action.h" |
28 #include "content/common/input/web_input_event_traits.h" | 28 #include "content/common/input/web_input_event_traits.h" |
(...skipping 2297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2326 EXPECT_EQ(80, sent_event->data.flingStart.velocityY); | 2326 EXPECT_EQ(80, sent_event->data.flingStart.velocityY); |
2327 | 2327 |
2328 const WebGestureEvent* filter_event = | 2328 const WebGestureEvent* filter_event = |
2329 GetFilterWebInputEvent<WebGestureEvent>(); | 2329 GetFilterWebInputEvent<WebGestureEvent>(); |
2330 TestLocationInFilterEvent(filter_event, orig); | 2330 TestLocationInFilterEvent(filter_event, orig); |
2331 EXPECT_EQ(30, filter_event->data.flingStart.velocityX); | 2331 EXPECT_EQ(30, filter_event->data.flingStart.velocityX); |
2332 EXPECT_EQ(40, filter_event->data.flingStart.velocityY); | 2332 EXPECT_EQ(40, filter_event->data.flingStart.velocityY); |
2333 } | 2333 } |
2334 | 2334 |
2335 } // namespace content | 2335 } // namespace content |
OLD | NEW |