| 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/mus/bridge/wm_lookup_mus.h" | |
| 6 | |
| 7 #include "ash/common/wm_window.h" | |
| 8 #include "ash/mus/bridge/wm_shell_mus.h" | |
| 9 #include "ui/views/widget/widget.h" | |
| 10 | |
| 11 namespace ash { | |
| 12 namespace mus { | |
| 13 | |
| 14 WmLookupMus::WmLookupMus() { | |
| 15 WmLookup::Set(this); | |
| 16 } | |
| 17 | |
| 18 WmLookupMus::~WmLookupMus() { | |
| 19 if (WmLookupMus::Get() == this) | |
| 20 WmLookup::Set(nullptr); | |
| 21 } | |
| 22 | |
| 23 RootWindowController* WmLookupMus::GetRootWindowControllerWithDisplayId( | |
| 24 int64_t id) { | |
| 25 return WmShellMus::Get()->GetRootWindowControllerWithDisplayId(id); | |
| 26 } | |
| 27 | |
| 28 WmWindow* WmLookupMus::GetWindowForWidget(views::Widget* widget) { | |
| 29 return WmWindow::Get(widget->GetNativeWindow()); | |
| 30 } | |
| 31 | |
| 32 } // namespace mus | |
| 33 } // namespace ash | |
| OLD | NEW |