Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_LAYER_POSITION_CONSTRAINT_H_ | |
| 6 #define CC_LAYER_POSITION_CONSTRAINT_H_ | |
| 7 | |
| 8 namespace cc { | |
| 9 | |
| 10 class LayerPositionConstraint { | |
| 11 public: | |
|
Sami
2013/03/25 11:41:37
Indent labels by 1.
trchen
2013/03/26 01:45:28
Done.
| |
| 12 LayerPositionConstraint(); | |
| 13 | |
| 14 void SetIsFixedPosition(bool fixed) { is_fixed_position_ = fixed; } | |
|
Sami
2013/03/25 11:41:37
These setters should be set_foo() style.
trchen
2013/03/26 01:45:28
Done.
| |
| 15 bool is_fixed_position() const { return is_fixed_position_; } | |
| 16 void SetIsFixedToRightEdge(bool fixed) { is_fixed_to_right_edge_ = fixed; } | |
| 17 bool is_fixed_to_right_edge() const { return is_fixed_to_right_edge_; } | |
| 18 void SetIsFixedToBottomEdge(bool fixed) { is_fixed_to_bottom_edge_ = fixed; } | |
| 19 bool is_fixed_to_bottom_edge() const { return is_fixed_to_bottom_edge_; } | |
| 20 | |
| 21 bool operator==(const LayerPositionConstraint&) const; | |
| 22 bool operator!=(const LayerPositionConstraint&) const; | |
| 23 | |
| 24 private: | |
| 25 bool is_fixed_position_ : 1; | |
| 26 bool is_fixed_to_right_edge_ : 1; | |
| 27 bool is_fixed_to_bottom_edge_ : 1; | |
| 28 }; | |
| 29 | |
| 30 } // namespace cc | |
| 31 | |
| 32 #endif // CC_LAYER_POSITION_CONSTRAINT_H_ | |
| OLD | NEW |