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

Unified Diff: ash/wm/workspace/snap_sizer.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
« ash/wm/window_state.cc ('K') | « ash/wm/window_state.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/workspace/snap_sizer.cc
diff --git a/ash/wm/workspace/snap_sizer.cc b/ash/wm/workspace/snap_sizer.cc
index f101441f209608c4fc914da8eccacb34c5408a12..493042f8f22091758d5a9ece6eba25fa185071a9 100644
--- a/ash/wm/workspace/snap_sizer.cc
+++ b/ash/wm/workspace/snap_sizer.cc
@@ -166,11 +166,16 @@ void SnapSizer::SnapWindow(wm::WindowState* window_state,
return;
internal::SnapSizer sizer(window_state, gfx::Point(), edge,
internal::SnapSizer::OTHER_INPUT);
+ window_state->SetWindowShowType(edge == LEFT_EDGE ?
+ wm::SHOW_TYPE_LEFT_SNAPPED : wm::SHOW_TYPE_RIGHT_SNAPPED);
SnapWindowToBounds(window_state, edge,
sizer.GetSnapBounds(window_state->window()->bounds()));
}
void SnapSizer::SnapWindowToTargetBounds() {
+ window_state_->SetWindowShowType(edge_ == LEFT_EDGE ?
+ wm::SHOW_TYPE_LEFT_SNAPPED : wm::SHOW_TYPE_RIGHT_SNAPPED);
+ target_bounds_ = GetTargetBounds();
SnapWindowToBounds(window_state_, edge_, target_bounds());
}
« ash/wm/window_state.cc ('K') | « ash/wm/window_state.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698