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

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

Issue 2811153002: Restore bounds after the screen is restored in clamshell (Closed)
Patch Set: Restore bounds after completely transitioned to clamshell. Created 3 years, 8 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 fe0878fc4aecffa1a6adb055976dc2ec974c36c8..7cadc5f6a8a0e08dc21ec601701b641e2c858be7 100644
--- a/ash/wm/maximize_mode/maximize_mode_window_state.h
+++ b/ash/wm/maximize_mode/maximize_mode_window_state.h
@@ -30,6 +30,8 @@ class MaximizeModeWindowState : public wm::WindowState::State {
MaximizeModeWindowState(WmWindow* window, MaximizeModeWindowManager* creator);
~MaximizeModeWindowState() override;
+ void set_ignore_wm_events(bool ignore) { ignore_wm_events_ = ignore; }
+
// Leaves the maximize mode by reverting to previous state object.
void LeaveMaximizeMode(wm::WindowState* window_state);
@@ -80,6 +82,9 @@ class MaximizeModeWindowState : public wm::WindowState::State {
// If true, do not update bounds.
bool defer_bounds_updates_;
+ // If true, the state will not process events.
+ bool ignore_wm_events_ = false;
+
DISALLOW_COPY_AND_ASSIGN(MaximizeModeWindowState);
};
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager.cc ('k') | ash/wm/maximize_mode/maximize_mode_window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698