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

Unified Diff: ash/wm/maximize_mode/maximize_mode_window_state.h

Issue 588193003: Defer maximize mode bounds updates until after exiting overview. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/wm/maximize_mode/maximize_mode_window_state.h
diff --git a/ash/wm/maximize_mode/maximize_mode_window_state.h b/ash/wm/maximize_mode/maximize_mode_window_state.h
index 093f46be0203ff2c303422a64e7b91376c77ea54..f82593c9efb7419ff9b933d370079ecb837f2f49 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_state.h
+++ b/ash/wm/maximize_mode/maximize_mode_window_state.h
@@ -31,6 +31,10 @@ class MaximizeModeWindowState : public wm::WindowState::State {
// Leaves the maximize mode by reverting to previous state object.
void LeaveMaximizeMode(wm::WindowState* window_state);
+ // Sets whether to ignore bounds updates. If set to false, immediately does a
+ // bounds update as the current window bounds may no longer be correct.
+ void SetDeferBoundsUpdates(bool defer_bounds_updates);
+
// WindowState::State overrides:
virtual void OnWMEvent(wm::WindowState* window_state,
const wm::WMEvent* event) OVERRIDE;
@@ -71,6 +75,9 @@ class MaximizeModeWindowState : public wm::WindowState::State {
// WM_STATE_TYPE{NORMAL, MINIMIZED, MAXIMIZED}.
wm::WindowStateType current_state_type_;
+ // If true, do not update bounds.
+ bool defer_bounds_updates_;
+
DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowState);
};

Powered by Google App Engine
This is Rietveld 408576698