| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_WM_WINDOW_STATE_H_ | 5 #ifndef ASH_WM_WINDOW_STATE_H_ |
| 6 #define ASH_WM_WINDOW_STATE_H_ | 6 #define ASH_WM_WINDOW_STATE_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/wm/drag_details.h" | 9 #include "ash/wm/drag_details.h" |
| 10 #include "ash/wm/wm_types.h" | 10 #include "ash/wm/wm_types.h" |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 // Gets/sets whether the shelf should be hidden when this window is | 191 // Gets/sets whether the shelf should be hidden when this window is |
| 192 // fullscreen. | 192 // fullscreen. |
| 193 bool hide_shelf_when_fullscreen() const { | 193 bool hide_shelf_when_fullscreen() const { |
| 194 return hide_shelf_when_fullscreen_; | 194 return hide_shelf_when_fullscreen_; |
| 195 } | 195 } |
| 196 | 196 |
| 197 void set_hide_shelf_when_fullscreen(bool value) { | 197 void set_hide_shelf_when_fullscreen(bool value) { |
| 198 hide_shelf_when_fullscreen_ = value; | 198 hide_shelf_when_fullscreen_ = value; |
| 199 } | 199 } |
| 200 | 200 |
| 201 // If the minimum visibilty is true, ash will try to keep a | 201 // If the minimum visibility is true, ash will try to keep a |
| 202 // minimum amount of the window is always visible on the work area | 202 // minimum amount of the window is always visible on the work area |
| 203 // when shown. | 203 // when shown. |
| 204 // TODO(oshima): Consolidate this and window_position_managed | 204 // TODO(oshima): Consolidate this and window_position_managed |
| 205 // into single parameter to control the window placement. | 205 // into single parameter to control the window placement. |
| 206 bool minimum_visibility() const { | 206 bool minimum_visibility() const { |
| 207 return minimum_visibility_; | 207 return minimum_visibility_; |
| 208 } | 208 } |
| 209 void set_minimum_visibility(bool minimum_visibility) { | 209 void set_minimum_visibility(bool minimum_visibility) { |
| 210 minimum_visibility_ = minimum_visibility; | 210 minimum_visibility_ = minimum_visibility; |
| 211 } | 211 } |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 404 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 404 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 405 | 405 |
| 406 // const version of GetWindowState. | 406 // const version of GetWindowState. |
| 407 ASH_EXPORT const WindowState* | 407 ASH_EXPORT const WindowState* |
| 408 GetWindowState(const aura::Window* window); | 408 GetWindowState(const aura::Window* window); |
| 409 | 409 |
| 410 } // namespace wm | 410 } // namespace wm |
| 411 } // namespace ash | 411 } // namespace ash |
| 412 | 412 |
| 413 #endif // ASH_WM_WINDOW_STATE_H_ | 413 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |