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

Unified Diff: ui/compositor/layer.h

Issue 12342028: make menus, bubbles, etc. top level windows on aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add animation_host.* 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
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 5565e0843524d13903515fb9728c9d57b39811ac..f8e625a44c0422d5f29aa97b8584d78ed80356ba 100644
--- a/ui/compositor/layer.h
+++ b/ui/compositor/layer.h
@@ -224,6 +224,12 @@ class COMPOSITOR_EXPORT Layer
const Layer* target,
gfx::Point* point);
+ // Converts a transform to be relative to the given |ancestor|. Returns
+ // whether success (that is, whether the given ancestor was really an
+ // ancestor of this layer).
+ bool GetTargetTransformRelativeTo(const Layer* ancestor,
+ gfx::Transform* transform) const;
+
// Converts a ui::Layer's transform to the transform on the corresponding
// cc::Layer.
static gfx::Transform ConvertTransformToCCTransform(
@@ -324,9 +330,6 @@ class COMPOSITOR_EXPORT Layer
bool ConvertPointForAncestor(const Layer* ancestor, gfx::Point* point) const;
bool ConvertPointFromAncestor(const Layer* ancestor, gfx::Point* point) const;
- bool GetTargetTransformRelativeTo(const Layer* ancestor,
- gfx::Transform* transform) const;
-
// Following are invoked from the animation or if no animation exists to
// update the values immediately.
void SetBoundsImmediately(const gfx::Rect& bounds);

Powered by Google App Engine
This is Rietveld 408576698