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

Unified Diff: ash/common/wm/window_state.h

Issue 2790943003: Add ability to have active window autohide shelf (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/window_state.h
diff --git a/ash/common/wm/window_state.h b/ash/common/wm/window_state.h
index 53a5c159896772ae3b92705902db981d45830512..12051fe3fabd82dc21e5f7f6e1fc103eccb3b3cc 100644
--- a/ash/common/wm/window_state.h
+++ b/ash/common/wm/window_state.h
@@ -202,6 +202,18 @@ class ASH_EXPORT WindowState {
hide_shelf_when_fullscreen_ = value;
}
+ // Gets/sets whether the shelf should be autohidden when this window is
+ // fullscreen or active.
+ // Note: if true, this will override the logic controlled by
+ // hide_shelf_when_fullscreen.
+ bool autohide_shelf_when_maximized_or_fullscreen() const {
+ return autohide_shelf_when_maximized_or_fullscreen_;
+ }
+
+ void set_autohide_shelf_when_maximized_or_fullscreen(bool value) {
+ autohide_shelf_when_maximized_or_fullscreen_ = value;
+ }
+
// If the minimum visibility is true, ash will try to keep a
// minimum amount of the window is always visible on the work area
// when shown.
@@ -370,6 +382,7 @@ class ASH_EXPORT WindowState {
bool in_immersive_fullscreen_;
bool ignore_keyboard_bounds_change_ = false;
bool hide_shelf_when_fullscreen_;
+ bool autohide_shelf_when_maximized_or_fullscreen_;
bool minimum_visibility_;
bool can_be_dragged_;
bool cached_always_on_top_;
« no previous file with comments | « ash/common/shelf/shelf_layout_manager.cc ('k') | ash/common/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698