Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: ash/mus/bridge/wm_lookup_mus.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up and rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698