Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "ash/wm/aura/wm_lookup_aura.h" | |
| 6 | |
| 7 #include "ash/display/window_tree_host_manager.h" | |
| 8 #include "ash/shell.h" | |
| 9 #include "ash/wm/aura/wm_root_window_controller_aura.h" | |
| 10 #include "ash/wm/aura/wm_window_aura.h" | |
| 11 #include "ash/wm/common/wm_layout_manager.h" | |
| 12 | |
| 13 namespace ash { | |
| 14 namespace wm { | |
| 15 | |
| 16 WmLookupAura::WmLookupAura() { | |
| 17 WmLookup::Set(this); | |
| 18 } | |
| 19 WmLookupAura::~WmLookupAura() { | |
|
James Cook
2016/05/03 18:43:10
nit: blank line above
sky
2016/05/03 19:10:06
Done.
| |
| 20 WmLookup::Set(nullptr); | |
| 21 } | |
| 22 | |
| 23 WmRootWindowController* WmLookupAura::GetRootWindowControllerWithDisplayId( | |
| 24 int64_t id) { | |
| 25 return WmRootWindowControllerAura::Get(Shell::GetInstance() | |
| 26 ->window_tree_host_manager() | |
| 27 ->GetRootWindowForDisplayId(id)); | |
| 28 } | |
| 29 | |
| 30 WmWindow* WmLookupAura::GetWindowForWidget(views::Widget* widget) { | |
| 31 return WmWindowAura::Get(widget->GetNativeWindow()); | |
| 32 } | |
| 33 | |
| 34 } // namespace wm | |
| 35 } // namespace ash | |
| OLD | NEW |