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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } | 128 HeadsUpDisplayLayerImpl* hud_layer() { return hud_layer_; } |
129 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { | 129 void set_hud_layer(HeadsUpDisplayLayerImpl* layer_impl) { |
130 hud_layer_ = layer_impl; | 130 hud_layer_ = layer_impl; |
131 } | 131 } |
132 | 132 |
133 LayerImpl* InnerViewportScrollLayer() const; | 133 LayerImpl* InnerViewportScrollLayer() const; |
134 // This function may return NULL, it is the caller's responsibility to check. | 134 // This function may return NULL, it is the caller's responsibility to check. |
135 LayerImpl* OuterViewportScrollLayer() const; | 135 LayerImpl* OuterViewportScrollLayer() const; |
136 gfx::ScrollOffset TotalScrollOffset() const; | 136 gfx::ScrollOffset TotalScrollOffset() const; |
137 gfx::ScrollOffset TotalMaxScrollOffset() const; | 137 gfx::ScrollOffset TotalMaxScrollOffset() const; |
138 gfx::Vector2dF TotalScrollDelta() const; | |
139 | 138 |
140 LayerImpl* InnerViewportContainerLayer() const; | 139 LayerImpl* InnerViewportContainerLayer() const; |
141 LayerImpl* OuterViewportContainerLayer() const; | 140 LayerImpl* OuterViewportContainerLayer() const; |
142 LayerImpl* CurrentlyScrollingLayer() const; | 141 LayerImpl* CurrentlyScrollingLayer() const; |
143 void SetCurrentlyScrollingLayer(LayerImpl* layer); | 142 void SetCurrentlyScrollingLayer(LayerImpl* layer); |
144 void ClearCurrentlyScrollingLayer(); | 143 void ClearCurrentlyScrollingLayer(); |
145 | 144 |
146 void SetViewportLayersFromIds(int overscroll_elasticity_layer, | 145 void SetViewportLayersFromIds(int overscroll_elasticity_layer, |
147 int page_scale_layer_id, | 146 int page_scale_layer_id, |
148 int inner_viewport_scroll_layer_id, | 147 int inner_viewport_scroll_layer_id, |
149 int outer_viewport_scroll_layer_id); | 148 int outer_viewport_scroll_layer_id); |
150 void ClearViewportLayers(); | 149 void ClearViewportLayers(); |
151 LayerImpl* overscroll_elasticity_layer() { | 150 LayerImpl* overscroll_elasticity_layer() { |
152 return overscroll_elasticity_layer_; | 151 return overscroll_elasticity_layer_; |
153 } | 152 } |
154 LayerImpl* page_scale_layer() { return page_scale_layer_; } | 153 LayerImpl* page_scale_layer() { return page_scale_layer_; } |
155 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); | 154 void ApplySentScrollAndScaleDeltasFromAbortedCommit(); |
156 void ApplyScrollDeltasSinceBeginMainFrame(); | |
157 | 155 |
158 SkColor background_color() const { return background_color_; } | 156 SkColor background_color() const { return background_color_; } |
159 void set_background_color(SkColor color) { background_color_ = color; } | 157 void set_background_color(SkColor color) { background_color_ = color; } |
160 | 158 |
161 bool has_transparent_background() const { | 159 bool has_transparent_background() const { |
162 return has_transparent_background_; | 160 return has_transparent_background_; |
163 } | 161 } |
164 void set_has_transparent_background(bool transparent) { | 162 void set_has_transparent_background(bool transparent) { |
165 has_transparent_background_ = transparent; | 163 has_transparent_background_ = transparent; |
166 } | 164 } |
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
415 | 413 |
416 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 414 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
417 | 415 |
418 private: | 416 private: |
419 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 417 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
420 }; | 418 }; |
421 | 419 |
422 } // namespace cc | 420 } // namespace cc |
423 | 421 |
424 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 422 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |