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

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

Issue 8477019: Adds Window::MoveChildToFront, with surrounding changes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup 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
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/compositor/layer.h
diff --git a/ui/gfx/compositor/layer.h b/ui/gfx/compositor/layer.h
index 9b279e0dc53e02e6f54ee95c781ef990da16736a..cde70e9f8054fb76f3fcd3c8610e5f99b2de0216 100644
--- a/ui/gfx/compositor/layer.h
+++ b/ui/gfx/compositor/layer.h
@@ -74,6 +74,10 @@ class COMPOSITOR_EXPORT Layer :
// Moves a child to the end of the child list.
void MoveToFront(Layer* child);
+ // Moves |child| to be above |other|. Does nothing if |other| is already above
+ // |child|.
+ void MoveAbove(Layer* child, Layer* other);
+
// Returns the child Layers.
const std::vector<Layer*>& children() const { return children_; }
« no previous file with comments | « ui/aura/window_unittest.cc ('k') | ui/gfx/compositor/layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698