Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(796)

Side by Side Diff: ui/events/blink/input_handler_proxy_unittest.cc

Issue 2194833002: Overscroll and Elasticity for views::ScrollView Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-RouteThroughInputHandler
Patch Set: Restore functionality and fix bugs \o/ Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 base::TimeDelta)); 129 base::TimeDelta));
130 MOCK_METHOD1(ScrollBy, cc::InputHandlerScrollResult(cc::ScrollState*)); 130 MOCK_METHOD1(ScrollBy, cc::InputHandlerScrollResult(cc::ScrollState*));
131 MOCK_METHOD1(ScrollEnd, void(cc::ScrollState*)); 131 MOCK_METHOD1(ScrollEnd, void(cc::ScrollState*));
132 MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus()); 132 MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus());
133 133
134 std::unique_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 134 std::unique_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
135 ui::LatencyInfo* latency) override { 135 ui::LatencyInfo* latency) override {
136 return nullptr; 136 return nullptr;
137 } 137 }
138 138
139 cc::ScrollElasticityHelper* CreateScrollElasticityHelper() override { 139 cc::ScrollElasticityHelper* CreateRootScrollElasticityHelper() override {
140 return NULL; 140 return nullptr;
141 }
142 base::WeakPtr<cc::ScrollElasticityHelper>
143 ScrollElasticityHelperForScrollingLayer() override {
144 return nullptr;
141 } 145 }
142 bool GetScrollOffsetForLayer(int layer_id, 146 bool GetScrollOffsetForLayer(int layer_id,
143 gfx::ScrollOffset* offset) override { 147 gfx::ScrollOffset* offset) override {
144 return false; 148 return false;
145 } 149 }
146 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override { 150 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override {
147 return false; 151 return false;
148 } 152 }
149 153
150 void BindToClient(cc::InputHandlerClient* client) override {} 154 void BindToClient(cc::InputHandlerClient* client) override {}
(...skipping 2664 matching lines...) Expand 10 before | Expand all | Expand 10 after
2815 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), 2819 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1),
2816 base::Bucket(5, 1), base::Bucket(14, 1))); 2820 base::Bucket(5, 1), base::Bucket(14, 1)));
2817 } 2821 }
2818 2822
2819 2823
2820 INSTANTIATE_TEST_CASE_P(AnimateInput, 2824 INSTANTIATE_TEST_CASE_P(AnimateInput,
2821 InputHandlerProxyTest, 2825 InputHandlerProxyTest,
2822 testing::ValuesIn(test_types)); 2826 testing::ValuesIn(test_types));
2823 } // namespace test 2827 } // namespace test
2824 } // namespace ui 2828 } // namespace ui
OLDNEW
« no previous file with comments | « ui/events/blink/input_handler_proxy.cc ('k') | ui/events/blink/input_scroll_elasticity_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698