OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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/wm/aura/wm_lookup_aura.h" | 5 #include "ash/aura/wm_lookup_aura.h" |
6 | 6 |
7 #include "ash/common/wm/wm_layout_manager.h" | 7 #include "ash/aura/wm_root_window_controller_aura.h" |
| 8 #include "ash/aura/wm_window_aura.h" |
| 9 #include "ash/common/wm_layout_manager.h" |
8 #include "ash/display/window_tree_host_manager.h" | 10 #include "ash/display/window_tree_host_manager.h" |
9 #include "ash/shell.h" | 11 #include "ash/shell.h" |
10 #include "ash/wm/aura/wm_root_window_controller_aura.h" | |
11 #include "ash/wm/aura/wm_window_aura.h" | |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 namespace wm { | |
15 | 14 |
16 WmLookupAura::WmLookupAura() { | 15 WmLookupAura::WmLookupAura() { |
17 WmLookup::Set(this); | 16 WmLookup::Set(this); |
18 } | 17 } |
19 | 18 |
20 WmLookupAura::~WmLookupAura() { | 19 WmLookupAura::~WmLookupAura() { |
21 WmLookup::Set(nullptr); | 20 WmLookup::Set(nullptr); |
22 } | 21 } |
23 | 22 |
24 WmRootWindowController* WmLookupAura::GetRootWindowControllerWithDisplayId( | 23 WmRootWindowController* WmLookupAura::GetRootWindowControllerWithDisplayId( |
25 int64_t id) { | 24 int64_t id) { |
26 return WmRootWindowControllerAura::Get(Shell::GetInstance() | 25 return WmRootWindowControllerAura::Get(Shell::GetInstance() |
27 ->window_tree_host_manager() | 26 ->window_tree_host_manager() |
28 ->GetRootWindowForDisplayId(id)); | 27 ->GetRootWindowForDisplayId(id)); |
29 } | 28 } |
30 | 29 |
31 WmWindow* WmLookupAura::GetWindowForWidget(views::Widget* widget) { | 30 WmWindow* WmLookupAura::GetWindowForWidget(views::Widget* widget) { |
32 return WmWindowAura::Get(widget->GetNativeWindow()); | 31 return WmWindowAura::Get(widget->GetNativeWindow()); |
33 } | 32 } |
34 | 33 |
35 } // namespace wm | |
36 } // namespace ash | 34 } // namespace ash |
OLD | NEW |