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_LAYERS_LAYER_STICKY_POSITION_CONSTRAINT_H_ | |
6 #define CC_LAYERS_LAYER_STICKY_POSITION_CONSTRAINT_H_ | |
7 | |
8 #include "cc/base/cc_export.h" | |
9 | |
10 #include "ui/gfx/geometry/rect.h" | |
11 | |
12 namespace cc { | |
13 | |
14 struct CC_EXPORT LayerStickyPositionConstraint { | |
15 LayerStickyPositionConstraint(); | |
16 LayerStickyPositionConstraint(const LayerStickyPositionConstraint& other); | |
17 | |
18 bool is_sticky : 1; | |
19 bool is_anchored_left : 1; | |
20 bool is_anchored_right : 1; | |
21 bool is_anchored_top : 1; | |
22 bool is_anchored_bottom : 1; | |
23 float left_offset; | |
24 float right_offset; | |
25 float top_offset; | |
26 float bottom_offset; | |
27 gfx::Rect absolute_sticky_box_rect; | |
28 gfx::Rect absolute_containing_block_rect; | |
ajuma
2016/09/08 22:08:53
Please add a comment explaining what the offsets a
flackr
2016/09/20 17:08:13
Done.
| |
29 | |
30 bool operator==(const LayerStickyPositionConstraint&) const; | |
31 bool operator!=(const LayerStickyPositionConstraint&) const; | |
32 }; | |
33 | |
34 } // namespace cc | |
35 | |
36 #endif // CC_LAYERS_LAYER_STICKY_POSITION_CONSTRAINT_H_ | |
OLD | NEW |