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

Unified Diff: ash/wm/window_state.h

Issue 32943006: [Refactor] Replace kFullscreenUsesMinimalChromeKey with WindowState::hide_shelf_when_fullscreen() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 2 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/wm/window_properties.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state.h
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h
index 04df1072ca7d3af0e2268e7aaef49a7b67d49142..653071fea794991d379e25eb452e5a8f82293d80 100644
--- a/ash/wm/window_state.h
+++ b/ash/wm/window_state.h
@@ -124,6 +124,16 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
always_restores_to_restore_bounds_ = value;
}
+ // Gets/sets whether the shelf should be hidden when this window is
+ // fullscreen.
+ bool hide_shelf_when_fullscreen() const {
+ return hide_shelf_when_fullscreen_;
+ }
+
+ void set_hide_shelf_when_fullscreen(bool value) {
+ hide_shelf_when_fullscreen_ = value;
+ }
+
// Gets/Sets the bounds of the window before it was moved by the auto window
// management. As long as it was not auto-managed, it will return NULL.
const gfx::Rect* pre_auto_manage_window_bounds() const {
@@ -235,6 +245,7 @@ class ASH_EXPORT WindowState : public aura::WindowObserver {
WindowResizer* window_resizer_;
bool always_restores_to_restore_bounds_;
+ bool hide_shelf_when_fullscreen_;
// A property to remember the window position which was set before the
// auto window position manager changed the window bounds, so that it can get
« no previous file with comments | « ash/wm/window_properties.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698