Index: ash/wm/window_state.h |
diff --git a/ash/wm/window_state.h b/ash/wm/window_state.h |
index 8c68e2466b5116aa0bb965c1e2d9d99d9040ab3f..887e46369876e1d54a90f7027c754168db07b825 100644 |
--- a/ash/wm/window_state.h |
+++ b/ash/wm/window_state.h |
@@ -122,6 +122,24 @@ class ASH_EXPORT WindowState : public aura::WindowObserver { |
always_restores_to_restore_bounds_ = value; |
} |
+ // Sets/gets the flag to use maximized mode instead of |
+ // fullscreen. Used for V1 app which has custom window controls. |
+ bool maximize_when_fullscreen() const { |
pkotwicz
2013/10/25 05:16:18
We need to be careful as to how much we want to re
|
+ return maximize_when_fullscreen_; |
+ } |
+ void set_maximize_when_fullscreen(bool value) { |
+ maximize_when_fullscreen_ = value; |
+ } |
+ |
+ // Sets/gets the flag to suppress the cross-fade animation for |
+ // the transition to the fullscreen state. |
+ bool animate_to_fullscreen() const { |
+ return animate_to_fullscreen_; |
+ } |
+ void set_animate_to_fullscreen(bool value) { |
+ animate_to_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 { |
@@ -217,8 +235,9 @@ class ASH_EXPORT WindowState : public aura::WindowObserver { |
bool ignored_by_shelf_; |
bool can_consume_system_keys_; |
bool top_row_keys_are_function_keys_; |
- |
bool always_restores_to_restore_bounds_; |
+ bool maximize_when_fullscreen_; |
+ bool animate_to_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 |