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

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

Issue 2839533002: Remove Layer/LayerImpl's FixedContainerSizeDelta (Closed)
Patch Set: Remove FixedContainerSizeDelta Created 3 years, 7 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') | no next file with comments »
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 bool contents_opaque() const { return inputs_.contents_opaque; } 159 bool contents_opaque() const { return inputs_.contents_opaque; }
160 160
161 void SetPosition(const gfx::PointF& position); 161 void SetPosition(const gfx::PointF& position);
162 gfx::PointF position() const { return inputs_.position; } 162 gfx::PointF position() const { return inputs_.position; }
163 163
164 // A layer that is a container for fixed position layers cannot be both 164 // A layer that is a container for fixed position layers cannot be both
165 // scrollable and have a non-identity transform. 165 // scrollable and have a non-identity transform.
166 void SetIsContainerForFixedPositionLayers(bool container); 166 void SetIsContainerForFixedPositionLayers(bool container);
167 bool IsContainerForFixedPositionLayers() const; 167 bool IsContainerForFixedPositionLayers() const;
168 168
169 gfx::Vector2dF FixedContainerSizeDelta() const {
170 return gfx::Vector2dF();
171 }
172
173 void SetPositionConstraint(const LayerPositionConstraint& constraint); 169 void SetPositionConstraint(const LayerPositionConstraint& constraint);
174 const LayerPositionConstraint& position_constraint() const { 170 const LayerPositionConstraint& position_constraint() const {
175 return inputs_.position_constraint; 171 return inputs_.position_constraint;
176 } 172 }
177 173
178 void SetStickyPositionConstraint( 174 void SetStickyPositionConstraint(
179 const LayerStickyPositionConstraint& constraint); 175 const LayerStickyPositionConstraint& constraint);
180 const LayerStickyPositionConstraint& sticky_position_constraint() const { 176 const LayerStickyPositionConstraint& sticky_position_constraint() const {
181 return inputs_.sticky_position_constraint; 177 return inputs_.sticky_position_constraint;
182 } 178 }
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after
643 // These all act like draw properties, so don't need push properties. 639 // These all act like draw properties, so don't need push properties.
644 gfx::Rect visible_layer_rect_; 640 gfx::Rect visible_layer_rect_;
645 size_t num_unclipped_descendants_; 641 size_t num_unclipped_descendants_;
646 642
647 DISALLOW_COPY_AND_ASSIGN(Layer); 643 DISALLOW_COPY_AND_ASSIGN(Layer);
648 }; 644 };
649 645
650 } // namespace cc 646 } // namespace cc
651 647
652 #endif // CC_LAYERS_LAYER_H_ 648 #endif // CC_LAYERS_LAYER_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698