| 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 #include "ash/wm/window_state.h" | 5 #include "ash/wm/window_state.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/root_window_controller.h" | 8 #include "ash/root_window_controller.h" |
| 9 #include "ash/screen_ash.h" | 9 #include "ash/screen_ash.h" |
| 10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 WindowState::WindowState(aura::Window* window) | 27 WindowState::WindowState(aura::Window* window) |
| 28 : window_(window), | 28 : window_(window), |
| 29 window_position_managed_(false), | 29 window_position_managed_(false), |
| 30 bounds_changed_by_user_(false), | 30 bounds_changed_by_user_(false), |
| 31 panel_attached_(true), | 31 panel_attached_(true), |
| 32 continue_drag_after_reparent_(false), | 32 continue_drag_after_reparent_(false), |
| 33 ignored_by_shelf_(false), | 33 ignored_by_shelf_(false), |
| 34 can_consume_system_keys_(false), | 34 can_consume_system_keys_(false), |
| 35 top_row_keys_are_function_keys_(false), | 35 top_row_keys_are_function_keys_(false), |
| 36 window_resizer_(NULL), | |
| 37 always_restores_to_restore_bounds_(false), | 36 always_restores_to_restore_bounds_(false), |
| 38 hide_shelf_when_fullscreen_(true), | 37 hide_shelf_when_fullscreen_(true), |
| 39 animate_to_fullscreen_(true), | 38 animate_to_fullscreen_(true), |
| 40 minimum_visibility_(false), | 39 minimum_visibility_(false), |
| 41 in_set_window_show_type_(false), | 40 in_set_window_show_type_(false), |
| 42 window_show_type_(ToWindowShowType(GetShowState())) { | 41 window_show_type_(ToWindowShowType(GetShowState())) { |
| 43 window_->AddObserver(this); | 42 window_->AddObserver(this); |
| 44 | 43 |
| 45 #if defined(OS_CHROMEOS) | 44 #if defined(OS_CHROMEOS) |
| 46 // NOTE(pkotwicz): Animating to immersive fullscreen does not look good. When | 45 // NOTE(pkotwicz): Animating to immersive fullscreen does not look good. When |
| (...skipping 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 } | 322 } |
| 324 return settings; | 323 return settings; |
| 325 } | 324 } |
| 326 | 325 |
| 327 const WindowState* GetWindowState(const aura::Window* window) { | 326 const WindowState* GetWindowState(const aura::Window* window) { |
| 328 return GetWindowState(const_cast<aura::Window*>(window)); | 327 return GetWindowState(const_cast<aura::Window*>(window)); |
| 329 } | 328 } |
| 330 | 329 |
| 331 } // namespace wm | 330 } // namespace wm |
| 332 } // namespace ash | 331 } // namespace ash |
| OLD | NEW |