OLD | NEW |
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 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; | 201 bool DoTouchEventsBlockScrollAt(const gfx::Point& viewport_port) override; |
202 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( | 202 std::unique_ptr<SwapPromiseMonitor> CreateLatencyInfoSwapPromiseMonitor( |
203 ui::LatencyInfo* latency) override; | 203 ui::LatencyInfo* latency) override; |
204 ScrollElasticityHelper* CreateScrollElasticityHelper() override; | 204 ScrollElasticityHelper* CreateScrollElasticityHelper() override; |
205 bool GetScrollOffsetForLayer(int layer_id, | 205 bool GetScrollOffsetForLayer(int layer_id, |
206 gfx::ScrollOffset* offset) override; | 206 gfx::ScrollOffset* offset) override; |
207 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; | 207 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; |
208 | 208 |
209 // TopControlsManagerClient implementation. | 209 // TopControlsManagerClient implementation. |
210 float TopControlsHeight() const override; | 210 float TopControlsHeight() const override; |
| 211 float BottomControlsHeight() const override; |
211 void SetCurrentTopControlsShownRatio(float offset) override; | 212 void SetCurrentTopControlsShownRatio(float offset) override; |
212 float CurrentTopControlsShownRatio() const override; | 213 float CurrentTopControlsShownRatio() const override; |
213 void DidChangeTopControlsPosition() override; | 214 void DidChangeTopControlsPosition() override; |
214 bool HaveRootScrollLayer() const override; | 215 bool HaveRootScrollLayer() const override; |
215 | 216 |
216 void UpdateViewportContainerSizes(); | 217 void UpdateViewportContainerSizes(); |
217 | 218 |
218 void set_resourceless_software_draw_for_testing() { | 219 void set_resourceless_software_draw_for_testing() { |
219 resourceless_software_draw_ = true; | 220 resourceless_software_draw_ = true; |
220 } | 221 } |
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
847 | 848 |
848 std::unique_ptr<PendingTreeDurationHistogramTimer> | 849 std::unique_ptr<PendingTreeDurationHistogramTimer> |
849 pending_tree_duration_timer_; | 850 pending_tree_duration_timer_; |
850 | 851 |
851 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 852 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
852 }; | 853 }; |
853 | 854 |
854 } // namespace cc | 855 } // namespace cc |
855 | 856 |
856 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 857 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
OLD | NEW |