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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 | 160 |
161 MOCK_CONST_METHOD1( | 161 MOCK_CONST_METHOD1( |
162 GetEventListenerProperties, | 162 GetEventListenerProperties, |
163 cc::EventListenerProperties(cc::EventListenerClass event_class)); | 163 cc::EventListenerProperties(cc::EventListenerClass event_class)); |
164 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); | 164 MOCK_METHOD1(DoTouchEventsBlockScrollAt, bool(const gfx::Point& point)); |
165 | 165 |
166 MOCK_METHOD0(RequestUpdateForSynchronousInputHandler, void()); | 166 MOCK_METHOD0(RequestUpdateForSynchronousInputHandler, void()); |
167 MOCK_METHOD1(SetSynchronousInputHandlerRootScrollOffset, | 167 MOCK_METHOD1(SetSynchronousInputHandlerRootScrollOffset, |
168 void(const gfx::ScrollOffset& root_offset)); | 168 void(const gfx::ScrollOffset& root_offset)); |
169 | 169 |
170 bool IsCurrentlyScrollingInnerViewport() const override { | 170 bool IsCurrentlyScrollingViewport() const override { |
171 return is_scrolling_root_; | 171 return is_scrolling_root_; |
172 } | 172 } |
173 void set_is_scrolling_root(bool is) { is_scrolling_root_ = is; } | 173 void set_is_scrolling_root(bool is) { is_scrolling_root_ = is; } |
174 | 174 |
175 private: | 175 private: |
176 bool is_scrolling_root_ = true; | 176 bool is_scrolling_root_ = true; |
177 DISALLOW_COPY_AND_ASSIGN(MockInputHandler); | 177 DISALLOW_COPY_AND_ASSIGN(MockInputHandler); |
178 }; | 178 }; |
179 | 179 |
180 class MockSynchronousInputHandler : public SynchronousInputHandler { | 180 class MockSynchronousInputHandler : public SynchronousInputHandler { |
(...skipping 2633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2814 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), | 2814 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), |
2815 base::Bucket(5, 1), base::Bucket(14, 1))); | 2815 base::Bucket(5, 1), base::Bucket(14, 1))); |
2816 } | 2816 } |
2817 | 2817 |
2818 | 2818 |
2819 INSTANTIATE_TEST_CASE_P(AnimateInput, | 2819 INSTANTIATE_TEST_CASE_P(AnimateInput, |
2820 InputHandlerProxyTest, | 2820 InputHandlerProxyTest, |
2821 testing::ValuesIn(test_types)); | 2821 testing::ValuesIn(test_types)); |
2822 } // namespace test | 2822 } // namespace test |
2823 } // namespace ui | 2823 } // namespace ui |
OLD | NEW |