OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/workspace/workspace_layout_manager.h" | 5 #include "ash/common/wm/workspace/workspace_layout_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "ash/common/session/session_state_delegate.h" | 9 #include "ash/common/session/session_state_delegate.h" |
10 #include "ash/common/shelf/wm_shelf.h" | 10 #include "ash/common/shelf/wm_shelf.h" |
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 UpdateShelfVisibility(); | 200 UpdateShelfVisibility(); |
201 } | 201 } |
202 } | 202 } |
203 | 203 |
204 void WorkspaceLayoutManager::OnWindowPropertyChanged( | 204 void WorkspaceLayoutManager::OnWindowPropertyChanged( |
205 WmWindow* window, | 205 WmWindow* window, |
206 WmWindowProperty property) { | 206 WmWindowProperty property) { |
207 if (property == WmWindowProperty::ALWAYS_ON_TOP && | 207 if (property == WmWindowProperty::ALWAYS_ON_TOP && |
208 window->GetBoolProperty(WmWindowProperty::ALWAYS_ON_TOP)) { | 208 window->GetBoolProperty(WmWindowProperty::ALWAYS_ON_TOP)) { |
209 WmWindow* container = | 209 WmWindow* container = |
210 root_window_controller_->GetAlwaysOnTopController()->GetContainer( | 210 root_window_controller_->always_on_top_controller()->GetContainer( |
211 window); | 211 window); |
212 if (window->GetParent() != container) | 212 if (window->GetParent() != container) |
213 container->AddChild(window); | 213 container->AddChild(window); |
214 } | 214 } |
215 } | 215 } |
216 | 216 |
217 void WorkspaceLayoutManager::OnWindowStackingChanged(WmWindow* window) { | 217 void WorkspaceLayoutManager::OnWindowStackingChanged(WmWindow* window) { |
218 UpdateShelfVisibility(); | 218 UpdateShelfVisibility(); |
219 UpdateFullscreenState(); | 219 UpdateFullscreenState(); |
220 if (backdrop_delegate_) | 220 if (backdrop_delegate_) |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
377 for (auto* window : windows) { | 377 for (auto* window : windows) { |
378 wm::WindowState* window_state = window->GetWindowState(); | 378 wm::WindowState* window_state = window->GetWindowState(); |
379 if (window_on_top) | 379 if (window_on_top) |
380 window_state->DisableAlwaysOnTop(window_on_top); | 380 window_state->DisableAlwaysOnTop(window_on_top); |
381 else | 381 else |
382 window_state->RestoreAlwaysOnTop(); | 382 window_state->RestoreAlwaysOnTop(); |
383 } | 383 } |
384 } | 384 } |
385 | 385 |
386 } // namespace ash | 386 } // namespace ash |
OLD | NEW |