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

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: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')
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 c0c34cc4b74cbe21f2cb6b5da997e9001c41fe44..f607e5f5dce615b6ab8858ede88f7989fd4158cb 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -16,6 +16,7 @@
#include "cc/base/cc_export.h"
#include "cc/base/region.h"
#include "cc/layers/draw_properties.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"
@@ -123,12 +124,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 is_container_for_fixed_position_layers() const;
Sami 2013/03/25 11:41:37 This should be renamed to IsContainerForFixedPosit
trchen 2013/03/26 01:45:28 Done.
- 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 {
@@ -452,7 +453,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.gyp ('k') | cc/layers/layer.cc » ('j') | cc/layers/layer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698