Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(390)

Side by Side Diff: ash/common/wm/workspace/workspace_layout_manager.cc

Issue 2350953009: Centralizes more shared code between ash and mash (Closed)
Patch Set: feedback Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/common/wm/container_finder.cc ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ash/common/wm/container_finder.cc ('k') | ash/common/wm_root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698