| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 | 288 |
| 289 WindowState::WindowState(WmWindow* window) | 289 WindowState::WindowState(WmWindow* window) |
| 290 : window_(window), | 290 : window_(window), |
| 291 window_position_managed_(false), | 291 window_position_managed_(false), |
| 292 bounds_changed_by_user_(false), | 292 bounds_changed_by_user_(false), |
| 293 ignored_by_shelf_(false), | 293 ignored_by_shelf_(false), |
| 294 can_consume_system_keys_(false), | 294 can_consume_system_keys_(false), |
| 295 unminimize_to_restore_bounds_(false), | 295 unminimize_to_restore_bounds_(false), |
| 296 in_immersive_fullscreen_(false), | 296 in_immersive_fullscreen_(false), |
| 297 hide_shelf_when_fullscreen_(true), | 297 hide_shelf_when_fullscreen_(true), |
| 298 autohide_shelf_when_maximized_or_fullscreen_(false), |
| 298 minimum_visibility_(false), | 299 minimum_visibility_(false), |
| 299 can_be_dragged_(true), | 300 can_be_dragged_(true), |
| 300 cached_always_on_top_(false), | 301 cached_always_on_top_(false), |
| 301 ignore_property_change_(false), | 302 ignore_property_change_(false), |
| 302 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} | 303 current_state_(new DefaultState(ToWindowStateType(GetShowState()))) {} |
| 303 | 304 |
| 304 bool WindowState::GetAlwaysOnTop() const { | 305 bool WindowState::GetAlwaysOnTop() const { |
| 305 return window_->IsAlwaysOnTop(); | 306 return window_->IsAlwaysOnTop(); |
| 306 } | 307 } |
| 307 | 308 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 if (!window_->GetTargetVisibility()) { | 384 if (!window_->GetTargetVisibility()) { |
| 384 SetBoundsConstrained(new_bounds); | 385 SetBoundsConstrained(new_bounds); |
| 385 return; | 386 return; |
| 386 } | 387 } |
| 387 | 388 |
| 388 window_->SetBoundsDirectCrossFade(new_bounds); | 389 window_->SetBoundsDirectCrossFade(new_bounds); |
| 389 } | 390 } |
| 390 | 391 |
| 391 } // namespace wm | 392 } // namespace wm |
| 392 } // namespace ash | 393 } // namespace ash |
| OLD | NEW |