| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ui/wm/core/transient_window_controller.h" | 5 #include "ui/wm/core/transient_window_controller.h" |
| 6 | 6 |
| 7 #include "ui/wm/core/transient_window_manager.h" | 7 #include "ui/wm/core/transient_window_manager.h" |
| 8 | 8 |
| 9 namespace views { | 9 namespace wm { |
| 10 namespace corewm { | |
| 11 | 10 |
| 12 TransientWindowController::TransientWindowController() { | 11 TransientWindowController::TransientWindowController() { |
| 13 } | 12 } |
| 14 | 13 |
| 15 TransientWindowController::~TransientWindowController() { | 14 TransientWindowController::~TransientWindowController() { |
| 16 } | 15 } |
| 17 | 16 |
| 18 void TransientWindowController::AddTransientChild(aura::Window* parent, | 17 void TransientWindowController::AddTransientChild(aura::Window* parent, |
| 19 aura::Window* child) { | 18 aura::Window* child) { |
| 20 TransientWindowManager::Get(parent)->AddTransientChild(child); | 19 TransientWindowManager::Get(parent)->AddTransientChild(child); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 31 const_cast<const aura::Window*>(window))); | 30 const_cast<const aura::Window*>(window))); |
| 32 } | 31 } |
| 33 | 32 |
| 34 const aura::Window* TransientWindowController::GetTransientParent( | 33 const aura::Window* TransientWindowController::GetTransientParent( |
| 35 const aura::Window* window) { | 34 const aura::Window* window) { |
| 36 const TransientWindowManager* window_manager = | 35 const TransientWindowManager* window_manager = |
| 37 TransientWindowManager::Get(window); | 36 TransientWindowManager::Get(window); |
| 38 return window_manager ? window_manager->transient_parent() : NULL; | 37 return window_manager ? window_manager->transient_parent() : NULL; |
| 39 } | 38 } |
| 40 | 39 |
| 41 } // namespace corewm | 40 } // namespace wm |
| 42 } // namespace views | |
| OLD | NEW |