OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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_IMPL_H_ | 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_ |
6 #define CC_TREES_LAYER_TREE_IMPL_H_ | 6 #define CC_TREES_LAYER_TREE_IMPL_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // This function may return NULL, it is the caller's responsibility to check. | 136 // This function may return NULL, it is the caller's responsibility to check. |
137 LayerImpl* OuterViewportScrollLayer() const; | 137 LayerImpl* OuterViewportScrollLayer() const; |
138 gfx::Vector2dF TotalScrollOffset() const; | 138 gfx::Vector2dF TotalScrollOffset() const; |
139 gfx::Vector2dF TotalMaxScrollOffset() const; | 139 gfx::Vector2dF TotalMaxScrollOffset() const; |
140 gfx::Vector2dF TotalScrollDelta() const; | 140 gfx::Vector2dF TotalScrollDelta() const; |
141 | 141 |
142 LayerImpl* InnerViewportContainerLayer() const; | 142 LayerImpl* InnerViewportContainerLayer() const; |
143 LayerImpl* CurrentlyScrollingLayer() const; | 143 LayerImpl* CurrentlyScrollingLayer() const; |
144 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 144 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
145 void ClearCurrentlyScrollingLayer(); | 145 void ClearCurrentlyScrollingLayer(); |
146 float VerticalAdjust(const int clip_layer_id) const; | |
147 | 146 |
148 void SetViewportLayersFromIds(int page_scale_layer_id, | 147 void SetViewportLayersFromIds(int page_scale_layer_id, |
149 int inner_viewport_scroll_layer_id, | 148 int inner_viewport_scroll_layer_id, |
150 int outer_viewport_scroll_layer_id); | 149 int outer_viewport_scroll_layer_id); |
151 void ClearViewportLayers(); | 150 void ClearViewportLayers(); |
152 LayerImpl* page_scale_layer() { return page_scale_layer_; } | 151 LayerImpl* page_scale_layer() { return page_scale_layer_; } |
153 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); | 152 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); |
154 void ApplyScrollDeltasSinceBeginMainFrame(); | 153 void ApplyScrollDeltasSinceBeginMainFrame(); |
155 | 154 |
156 SkColor background_color() const { return background_color_; } | 155 SkColor background_color() const { return background_color_; } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 351 |
353 int render_surface_layer_list_id_; | 352 int render_surface_layer_list_id_; |
354 | 353 |
355 private: | 354 private: |
356 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 355 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
357 }; | 356 }; |
358 | 357 |
359 } // namespace cc | 358 } // namespace cc |
360 | 359 |
361 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 360 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |