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

Unified Diff: ash/common/wm/maximize_mode/maximize_mode_window_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/maximize_mode/maximize_mode_window_state.cc
diff --git a/ash/common/wm/maximize_mode/maximize_mode_window_state.cc b/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
index a8aa2305a6f6b3c30736263d53693017633aab88..31e6a0cc84dfcadf18846254320a84a02e722ee1 100644
--- a/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
+++ b/ash/common/wm/maximize_mode/maximize_mode_window_state.cc
@@ -163,6 +163,12 @@ void MaximizeModeWindowState::OnWMEvent(wm::WindowState* window_state,
case wm::WM_EVENT_SHOW_INACTIVE:
return;
case wm::WM_EVENT_SET_BOUNDS:
+ if (window_state->allow_set_bounds_in_maximized()) {
+ window_state->SetBoundsConstrained(
+ static_cast<const wm::SetBoundsEvent*>(event)->requested_bounds());
+ break;
+ }
+
if (current_state_type_ == wm::WINDOW_STATE_TYPE_MAXIMIZED) {
// Having a maximized window, it could have been created with an empty
// size and the caller should get his size upon leaving the maximized

Powered by Google App Engine
This is Rietveld 408576698