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

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: rebased 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
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_position_constraint.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/layers/layer_position_constraint.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698