| 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 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 | 297 |
| 298 WindowState::WindowState(WmWindow* window) | 298 WindowState::WindowState(WmWindow* window) |
| 299 : window_(window), | 299 : window_(window), |
| 300 window_position_managed_(false), | 300 window_position_managed_(false), |
| 301 bounds_changed_by_user_(false), | 301 bounds_changed_by_user_(false), |
| 302 ignored_by_shelf_(false), | 302 ignored_by_shelf_(false), |
| 303 can_consume_system_keys_(false), | 303 can_consume_system_keys_(false), |
| 304 unminimize_to_restore_bounds_(false), | 304 unminimize_to_restore_bounds_(false), |
| 305 in_immersive_fullscreen_(false), | 305 in_immersive_fullscreen_(false), |
| 306 hide_shelf_when_fullscreen_(true), | 306 hide_shelf_when_fullscreen_(true), |
| 307 autohide_shelf_when_maximized_or_fullscreen_(false), |
| 307 minimum_visibility_(false), | 308 minimum_visibility_(false), |
| 308 can_be_dragged_(true), | 309 can_be_dragged_(true), |
| 309 cached_always_on_top_(false), | 310 cached_always_on_top_(false), |
| 310 ignore_property_change_(false), | 311 ignore_property_change_(false), |
| 311 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} | 312 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} |
| 312 | 313 |
| 313 bool WindowState::GetAlwaysOnTop() const { | 314 bool WindowState::GetAlwaysOnTop() const { |
| 314 return window_->IsAlwaysOnTop(); | 315 return window_->IsAlwaysOnTop(); |
| 315 } | 316 } |
| 316 | 317 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 if (!window_->GetTargetVisibility()) { | 393 if (!window_->GetTargetVisibility()) { |
| 393 SetBoundsConstrained(new_bounds); | 394 SetBoundsConstrained(new_bounds); |
| 394 return; | 395 return; |
| 395 } | 396 } |
| 396 | 397 |
| 397 window_->SetBoundsDirectCrossFade(new_bounds); | 398 window_->SetBoundsDirectCrossFade(new_bounds); |
| 398 } | 399 } |
| 399 | 400 |
| 400 } // namespace wm | 401 } // namespace wm |
| 401 } // namespace ash | 402 } // namespace ash |
| OLD | NEW |