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

Unified Diff: athena/wm/split_view_controller.cc

Issue 480293003: Adding functions to the window_list_provider for accessing the activities window list (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 6 years, 3 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: athena/wm/split_view_controller.cc
diff --git a/athena/wm/split_view_controller.cc b/athena/wm/split_view_controller.cc
index 85db209536916f46ec72f8d59b586abf056f9e4e..957b8c76b750b1feef16d5b992f890cb8d958afe 100644
--- a/athena/wm/split_view_controller.cc
+++ b/athena/wm/split_view_controller.cc
@@ -97,11 +97,15 @@ void SplitViewController::ActivateSplitMode(aura::Window* left,
SetState(ACTIVE);
if (right_window_ != right) {
right_window_ = right;
- container_->StackChildAtTop(right_window_);
+ // Since the |window_list_provider_| controls directly the order of windows,
+ // it needs to change the window order accordingly.
+ window_list_provider_->MoveToFront(right_window_);
}
if (left_window_ != left) {
left_window_ = left;
- container_->StackChildAtTop(left_window_);
+ // Since the |window_list_provider_| controls directly the order of windows,
+ // it needs to change the window order accordingly.
+ window_list_provider_->MoveToFront(left_window_);
}
UpdateLayout(true);
}

Powered by Google App Engine
This is Rietveld 408576698