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_util.h" | 9 #include "ash/screen_util.h" |
10 #include "ash/shell_window_ids.h" | 10 #include "ash/shell_window_ids.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } // namespace | 82 } // namespace |
83 | 83 |
84 WindowState::WindowState(aura::Window* window) | 84 WindowState::WindowState(aura::Window* window) |
85 : window_(window), | 85 : window_(window), |
86 window_position_managed_(false), | 86 window_position_managed_(false), |
87 bounds_changed_by_user_(false), | 87 bounds_changed_by_user_(false), |
88 panel_attached_(true), | 88 panel_attached_(true), |
89 ignored_by_shelf_(false), | 89 ignored_by_shelf_(false), |
90 can_consume_system_keys_(false), | 90 can_consume_system_keys_(false), |
91 top_row_keys_are_function_keys_(false), | 91 top_row_keys_are_function_keys_(false), |
| 92 immersive_mode_(false), |
92 unminimize_to_restore_bounds_(false), | 93 unminimize_to_restore_bounds_(false), |
93 hide_shelf_when_fullscreen_(true), | 94 hide_shelf_when_fullscreen_(true), |
94 minimum_visibility_(false), | 95 minimum_visibility_(false), |
95 can_be_dragged_(true), | 96 can_be_dragged_(true), |
96 ignore_property_change_(false), | 97 ignore_property_change_(false), |
97 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) { | 98 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) { |
98 window_->AddObserver(this); | 99 window_->AddObserver(this); |
99 } | 100 } |
100 | 101 |
101 WindowState::~WindowState() { | 102 WindowState::~WindowState() { |
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 } | 446 } |
446 return settings; | 447 return settings; |
447 } | 448 } |
448 | 449 |
449 const WindowState* GetWindowState(const aura::Window* window) { | 450 const WindowState* GetWindowState(const aura::Window* window) { |
450 return GetWindowState(const_cast<aura::Window*>(window)); | 451 return GetWindowState(const_cast<aura::Window*>(window)); |
451 } | 452 } |
452 | 453 |
453 } // namespace wm | 454 } // namespace wm |
454 } // namespace ash | 455 } // namespace ash |
OLD | NEW |