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

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

Issue 2188133002: Scroll with Layers in views::ScrollView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160728-MacViews-ScrollTrack
Patch Set: bugref, scale_delta DCHECK + comment Created 4 years, 4 months 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
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus()); 119 MOCK_METHOD0(FlingScrollBegin, cc::InputHandler::ScrollStatus());
120 120
121 std::unique_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 121 std::unique_ptr<cc::SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
122 ui::LatencyInfo* latency) override { 122 ui::LatencyInfo* latency) override {
123 return std::unique_ptr<cc::SwapPromiseMonitor>(); 123 return std::unique_ptr<cc::SwapPromiseMonitor>();
124 } 124 }
125 125
126 cc::ScrollElasticityHelper* CreateScrollElasticityHelper() override { 126 cc::ScrollElasticityHelper* CreateScrollElasticityHelper() override {
127 return NULL; 127 return NULL;
128 } 128 }
129 bool GetScrollOffsetForLayer(int layer_id,
130 gfx::ScrollOffset* offset) override {
131 return false;
132 }
133 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override {
134 return false;
135 }
129 136
130 void BindToClient(cc::InputHandlerClient* client) override {} 137 void BindToClient(cc::InputHandlerClient* client) override {}
131 138
132 void MouseMoveAt(const gfx::Point& mouse_position) override {} 139 void MouseMoveAt(const gfx::Point& mouse_position) override {}
133 140
134 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt, 141 MOCK_CONST_METHOD2(IsCurrentlyScrollingLayerAt,
135 bool(const gfx::Point& point, 142 bool(const gfx::Point& point,
136 cc::InputHandler::ScrollInputType type)); 143 cc::InputHandler::ScrollInputType type));
137 144
138 MOCK_CONST_METHOD1( 145 MOCK_CONST_METHOD1(
(...skipping 2641 matching lines...) Expand 10 before | Expand all | Expand 10 after
2780 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1), 2787 testing::ElementsAre(base::Bucket(1, 1), base::Bucket(3, 1),
2781 base::Bucket(5, 1), base::Bucket(14, 1))); 2788 base::Bucket(5, 1), base::Bucket(14, 1)));
2782 } 2789 }
2783 2790
2784 2791
2785 INSTANTIATE_TEST_CASE_P(AnimateInput, 2792 INSTANTIATE_TEST_CASE_P(AnimateInput,
2786 InputHandlerProxyTest, 2793 InputHandlerProxyTest,
2787 testing::ValuesIn(test_types)); 2794 testing::ValuesIn(test_types));
2788 } // namespace test 2795 } // namespace test
2789 } // namespace ui 2796 } // namespace ui
OLDNEW
« no previous file with comments | « ui/compositor/layer.cc ('k') | ui/views/controls/scroll_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698