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/macros.h" | 9 #include "base/macros.h" |
10 #include "base/test/histogram_tester.h" | 10 #include "base/test/histogram_tester.h" |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 return new FakeWebGestureCurve( | 248 return new FakeWebGestureCurve( |
249 blink::WebFloatSize(velocity.x, velocity.y), | 249 blink::WebFloatSize(velocity.x, velocity.y), |
250 blink::WebFloatSize(cumulative_scroll.width, cumulative_scroll.height)); | 250 blink::WebFloatSize(cumulative_scroll.width, cumulative_scroll.height)); |
251 } | 251 } |
252 | 252 |
253 MOCK_METHOD4(DidOverscroll, | 253 MOCK_METHOD4(DidOverscroll, |
254 void(const gfx::Vector2dF& accumulated_overscroll, | 254 void(const gfx::Vector2dF& accumulated_overscroll, |
255 const gfx::Vector2dF& latest_overscroll_delta, | 255 const gfx::Vector2dF& latest_overscroll_delta, |
256 const gfx::Vector2dF& current_fling_velocity, | 256 const gfx::Vector2dF& current_fling_velocity, |
257 const gfx::PointF& causal_event_viewport_point)); | 257 const gfx::PointF& causal_event_viewport_point)); |
258 void DidStartFlinging() override {} | |
259 void DidStopFlinging() override {} | 258 void DidStopFlinging() override {} |
260 void DidAnimateForInput() override {} | 259 void DidAnimateForInput() override {} |
261 | 260 |
262 private: | 261 private: |
263 DISALLOW_COPY_AND_ASSIGN(MockInputHandlerProxyClient); | 262 DISALLOW_COPY_AND_ASSIGN(MockInputHandlerProxyClient); |
264 }; | 263 }; |
265 | 264 |
266 class MockInputHandlerProxyClientWithDidAnimateForInput | 265 class MockInputHandlerProxyClientWithDidAnimateForInput |
267 : public MockInputHandlerProxyClient { | 266 : public MockInputHandlerProxyClient { |
268 public: | 267 public: |
(...skipping 2546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2815 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), | 2814 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), |
2816 base::Bucket(5, 1), base::Bucket(14, 1))); | 2815 base::Bucket(5, 1), base::Bucket(14, 1))); |
2817 } | 2816 } |
2818 | 2817 |
2819 | 2818 |
2820 INSTANTIATE_TEST_CASE_P(AnimateInput, | 2819 INSTANTIATE_TEST_CASE_P(AnimateInput, |
2821 InputHandlerProxyTest, | 2820 InputHandlerProxyTest, |
2822 testing::ValuesIn(test_types)); | 2821 testing::ValuesIn(test_types)); |
2823 } // namespace test | 2822 } // namespace test |
2824 } // namespace ui | 2823 } // namespace ui |
OLD | NEW |