| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // Gets/sets whether the shelf should be hidden when this window is | 163 // Gets/sets whether the shelf should be hidden when this window is |
| 164 // fullscreen. | 164 // fullscreen. |
| 165 bool hide_shelf_when_fullscreen() const { | 165 bool hide_shelf_when_fullscreen() const { |
| 166 return hide_shelf_when_fullscreen_; | 166 return hide_shelf_when_fullscreen_; |
| 167 } | 167 } |
| 168 | 168 |
| 169 void set_hide_shelf_when_fullscreen(bool value) { | 169 void set_hide_shelf_when_fullscreen(bool value) { |
| 170 hide_shelf_when_fullscreen_ = value; | 170 hide_shelf_when_fullscreen_ = value; |
| 171 } | 171 } |
| 172 | 172 |
| 173 // Sets/gets the flag to suppress the cross-fade animation for | |
| 174 // the transition to the fullscreen state. | |
| 175 bool animate_to_fullscreen() const { | |
| 176 return animate_to_fullscreen_; | |
| 177 } | |
| 178 void set_animate_to_fullscreen(bool value) { | |
| 179 animate_to_fullscreen_ = value; | |
| 180 } | |
| 181 | |
| 182 // If the minimum visibilty is true, ash will try to keep a | 173 // If the minimum visibilty is true, ash will try to keep a |
| 183 // minimum amount of the window is always visible on the work area | 174 // minimum amount of the window is always visible on the work area |
| 184 // when shown. | 175 // when shown. |
| 185 // TODO(oshima): Consolidate this and window_position_managed | 176 // TODO(oshima): Consolidate this and window_position_managed |
| 186 // into single parameter to control the window placement. | 177 // into single parameter to control the window placement. |
| 187 bool minimum_visibility() const { | 178 bool minimum_visibility() const { |
| 188 return minimum_visibility_; | 179 return minimum_visibility_; |
| 189 } | 180 } |
| 190 void set_minimum_visibility(bool minimum_visibility) { | 181 void set_minimum_visibility(bool minimum_visibility) { |
| 191 minimum_visibility_ = minimum_visibility; | 182 minimum_visibility_ = minimum_visibility; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 bool window_position_managed_; | 320 bool window_position_managed_; |
| 330 bool bounds_changed_by_user_; | 321 bool bounds_changed_by_user_; |
| 331 bool panel_attached_; | 322 bool panel_attached_; |
| 332 bool ignored_by_shelf_; | 323 bool ignored_by_shelf_; |
| 333 bool can_consume_system_keys_; | 324 bool can_consume_system_keys_; |
| 334 bool top_row_keys_are_function_keys_; | 325 bool top_row_keys_are_function_keys_; |
| 335 scoped_ptr<DragDetails> drag_details_; | 326 scoped_ptr<DragDetails> drag_details_; |
| 336 | 327 |
| 337 bool unminimize_to_restore_bounds_; | 328 bool unminimize_to_restore_bounds_; |
| 338 bool hide_shelf_when_fullscreen_; | 329 bool hide_shelf_when_fullscreen_; |
| 339 bool animate_to_fullscreen_; | |
| 340 bool minimum_visibility_; | 330 bool minimum_visibility_; |
| 341 bool can_be_dragged_; | 331 bool can_be_dragged_; |
| 342 | 332 |
| 343 // A property to remember the window position which was set before the | 333 // A property to remember the window position which was set before the |
| 344 // auto window position manager changed the window bounds, so that it can get | 334 // auto window position manager changed the window bounds, so that it can get |
| 345 // restored when only this one window gets shown. | 335 // restored when only this one window gets shown. |
| 346 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_; | 336 scoped_ptr<gfx::Rect> pre_auto_manage_window_bounds_; |
| 347 | 337 |
| 348 ObserverList<WindowStateObserver> observer_list_; | 338 ObserverList<WindowStateObserver> observer_list_; |
| 349 | 339 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 365 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); | 355 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); |
| 366 | 356 |
| 367 // const version of GetWindowState. | 357 // const version of GetWindowState. |
| 368 ASH_EXPORT const WindowState* | 358 ASH_EXPORT const WindowState* |
| 369 GetWindowState(const aura::Window* window); | 359 GetWindowState(const aura::Window* window); |
| 370 | 360 |
| 371 } // namespace wm | 361 } // namespace wm |
| 372 } // namespace ash | 362 } // namespace ash |
| 373 | 363 |
| 374 #endif // ASH_WM_WINDOW_STATE_H_ | 364 #endif // ASH_WM_WINDOW_STATE_H_ |
| OLD | NEW |