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

Unified Diff: ash/common/wm/default_state.cc

Issue 2237983002: Allow updating arc widget bounds in maximize/fullscreen state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 4 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: ash/common/wm/default_state.cc
diff --git a/ash/common/wm/default_state.cc b/ash/common/wm/default_state.cc
index 07c03630d52667078fd6ffdd8c4fcaa047b96a4d..e7aa9e21265f821e039772f6541ea056e37a9cbb 100644
--- a/ash/common/wm/default_state.cc
+++ b/ash/common/wm/default_state.cc
@@ -533,7 +533,8 @@ void DefaultState::SetBounds(WindowState* window_state,
wm::AdjustBoundsSmallerThan(work_area_in_parent.size(), &child_bounds);
window_state->AdjustSnappedBounds(&child_bounds);
window_state->SetBoundsDirect(child_bounds);
- } else if (!SetMaximizedOrFullscreenBounds(window_state)) {
+ } else if (!SetMaximizedOrFullscreenBounds(window_state) ||
+ window_state->allow_set_bounds_in_maximized()) {
window_state->SetBoundsConstrained(event->requested_bounds());
}
}
« no previous file with comments | « no previous file | ash/common/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | ash/common/wm/window_state.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698