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

Unified Diff: cc/layers/layer.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: forgot to save the comments. sorry. :( 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index c1285314afaeabc2e188764f2f165bdcce2c4bea..883cdf6ae26e93e6ead84a814e796cfb5adc9a7e 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -17,6 +17,7 @@
#include "cc/base/region.h"
#include "cc/layers/draw_properties.h"
#include "cc/layers/layer_lists.h"
+#include "cc/layers/layer_position_constraint.h"
#include "cc/layers/render_surface.h"
#include "cc/trees/occlusion_tracker.h"
#include "skia/ext/refptr.h"
@@ -124,12 +125,12 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
gfx::PointF position() const { return position_; }
void SetIsContainerForFixedPositionLayers(bool container);
- bool is_container_for_fixed_position_layers() const {
- return is_container_for_fixed_position_layers_;
- }
+ bool IsContainerForFixedPositionLayers() const;
- void SetFixedToContainerLayer(bool fixed_to_container_layer);
- bool fixed_to_container_layer() const { return fixed_to_container_layer_; }
+ void SetPositionConstraint(const LayerPositionConstraint& constraint);
+ const LayerPositionConstraint& position_constraint() const {
+ return position_constraint_;
+ }
void SetSublayerTransform(const gfx::Transform& sublayer_transform);
const gfx::Transform& sublayer_transform() const {
@@ -455,7 +456,7 @@ class CC_EXPORT Layer : public base::RefCounted<Layer>,
WebKit::WebFilterOperations background_filters_;
float anchor_point_z_;
bool is_container_for_fixed_position_layers_;
- bool fixed_to_container_layer_;
+ LayerPositionConstraint position_constraint_;
bool is_drawable_;
bool masks_to_bounds_;
bool contents_opaque_;
« no previous file with comments | « cc/cc_tests.gyp ('k') | cc/layers/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698