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/common/wm/window_state.h" | 5 #include "ash/common/wm/window_state.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/wm/default_state.h" | 9 #include "ash/common/wm/default_state.h" |
10 #include "ash/common/wm/window_positioning_utils.h" | 10 #include "ash/common/wm/window_positioning_utils.h" |
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
300 | 300 |
301 WindowState::WindowState(WmWindow* window) | 301 WindowState::WindowState(WmWindow* window) |
302 : window_(window), | 302 : window_(window), |
303 window_position_managed_(false), | 303 window_position_managed_(false), |
304 bounds_changed_by_user_(false), | 304 bounds_changed_by_user_(false), |
305 panel_attached_(true), | 305 panel_attached_(true), |
306 ignored_by_shelf_(false), | 306 ignored_by_shelf_(false), |
307 can_consume_system_keys_(false), | 307 can_consume_system_keys_(false), |
308 unminimize_to_restore_bounds_(false), | 308 unminimize_to_restore_bounds_(false), |
309 in_immersive_fullscreen_(false), | 309 in_immersive_fullscreen_(false), |
| 310 hide_shelf_when_fullscreen_(true), |
310 minimum_visibility_(false), | 311 minimum_visibility_(false), |
311 can_be_dragged_(true), | 312 can_be_dragged_(true), |
312 cached_always_on_top_(false), | 313 cached_always_on_top_(false), |
313 ignore_property_change_(false), | 314 ignore_property_change_(false), |
314 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} | 315 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} |
315 | 316 |
316 bool WindowState::GetAlwaysOnTop() const { | 317 bool WindowState::GetAlwaysOnTop() const { |
317 return window_->IsAlwaysOnTop(); | 318 return window_->IsAlwaysOnTop(); |
318 } | 319 } |
319 | 320 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 if (!window_->GetTargetVisibility()) { | 396 if (!window_->GetTargetVisibility()) { |
396 SetBoundsConstrained(new_bounds); | 397 SetBoundsConstrained(new_bounds); |
397 return; | 398 return; |
398 } | 399 } |
399 | 400 |
400 window_->SetBoundsDirectCrossFade(new_bounds); | 401 window_->SetBoundsDirectCrossFade(new_bounds); |
401 } | 402 } |
402 | 403 |
403 } // namespace wm | 404 } // namespace wm |
404 } // namespace ash | 405 } // namespace ash |
OLD | NEW |