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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 Loading... |
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_ |
OLD | NEW |