Chromium Code Reviews| Index: ash/common/wm/window_state.h |
| diff --git a/ash/common/wm/window_state.h b/ash/common/wm/window_state.h |
| index db48217669be7f998a799680a29f15644cfdce66..9d4eaac8c23ad95a1c594893277dd5ef5852658f 100644 |
| --- a/ash/common/wm/window_state.h |
| +++ b/ash/common/wm/window_state.h |
| @@ -289,6 +289,15 @@ class ASH_EXPORT WindowState { |
| ignore_keyboard_bounds_change_ = ignore_keyboard_bounds_change; |
| } |
| + // True if the window's bounds can be updated using SET_BOUNDS event in |
| + // maiximzed/fullscreen mode. |
| + void set_allow_set_bounds_in_maximized(bool value) { |
|
reveman
2016/08/12 16:17:31
nit: ..when_maximized or in_maximized_mode/state
oshima
2016/08/12 23:03:33
MAXIMIZED is used as a name of state ui code, and
reveman
2016/08/12 23:44:40
Sure
|
| + allow_set_bounds_in_maximized_ = value; |
| + } |
| + bool allow_set_bounds_in_maximized() const { |
| + return allow_set_bounds_in_maximized_; |
| + } |
| + |
| // Creates and takes ownership of a pointer to DragDetails when resizing is |
| // active. This should be done before a resizer gets created. |
| void CreateDragDetails(const gfx::Point& point_in_parent, |
| @@ -375,6 +384,7 @@ class ASH_EXPORT WindowState { |
| bool minimum_visibility_; |
| bool can_be_dragged_; |
| bool cached_always_on_top_; |
| + bool allow_set_bounds_in_maximized_ = false; |
| // 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 |