| OLD | NEW |
| 1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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_LAYERS_LAYER_H_ | 5 #ifndef CC_LAYERS_LAYER_H_ |
| 6 #define CC_LAYERS_LAYER_H_ | 6 #define CC_LAYERS_LAYER_H_ |
| 7 | 7 |
| 8 #include <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 bool transform_is_invertible() const { return transform_is_invertible_; } | 183 bool transform_is_invertible() const { return transform_is_invertible_; } |
| 184 | 184 |
| 185 void SetScrollParent(Layer* parent); | 185 void SetScrollParent(Layer* parent); |
| 186 | 186 |
| 187 Layer* scroll_parent() { return scroll_parent_; } | 187 Layer* scroll_parent() { return scroll_parent_; } |
| 188 const Layer* scroll_parent() const { return scroll_parent_; } | 188 const Layer* scroll_parent() const { return scroll_parent_; } |
| 189 | 189 |
| 190 void AddScrollChild(Layer* child); | 190 void AddScrollChild(Layer* child); |
| 191 void RemoveScrollChild(Layer* child); | 191 void RemoveScrollChild(Layer* child); |
| 192 | 192 |
| 193 bool has_scroll_children() const { |
| 194 return scroll_children_ && !scroll_children_->empty(); |
| 195 } |
| 196 |
| 193 std::set<Layer*>* scroll_children() { return scroll_children_.get(); } | 197 std::set<Layer*>* scroll_children() { return scroll_children_.get(); } |
| 194 const std::set<Layer*>* scroll_children() const { | 198 const std::set<Layer*>* scroll_children() const { |
| 195 return scroll_children_.get(); | 199 return scroll_children_.get(); |
| 196 } | 200 } |
| 197 | 201 |
| 198 void SetClipParent(Layer* ancestor); | 202 void SetClipParent(Layer* ancestor); |
| 199 | 203 |
| 200 Layer* clip_parent() { return clip_parent_; } | 204 Layer* clip_parent() { return clip_parent_; } |
| 201 const Layer* clip_parent() const { | 205 const Layer* clip_parent() const { |
| 202 return clip_parent_; | 206 return clip_parent_; |
| (...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 626 DrawProperties<Layer> draw_properties_; | 630 DrawProperties<Layer> draw_properties_; |
| 627 | 631 |
| 628 PaintProperties paint_properties_; | 632 PaintProperties paint_properties_; |
| 629 | 633 |
| 630 DISALLOW_COPY_AND_ASSIGN(Layer); | 634 DISALLOW_COPY_AND_ASSIGN(Layer); |
| 631 }; | 635 }; |
| 632 | 636 |
| 633 } // namespace cc | 637 } // namespace cc |
| 634 | 638 |
| 635 #endif // CC_LAYERS_LAYER_H_ | 639 #endif // CC_LAYERS_LAYER_H_ |
| OLD | NEW |