Chromium Code Reviews| Index: cc/layers/layer_position_constraint.h |
| diff --git a/cc/layers/layer_position_constraint.h b/cc/layers/layer_position_constraint.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..1dbedd0bff7c5f93448c5c25edf51818f60bf451 |
| --- /dev/null |
| +++ b/cc/layers/layer_position_constraint.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CC_LAYER_POSITION_CONSTRAINT_H_ |
| +#define CC_LAYER_POSITION_CONSTRAINT_H_ |
| + |
| +namespace WebKit { |
| + struct WebLayerPositionConstraint; |
|
jamesr
2013/03/22 01:49:50
NAK on this. Things in cc/ should not depend on t
|
| +} |
| + |
| +namespace cc { |
| + |
| +class LayerPositionConstraint { |
| +public: |
| + LayerPositionConstraint(); |
| + LayerPositionConstraint(const WebKit::WebLayerPositionConstraint&); |
| + |
| + bool is_fixed_position() const { return is_fixed_position_; } |
| + bool is_fixed_to_right_edge() const { return is_fixed_to_right_edge_; } |
| + bool is_fixed_to_bottom_edge() const { return is_fixed_to_bottom_edge_; } |
| + |
| + bool operator==(const LayerPositionConstraint&) const; |
| + bool operator!=(const LayerPositionConstraint&) const; |
| + |
| + operator WebKit::WebLayerPositionConstraint() const; |
|
jamesr
2013/03/22 01:49:50
NAK
|
| + |
| +private: |
| + bool is_fixed_position_ : 1; |
| + bool is_fixed_to_right_edge_ : 1; |
| + bool is_fixed_to_bottom_edge_ : 1; |
| +}; |
| + |
| +} // namespace cc |
| + |
| +#endif // CC_LAYER_POSITION_CONSTRAINT_H_ |