Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(22)

Side by Side Diff: cc/layers/layer.h

Issue 2839533002: Remove Layer/LayerImpl's FixedContainerSizeDelta (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 bool contents_opaque() const { return inputs_.contents_opaque; } 156 bool contents_opaque() const { return inputs_.contents_opaque; }
157 157
158 void SetPosition(const gfx::PointF& position); 158 void SetPosition(const gfx::PointF& position);
159 gfx::PointF position() const { return inputs_.position; } 159 gfx::PointF position() const { return inputs_.position; }
160 160
161 // A layer that is a container for fixed position layers cannot be both 161 // A layer that is a container for fixed position layers cannot be both
162 // scrollable and have a non-identity transform. 162 // scrollable and have a non-identity transform.
163 void SetIsContainerForFixedPositionLayers(bool container); 163 void SetIsContainerForFixedPositionLayers(bool container);
164 bool IsContainerForFixedPositionLayers() const; 164 bool IsContainerForFixedPositionLayers() const;
165 165
166 gfx::Vector2dF FixedContainerSizeDelta() const {
167 return gfx::Vector2dF();
168 }
169
170 void SetPositionConstraint(const LayerPositionConstraint& constraint); 166 void SetPositionConstraint(const LayerPositionConstraint& constraint);
171 const LayerPositionConstraint& position_constraint() const { 167 const LayerPositionConstraint& position_constraint() const {
172 return inputs_.position_constraint; 168 return inputs_.position_constraint;
173 } 169 }
174 170
175 void SetStickyPositionConstraint( 171 void SetStickyPositionConstraint(
176 const LayerStickyPositionConstraint& constraint); 172 const LayerStickyPositionConstraint& constraint);
177 const LayerStickyPositionConstraint& sticky_position_constraint() const { 173 const LayerStickyPositionConstraint& sticky_position_constraint() const {
178 return inputs_.sticky_position_constraint; 174 return inputs_.sticky_position_constraint;
179 } 175 }
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 // These all act like draw properties, so don't need push properties. 634 // These all act like draw properties, so don't need push properties.
639 gfx::Rect visible_layer_rect_; 635 gfx::Rect visible_layer_rect_;
640 size_t num_unclipped_descendants_; 636 size_t num_unclipped_descendants_;
641 637
642 DISALLOW_COPY_AND_ASSIGN(Layer); 638 DISALLOW_COPY_AND_ASSIGN(Layer);
643 }; 639 };
644 640
645 } // namespace cc 641 } // namespace cc
646 642
647 #endif // CC_LAYERS_LAYER_H_ 643 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | cc/trees/layer_tree_host_impl_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698