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 WebKit { | |
9 struct WebLayerPositionConstraint; | |
jamesr
2013/03/22 01:49:50
NAK on this. Things in cc/ should not depend on t
| |
10 } | |
11 | |
12 namespace cc { | |
13 | |
14 class LayerPositionConstraint { | |
15 public: | |
16 LayerPositionConstraint(); | |
17 LayerPositionConstraint(const WebKit::WebLayerPositionConstraint&); | |
18 | |
19 bool is_fixed_position() const { return is_fixed_position_; } | |
20 bool is_fixed_to_right_edge() const { return is_fixed_to_right_edge_; } | |
21 bool is_fixed_to_bottom_edge() const { return is_fixed_to_bottom_edge_; } | |
22 | |
23 bool operator==(const LayerPositionConstraint&) const; | |
24 bool operator!=(const LayerPositionConstraint&) const; | |
25 | |
26 operator WebKit::WebLayerPositionConstraint() const; | |
jamesr
2013/03/22 01:49:50
NAK
| |
27 | |
28 private: | |
29 bool is_fixed_position_ : 1; | |
30 bool is_fixed_to_right_edge_ : 1; | |
31 bool is_fixed_to_bottom_edge_ : 1; | |
32 }; | |
33 | |
34 } // namespace cc | |
35 | |
36 #endif // CC_LAYER_POSITION_CONSTRAINT_H_ | |
OLD | NEW |