| 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 bool IsCurrentlyScrollingInnerViewport() const override; | 195 bool IsCurrentlyScrollingInnerViewport() const override; |
| 196 bool IsCurrentlyScrollingLayerAt( | 196 bool IsCurrentlyScrollingLayerAt( |
| 197 const gfx::Point& viewport_point, | 197 const gfx::Point& viewport_point, |
| 198 InputHandler::ScrollInputType type) const override; | 198 InputHandler::ScrollInputType type) const override; |
| 199 EventListenerProperties GetEventListenerProperties( | 199 EventListenerProperties GetEventListenerProperties( |
| 200 EventListenerClass event_class) const override; | 200 EventListenerClass event_class) const override; |
| 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, |
| 206 gfx::ScrollOffset* offset) override; |
| 207 bool ScrollLayerTo(int layer_id, const gfx::ScrollOffset& offset) override; |
| 205 | 208 |
| 206 // TopControlsManagerClient implementation. | 209 // TopControlsManagerClient implementation. |
| 207 float TopControlsHeight() const override; | 210 float TopControlsHeight() const override; |
| 208 void SetCurrentTopControlsShownRatio(float offset) override; | 211 void SetCurrentTopControlsShownRatio(float offset) override; |
| 209 float CurrentTopControlsShownRatio() const override; | 212 float CurrentTopControlsShownRatio() const override; |
| 210 void DidChangeTopControlsPosition() override; | 213 void DidChangeTopControlsPosition() override; |
| 211 bool HaveRootScrollLayer() const override; | 214 bool HaveRootScrollLayer() const override; |
| 212 | 215 |
| 213 void UpdateViewportContainerSizes(); | 216 void UpdateViewportContainerSizes(); |
| 214 | 217 |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 851 | 854 |
| 852 std::unique_ptr<PendingTreeDurationHistogramTimer> | 855 std::unique_ptr<PendingTreeDurationHistogramTimer> |
| 853 pending_tree_duration_timer_; | 856 pending_tree_duration_timer_; |
| 854 | 857 |
| 855 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); | 858 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); |
| 856 }; | 859 }; |
| 857 | 860 |
| 858 } // namespace cc | 861 } // namespace cc |
| 859 | 862 |
| 860 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ | 863 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ |
| OLD | NEW |