| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 bool GetScrollOffsetForLayer(int layer_id, | 145 bool GetScrollOffsetForLayer(int layer_id, |
| 146 gfx::ScrollOffset* offset) override { | 146 gfx::ScrollOffset* offset) override { |
| 147 return false; | 147 return false; |
| 148 } | 148 } |
| 149 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { | 149 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { |
| 150 return false; | 150 return false; |
| 151 } | 151 } |
| 152 | 152 |
| 153 void BindToClient(cc::InputHandlerClient* client) override {} | 153 void BindToClient(cc::InputHandlerClient* client) override {} |
| 154 | 154 |
| 155 void MouseDownAt(const gfx::Point& viewport_point) override {} |
| 156 void MouseUp() override {} |
| 157 |
| 155 void MouseMoveAt(const gfx::Point& mouse_position) override {} | 158 void MouseMoveAt(const gfx::Point& mouse_position) override {} |
| 156 | 159 |
| 157 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, | 160 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, |
| 158 bool(const gfx::Point& point, | 161 bool(const gfx::Point& point, |
| 159 cc::InputHandler::ScrollInputType type)); | 162 cc::InputHandler::ScrollInputType type)); |
| 160 | 163 |
| 161 MOCK_CONST_METHOD1( | 164 MOCK_CONST_METHOD1( |
| 162 GetEventListenerProperties, | 165 GetEventListenerProperties, |
| 163 cc::EventListenerProperties(cc::EventListenerClass event_class)); | 166 cc::EventListenerProperties(cc::EventListenerClass event_class)); |
| 164 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); | 167 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); |
| (...skipping 2649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2814 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), | 2817 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), |
| 2815 base::Bucket(5, 1), base::Bucket(14, 1))); | 2818 base::Bucket(5, 1), base::Bucket(14, 1))); |
| 2816 } | 2819 } |
| 2817 | 2820 |
| 2818 | 2821 |
| 2819 INSTANTIATE_TEST_CASE_P(AnimateInput, | 2822 INSTANTIATE_TEST_CASE_P(AnimateInput, |
| 2820 InputHandlerProxyTest, | 2823 InputHandlerProxyTest, |
| 2821 testing::ValuesIn(test_types)); | 2824 testing::ValuesIn(test_types)); |
| 2822 } // namespace test | 2825 } // namespace test |
| 2823 } // namespace ui | 2826 } // namespace ui |
| OLD | NEW |