| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mus/window_manager.h" | 5 #include "ash/mus/window_manager.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 aura::Window* window, | 497 aura::Window* window, |
| 498 const gfx::Insets& insets, | 498 const gfx::Insets& insets, |
| 499 const std::vector<gfx::Rect>& additional_client_areas) { | 499 const std::vector<gfx::Rect>& additional_client_areas) { |
| 500 NonClientFrameController* non_client_frame_controller = | 500 NonClientFrameController* non_client_frame_controller = |
| 501 NonClientFrameController::Get(window); | 501 NonClientFrameController::Get(window); |
| 502 if (!non_client_frame_controller) | 502 if (!non_client_frame_controller) |
| 503 return; | 503 return; |
| 504 non_client_frame_controller->SetClientArea(insets, additional_client_areas); | 504 non_client_frame_controller->SetClientArea(insets, additional_client_areas); |
| 505 } | 505 } |
| 506 | 506 |
| 507 bool WindowManager::IsWindowActive(aura::Window* window) { |
| 508 return activation_client()->GetActiveWindow() == window; |
| 509 } |
| 510 |
| 511 void WindowManager::OnWmDeactivateWindow(aura::Window* window) { |
| 512 activation_client()->DeactivateWindow(window); |
| 513 } |
| 514 |
| 507 } // namespace mus | 515 } // namespace mus |
| 508 } // namespace ash | 516 } // namespace ash |
| OLD | NEW |