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

Unified Diff: ash/wm/dock/docked_window_layout_manager.cc

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 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 | « no previous file | ash/wm/window_state.h » ('j') | ash/wm/window_state.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_layout_manager.cc
diff --git a/ash/wm/dock/docked_window_layout_manager.cc b/ash/wm/dock/docked_window_layout_manager.cc
index ee1d4386b8e7279fb791b55734fa3339cb05041f..cb07fe409636c28992db581edef5a275a8fc3917 100644
--- a/ash/wm/dock/docked_window_layout_manager.cc
+++ b/ash/wm/dock/docked_window_layout_manager.cc
@@ -565,7 +565,9 @@ void DockedWindowLayoutManager::OnWindowShowTypeChanged(
return;
if (window_state->IsMinimized()) {
MinimizeDockedWindow(window_state);
- } else if (window_state->IsMaximizedOrFullscreen()) {
+ } else if (window_state->IsMaximizedOrFullscreen() ||
pkotwicz 2013/11/18 16:25:20 How about: } else if (window_state->IsNormalShowSt
oshima 2013/11/18 18:44:44 sgtm
varkha 2013/11/20 00:11:13 SHOW_TYPE_*_SNAPPED types are both present with Is
+ window_state->window_show_type() == wm::SHOW_TYPE_LEFT_SNAPPED ||
+ window_state->window_show_type() == wm::SHOW_TYPE_RIGHT_SNAPPED) {
// Reparenting changes the source bounds for the animation if a window is
pkotwicz 2013/11/18 16:25:20 This comment is no longer relevant?
varkha 2013/11/20 00:11:13 Done.
// visible so hide it here and show later when it is already in the desktop.
UndockWindow(window);
« no previous file with comments | « no previous file | ash/wm/window_state.h » ('j') | ash/wm/window_state.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698