| 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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 bool GetScrollOffsetForLayer(int layer_id, | 130 bool GetScrollOffsetForLayer(int layer_id, |
| 131 gfx::ScrollOffset* offset) override { | 131 gfx::ScrollOffset* offset) override { |
| 132 return false; | 132 return false; |
| 133 } | 133 } |
| 134 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { | 134 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { |
| 135 return false; | 135 return false; |
| 136 } | 136 } |
| 137 | 137 |
| 138 void BindToClient(cc::InputHandlerClient* client) override {} | 138 void BindToClient(cc::InputHandlerClient* client) override {} |
| 139 | 139 |
| 140 void MouseDownAt(const gfx::Point& viewport_point) override {} |
| 141 void MouseUp() override {} |
| 142 |
| 140 void MouseMoveAt(const gfx::Point& mouse_position) override {} | 143 void MouseMoveAt(const gfx::Point& mouse_position) override {} |
| 141 | 144 |
| 142 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, | 145 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, |
| 143 bool(const gfx::Point& point, | 146 bool(const gfx::Point& point, |
| 144 cc::InputHandler::ScrollInputType type)); | 147 cc::InputHandler::ScrollInputType type)); |
| 145 | 148 |
| 146 MOCK_CONST_METHOD1( | 149 MOCK_CONST_METHOD1( |
| 147 GetEventListenerProperties, | 150 GetEventListenerProperties, |
| 148 cc::EventListenerProperties(cc::EventListenerClass event_class)); | 151 cc::EventListenerProperties(cc::EventListenerClass event_class)); |
| 149 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); | 152 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); |
| (...skipping 2653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2803 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), | 2806 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), |
| 2804 base::Bucket(5, 1), base::Bucket(14, 1))); | 2807 base::Bucket(5, 1), base::Bucket(14, 1))); |
| 2805 } | 2808 } |
| 2806 | 2809 |
| 2807 | 2810 |
| 2808 INSTANTIATE_TEST_CASE_P(AnimateInput, | 2811 INSTANTIATE_TEST_CASE_P(AnimateInput, |
| 2809 InputHandlerProxyTest, | 2812 InputHandlerProxyTest, |
| 2810 testing::ValuesIn(test_types)); | 2813 testing::ValuesIn(test_types)); |
| 2811 } // namespace test | 2814 } // namespace test |
| 2812 } // namespace ui | 2815 } // namespace ui |
| OLD | NEW |