| 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/keyboard/keyboard_observer_register.h" | 9 #include "ash/common/keyboard/keyboard_observer_register.h" |
| 10 #include "ash/common/session/session_controller.h" | 10 #include "ash/common/session/session_controller.h" |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 289 const display::Display& display, | 289 const display::Display& display, |
| 290 uint32_t changed_metrics) { | 290 uint32_t changed_metrics) { |
| 291 if (window_->GetDisplayNearestWindow().id() != display.id()) | 291 if (window_->GetDisplayNearestWindow().id() != display.id()) |
| 292 return; | 292 return; |
| 293 | 293 |
| 294 const gfx::Rect work_area(wm::GetDisplayWorkAreaBoundsInParent(window_)); | 294 const gfx::Rect work_area(wm::GetDisplayWorkAreaBoundsInParent(window_)); |
| 295 if (work_area != work_area_in_parent_) { | 295 if (work_area != work_area_in_parent_) { |
| 296 const wm::WMEvent event(wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); | 296 const wm::WMEvent event(wm::WM_EVENT_WORKAREA_BOUNDS_CHANGED); |
| 297 AdjustAllWindowsBoundsForWorkAreaChange(&event); | 297 AdjustAllWindowsBoundsForWorkAreaChange(&event); |
| 298 } | 298 } |
| 299 if (backdrop_delegate_) | |
| 300 backdrop_delegate_->OnDisplayWorkAreaInsetsChanged(); | |
| 301 } | 299 } |
| 302 | 300 |
| 303 ////////////////////////////////////////////////////////////////////////////// | 301 ////////////////////////////////////////////////////////////////////////////// |
| 304 // WorkspaceLayoutManager, ShellObserver implementation: | 302 // WorkspaceLayoutManager, ShellObserver implementation: |
| 305 | 303 |
| 306 void WorkspaceLayoutManager::OnFullscreenStateChanged(bool is_fullscreen, | 304 void WorkspaceLayoutManager::OnFullscreenStateChanged(bool is_fullscreen, |
| 307 WmWindow* root_window) { | 305 WmWindow* root_window) { |
| 308 if (root_window != root_window_ || is_fullscreen_ == is_fullscreen) | 306 if (root_window != root_window_ || is_fullscreen_ == is_fullscreen) |
| 309 return; | 307 return; |
| 310 | 308 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 for (auto* window : windows) { | 394 for (auto* window : windows) { |
| 397 wm::WindowState* window_state = window->GetWindowState(); | 395 wm::WindowState* window_state = window->GetWindowState(); |
| 398 if (window_on_top) | 396 if (window_on_top) |
| 399 window_state->DisableAlwaysOnTop(window_on_top); | 397 window_state->DisableAlwaysOnTop(window_on_top); |
| 400 else | 398 else |
| 401 window_state->RestoreAlwaysOnTop(); | 399 window_state->RestoreAlwaysOnTop(); |
| 402 } | 400 } |
| 403 } | 401 } |
| 404 | 402 |
| 405 } // namespace ash | 403 } // namespace ash |
| OLD | NEW |