summaryrefslogtreecommitdiffstats
path: root/ui/aura
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-31 14:25:00 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-05-31 14:25:00 +0000
commit636dc1624585ca5c4c3ae2e028413cd572554a63 (patch)
treeff01227e061e016dfb47e0a82bf0a91f183ac3b4 /ui/aura
parentacd431ee877258e7ad24eb9b0c925d5d237de95a (diff)
downloadchromium_src-636dc1624585ca5c4c3ae2e028413cd572554a63.zip
chromium_src-636dc1624585ca5c4c3ae2e028413cd572554a63.tar.gz
chromium_src-636dc1624585ca5c4c3ae2e028413cd572554a63.tar.bz2
Revert 203217 "Revert 202987 "Reorder the NativeViews attached t..."
I reverted it yesterday because I thought it was burning the Aura tree. It turned out to be innocent so I'm putting it back. TBR=avi@chromium.org Review URL: https://codereview.chromium.org/16256004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203402 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura')
-rw-r--r--ui/aura/window.cc6
-rw-r--r--ui/aura/window.h3
2 files changed, 9 insertions, 0 deletions
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index c1f7487..5160bf6 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -340,6 +340,12 @@ void Window::StackChildAbove(Window* child, Window* target) {
StackChildRelativeTo(child, target, STACK_ABOVE);
}
+void Window::StackChildAtBottom(Window* child) {
+ if (children_.size() <= 1 || child == children_.front())
+ return; // At the bottom already.
+ StackChildBelow(child, children_.front());
+}
+
void Window::StackChildBelow(Window* child, Window* target) {
StackChildRelativeTo(child, target, STACK_BELOW);
}
diff --git a/ui/aura/window.h b/ui/aura/window.h
index baf34f1..a73f784 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -175,6 +175,9 @@ class AURA_EXPORT Window : public ui::LayerDelegate,
// see WindowTest.StackingMadrigal for details.
void StackChildAbove(Window* child, Window* target);
+ // Stacks the specified child of this window at the bottom of the z-order.
+ void StackChildAtBottom(Window* child);
+
// Stacks |child| below |target|. Does nothing if |child| is already below
// |target|.
void StackChildBelow(Window* child, Window* target);