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

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

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undocks window first before side-snapping bounds (comments) 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 | « ash/wm/dock/docked_window_layout_manager.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/dock/docked_window_resizer.cc
diff --git a/ash/wm/dock/docked_window_resizer.cc b/ash/wm/dock/docked_window_resizer.cc
index 3380287f3853b499b50f498a2e1cae7c057b567b..0541bc7778dfb30f05c8cb814800e6a74fada25e 100644
--- a/ash/wm/dock/docked_window_resizer.cc
+++ b/ash/wm/dock/docked_window_resizer.cc
@@ -226,7 +226,7 @@ void DockedWindowResizer::StartedDragging() {
wm::WindowState* window_state = wm::GetWindowState(GetTarget());
if (is_docked_ &&
(details_.bounds_change & WindowResizer::kBoundsChange_Resizes)) {
- window_state->set_bounds_changed_by_user(true);
+ window_state->SetBoundsChangedByUser(true);
}
// Tell the dock layout manager that we are dragging this window.
@@ -346,7 +346,7 @@ DockedAction DockedWindowResizer::MaybeReparentWindowOnDragCompletion(
// docked it is auto-sized unless it has been resized while being docked
// before.
if (is_docked_) {
- wm::GetWindowState(window)->set_bounds_changed_by_user(
+ wm::GetWindowState(window)->SetBoundsChangedByUser(
was_docked_ && (is_resized || was_bounds_changed_by_user_));
}
return action;
« no previous file with comments | « ash/wm/dock/docked_window_layout_manager.cc ('k') | ash/wm/dock/docked_window_resizer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698