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

Unified Diff: athena/wm/split_view_controller.cc

Issue 574113004: [Athena] Fix switching activities by swiping from the right bezel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@athena_split
Patch Set: 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
« no previous file with comments | « athena/wm/bezel_controller.cc ('k') | athena/wm/window_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: athena/wm/split_view_controller.cc
diff --git a/athena/wm/split_view_controller.cc b/athena/wm/split_view_controller.cc
index 82167232d8ce7b19707e3da1de73d35263db510e..5711c3f3db5d8fc6b8b7ff6f0cf4a8bcd35dfe13 100644
--- a/athena/wm/split_view_controller.cc
+++ b/athena/wm/split_view_controller.cc
@@ -95,9 +95,12 @@ void SplitViewController::ActivateSplitMode(aura::Window* left,
if (right_window_ && right_window_ != left && right_window_ != right)
to_hide_.push_back(right_window_);
- SetState(ACTIVE);
right_window_ = right;
left_window_ = left;
+
+ window_list_provider_->MoveToFront(right_window_);
+ window_list_provider_->MoveToFront(left_window_);
+ SetState(ACTIVE);
UpdateLayout(true);
}
@@ -118,6 +121,8 @@ void SplitViewController::ReplaceWindow(aura::Window* window,
else
right_window_ = replace_with;
wm::ActivateWindow(replace_with);
+ window_list_provider_->MoveToFront(right_window_);
+ window_list_provider_->MoveToFront(left_window_);
mfomitchev 2014/09/18 02:36:29 ActivateWindow already moves the window to front w
pkotwicz 2014/09/18 13:54:45 I have removed the call to wm::ActivateWindow(). T
mfomitchev 2014/09/18 18:11:52 We still use ActivateWindow in ScrollEnd - that's
UpdateLayout(false);
window->SetTransform(gfx::Transform());
window->Hide();
@@ -170,8 +175,6 @@ void SplitViewController::UpdateLayout(bool animate) {
left_window_->Show();
right_window_->Show();
- window_list_provider_->MoveToFront(right_window_);
- window_list_provider_->MoveToFront(left_window_);
if (state_ == ACTIVE) {
if (animate) {
« no previous file with comments | « athena/wm/bezel_controller.cc ('k') | athena/wm/window_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698