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

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

Issue 2782223002: Add ability to have active window autohide shelf (Closed)
Patch Set: Add ability to have active window autohide shelf 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
Index: ash/common/wm/window_state.h
diff --git a/ash/common/wm/window_state.h b/ash/common/wm/window_state.h
index c7f2a1634ba1b03beb3b7725d053dac5e4387ef3..c120bbd1aee9d498c4612ac26be328d8d4a4a6cc 100644
--- a/ash/common/wm/window_state.h
+++ b/ash/common/wm/window_state.h
@@ -201,6 +201,15 @@ class ASH_EXPORT WindowState {
hide_shelf_when_fullscreen_ = value;
}
+ // Gets/sets whether the shelf should be hidden when this window is currently
+ // active. Note: if true, this will override the logic controlled by
+ // hide_shelf_when_fullscreen.
oshima 2017/03/30 14:01:27 shelf control is effective only when it's active i
yorkelee 2017/03/30 19:34:12 Renamed to autohide_shelf_when_fullscreen_or_maxim
+ bool hide_shelf_when_active() const { return hide_shelf_when_active_; }
+
+ void set_hide_shelf_when_active(bool value) {
+ hide_shelf_when_active_ = 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.
@@ -369,6 +378,7 @@ class ASH_EXPORT WindowState {
bool in_immersive_fullscreen_;
bool ignore_keyboard_bounds_change_ = false;
bool hide_shelf_when_fullscreen_;
+ bool hide_shelf_when_active_;
bool minimum_visibility_;
bool can_be_dragged_;
bool cached_always_on_top_;

Powered by Google App Engine
This is Rietveld 408576698