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

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

Issue 2251303003: Implement position: sticky updates on compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add unit test for impl side sticky position update. Created 4 years, 3 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
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698