| Index: ui/gfx/compositor/layer.h
|
| ===================================================================
|
| --- ui/gfx/compositor/layer.h (revision 98650)
|
| +++ ui/gfx/compositor/layer.h (working copy)
|
| @@ -44,6 +44,9 @@
|
| const Layer* parent() const { return parent_; }
|
| Layer* parent() { return parent_; }
|
|
|
| + // Returns true if this Layer contains |other| somewhere in its children.
|
| + bool Contains(const Layer* other) const;
|
| +
|
| // The transform, relative to the parent.
|
| void SetTransform(const ui::Transform& transform);
|
| const ui::Transform& transform() const { return transform_; }
|
| @@ -52,6 +55,13 @@
|
| void SetBounds(const gfx::Rect& bounds);
|
| const gfx::Rect& bounds() const { return bounds_; }
|
|
|
| + // Converts a point from the coordinates of |source| to the coordinates of
|
| + // |target|. Necessarily, |source| and |target| must inhabit the same Layer
|
| + // tree.
|
| + static void ConvertPointToLayer(const Layer* source,
|
| + const Layer* target,
|
| + gfx::Point* point);
|
| +
|
| // See description in View for details
|
| void SetFillsBoundsOpaquely(bool fills_bounds_opaquely);
|
| bool fills_bounds_opaquely() const { return fills_bounds_opaquely_; }
|
| @@ -102,6 +112,12 @@
|
| // view has no transfrom with respect to its parent.
|
| void RecomputeHole();
|
|
|
| + bool ConvertPointForAncestor(const Layer* ancestor, gfx::Point* point) const;
|
| + bool ConvertPointFromAncestor(const Layer* ancestor, gfx::Point* point) const;
|
| +
|
| + bool GetTransformRelativeTo(const Layer* ancestor,
|
| + Transform* transform) const;
|
| +
|
| Compositor* compositor_;
|
|
|
| scoped_refptr<ui::Texture> texture_;
|
|
|