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

Side by Side Diff: cc/trees/layer_tree_host_impl.h

Issue 2106753004: Introduce bottom controls to CC and let it respond to scrolling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: findbug 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 | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <bitset> 10 #include <bitset>
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; 200 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override;
201 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( 201 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor(
202 ui::LatencyInfo* latency) override; 202 ui::LatencyInfo* latency) override;
203 ScrollElasticityHelper* CreateScrollElasticityHelper() override; 203 ScrollElasticityHelper* CreateScrollElasticityHelper() override;
204 bool GetScrollOffsetForLayer(int layer_id, 204 bool GetScrollOffsetForLayer(int layer_id,
205 gfx::ScrollOffset* offset) override; 205 gfx::ScrollOffset* offset) override;
206 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; 206 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override;
207 207
208 // TopControlsManagerClient implementation. 208 // TopControlsManagerClient implementation.
209 float TopControlsHeight() const override; 209 float TopControlsHeight() const override;
210 float BottomControlsHeight() const override;
210 void SetCurrentTopControlsShownRatio(float offset) override; 211 void SetCurrentTopControlsShownRatio(float offset) override;
211 float CurrentTopControlsShownRatio() const override; 212 float CurrentTopControlsShownRatio() const override;
212 void DidChangeTopControlsPosition() override; 213 void DidChangeTopControlsPosition() override;
213 bool HaveRootScrollLayer() const override; 214 bool HaveRootScrollLayer() const override;
214 215
215 void UpdateViewportContainerSizes(); 216 void UpdateViewportContainerSizes();
216 217
217 void set_resourceless_software_draw_for_testing() { 218 void set_resourceless_software_draw_for_testing() {
218 resourceless_software_draw_ = true; 219 resourceless_software_draw_ = true;
219 } 220 }
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
839 840
840 std::unique_ptr<PendingTreeDurationHistogramTimer> 841 std::unique_ptr<PendingTreeDurationHistogramTimer>
841 pending_tree_duration_timer_; 842 pending_tree_duration_timer_;
842 843
843 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 844 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
844 }; 845 };
845 846
846 } // namespace cc 847 } // namespace cc
847 848
848 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 849 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698