| 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" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 MOCK_METHOD1(DispatchNonBlockingEventToMainThread_, | 289 MOCK_METHOD1(DispatchNonBlockingEventToMainThread_, |
| 290 void(const WebInputEvent&)); | 290 void(const WebInputEvent&)); |
| 291 | 291 |
| 292 void DispatchNonBlockingEventToMainThread( | 292 void DispatchNonBlockingEventToMainThread( |
| 293 WebScopedInputEvent event, | 293 WebScopedInputEvent event, |
| 294 const ui::LatencyInfo& latency_info) override { | 294 const ui::LatencyInfo& latency_info) override { |
| 295 CHECK(event.get()); | 295 CHECK(event.get()); |
| 296 DispatchNonBlockingEventToMainThread_(*event.get()); | 296 DispatchNonBlockingEventToMainThread_(*event.get()); |
| 297 } | 297 } |
| 298 | 298 |
| 299 blink::WebGestureCurve* CreateFlingAnimationCurve( | 299 std::unique_ptr<blink::WebGestureCurve> CreateFlingAnimationCurve( |
| 300 WebGestureDevice deviceSource, | 300 WebGestureDevice deviceSource, |
| 301 const WebFloatPoint& velocity, | 301 const WebFloatPoint& velocity, |
| 302 const WebSize& cumulative_scroll) override { | 302 const WebSize& cumulative_scroll) override { |
| 303 return new FakeWebGestureCurve( | 303 return base::MakeUnique<FakeWebGestureCurve>( |
| 304 blink::WebFloatSize(velocity.x, velocity.y), | 304 blink::WebFloatSize(velocity.x, velocity.y), |
| 305 blink::WebFloatSize(cumulative_scroll.width, cumulative_scroll.height)); | 305 blink::WebFloatSize(cumulative_scroll.width, cumulative_scroll.height)); |
| 306 } | 306 } |
| 307 | 307 |
| 308 MOCK_METHOD4(DidOverscroll, | 308 MOCK_METHOD4(DidOverscroll, |
| 309 void(const gfx::Vector2dF& accumulated_overscroll, | 309 void(const gfx::Vector2dF& accumulated_overscroll, |
| 310 const gfx::Vector2dF& latest_overscroll_delta, | 310 const gfx::Vector2dF& latest_overscroll_delta, |
| 311 const gfx::Vector2dF& current_fling_velocity, | 311 const gfx::Vector2dF& current_fling_velocity, |
| 312 const gfx::PointF& causal_event_viewport_point)); | 312 const gfx::PointF& causal_event_viewport_point)); |
| 313 void DidStopFlinging() override {} | 313 void DidStopFlinging() override {} |
| (...skipping 3504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 INSTANTIATE_TEST_CASE_P(AnimateInput, | 3818 INSTANTIATE_TEST_CASE_P(AnimateInput, |
| 3819 InputHandlerProxyWithoutWheelScrollLatchingTest, | 3819 InputHandlerProxyWithoutWheelScrollLatchingTest, |
| 3820 testing::ValuesIn(test_types)); | 3820 testing::ValuesIn(test_types)); |
| 3821 | 3821 |
| 3822 INSTANTIATE_TEST_CASE_P(InputHandlerProxyEventQueueTests, | 3822 INSTANTIATE_TEST_CASE_P(InputHandlerProxyEventQueueTests, |
| 3823 InputHandlerProxyEventQueueTest, | 3823 InputHandlerProxyEventQueueTest, |
| 3824 testing::Bool()); | 3824 testing::Bool()); |
| 3825 | 3825 |
| 3826 } // namespace test | 3826 } // namespace test |
| 3827 } // namespace ui | 3827 } // namespace ui |
| OLD | NEW |