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

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

Issue 12552004: Support bottom-right anchored fixed-position elements during a pinch gesture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct translate order. move math to a separate function. Created 7 years, 9 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698