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

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: rebase 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 | « ui/aura/client/animation_host.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.h
diff --git a/ui/compositor/layer.h b/ui/compositor/layer.h
index 5c95a36a7da8fb27b7df25121a54c8631d3a12fe..61ea5b2c358745f30b8a9389935d08fa537f39cf 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(
@@ -328,9 +334,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);
« no previous file with comments | « ui/aura/client/animation_host.cc ('k') | ui/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698