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

Unified Diff: ui/gfx/compositor/layer.h

Issue 8653005: Make Aura and compositor stacking methods more intuitive. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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/gfx/compositor/layer.h
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 19949a1d0f89f702db219cc9dc0f06317ea52c2e..5bc3819cf57eabf351cb5638c8df17eafc019bfe 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -72,8 +72,9 @@ class COMPOSITOR_EXPORT Layer :
// Stacks |child| above all other children.
void StackAtTop(Layer* child);
- // Stacks |child| above |other|, both of which must be children of this layer.
- // Does nothing if |other| is already above |child|.
+ // Stacks |child| directly above |other|. Both must be children of this
+ // layer. Note that if |child| is initially stacked even higher, calling this
+ // method will result in |child| being lowered in the stacking order.
void StackAbove(Layer* child, Layer* other);
// Returns the child Layers.
@@ -301,6 +302,7 @@ class COMPOSITOR_EXPORT Layer :
Layer* parent_;
+ // This layer's children, in bottom-to-top stacking order.
std::vector<Layer*> children_;
ui::Transform transform_;

Powered by Google App Engine
This is Rietveld 408576698