| 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 <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| 11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "base/test/histogram_tester.h" | 12 #include "base/test/histogram_tester.h" |
| 13 #include "base/test/scoped_feature_list.h" | 13 #include "base/test/scoped_feature_list.h" |
| 14 #include "base/test/simple_test_tick_clock.h" | 14 #include "base/test/simple_test_tick_clock.h" |
| 15 #include "cc/input/main_thread_scrolling_reason.h" | 15 #include "cc/input/main_thread_scrolling_reason.h" |
| 16 #include "cc/trees/swap_promise_monitor.h" | 16 #include "cc/trees/swap_promise_monitor.h" |
| 17 #include "testing/gmock/include/gmock/gmock.h" | 17 #include "testing/gmock/include/gmock/gmock.h" |
| 18 #include "testing/gtest/include/gtest/gtest.h" | 18 #include "testing/gtest/include/gtest/gtest.h" |
| 19 #include "third_party/WebKit/public/platform/WebFloatPoint.h" | 19 #include "third_party/WebKit/public/platform/WebFloatPoint.h" |
| 20 #include "third_party/WebKit/public/platform/WebFloatSize.h" | 20 #include "third_party/WebKit/public/platform/WebFloatSize.h" |
| 21 #include "third_party/WebKit/public/platform/WebGestureCurve.h" | 21 #include "third_party/WebKit/public/platform/WebGestureCurve.h" |
| 22 #include "third_party/WebKit/public/platform/WebInputEvent.h" | 22 #include "third_party/WebKit/public/platform/WebInputEvent.h" |
| 23 #include "third_party/WebKit/public/platform/WebKeyboardEvent.h" |
| 23 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" | 24 #include "third_party/WebKit/public/platform/WebMouseWheelEvent.h" |
| 24 #include "third_party/WebKit/public/platform/WebPoint.h" | 25 #include "third_party/WebKit/public/platform/WebPoint.h" |
| 26 #include "third_party/WebKit/public/platform/WebTouchEvent.h" |
| 25 #include "ui/events/blink/blink_event_util.h" | 27 #include "ui/events/blink/blink_event_util.h" |
| 26 #include "ui/events/blink/compositor_thread_event_queue.h" | 28 #include "ui/events/blink/compositor_thread_event_queue.h" |
| 27 #include "ui/events/blink/did_overscroll_params.h" | 29 #include "ui/events/blink/did_overscroll_params.h" |
| 28 #include "ui/events/blink/event_with_callback.h" | 30 #include "ui/events/blink/event_with_callback.h" |
| 29 #include "ui/events/blink/input_handler_proxy_client.h" | 31 #include "ui/events/blink/input_handler_proxy_client.h" |
| 30 #include "ui/events/blink/web_input_event_traits.h" | 32 #include "ui/events/blink/web_input_event_traits.h" |
| 31 #include "ui/events/latency_info.h" | 33 #include "ui/events/latency_info.h" |
| 32 #include "ui/gfx/geometry/scroll_offset.h" | 34 #include "ui/gfx/geometry/scroll_offset.h" |
| 33 #include "ui/gfx/geometry/size_f.h" | 35 #include "ui/gfx/geometry/size_f.h" |
| 34 | 36 |
| (...skipping 3203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3238 EXPECT_EQ(WebInputEvent::GesturePinchEnd, event_queue()[6]->event().type()); | 3240 EXPECT_EQ(WebInputEvent::GesturePinchEnd, event_queue()[6]->event().type()); |
| 3239 testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); | 3241 testing::Mock::VerifyAndClearExpectations(&mock_input_handler_); |
| 3240 } | 3242 } |
| 3241 | 3243 |
| 3242 INSTANTIATE_TEST_CASE_P(AnimateInput, | 3244 INSTANTIATE_TEST_CASE_P(AnimateInput, |
| 3243 InputHandlerProxyTest, | 3245 InputHandlerProxyTest, |
| 3244 testing::ValuesIn(test_types)); | 3246 testing::ValuesIn(test_types)); |
| 3245 | 3247 |
| 3246 } // namespace test | 3248 } // namespace test |
| 3247 } // namespace ui | 3249 } // namespace ui |
| OLD | NEW |