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

Unified Diff: ash/mus/bridge/wm_lookup_mus.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/mus/bridge/wm_lookup_mus.h ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/mus/bridge/wm_lookup_mus.cc
diff --git a/ash/mus/bridge/wm_lookup_mus.cc b/ash/mus/bridge/wm_lookup_mus.cc
deleted file mode 100644
index b5cab151e7f2d959003de31614669f39027a6bcf..0000000000000000000000000000000000000000
--- a/ash/mus/bridge/wm_lookup_mus.cc
+++ /dev/null
@@ -1,33 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ash/mus/bridge/wm_lookup_mus.h"
-
-#include "ash/common/wm_window.h"
-#include "ash/mus/bridge/wm_shell_mus.h"
-#include "ui/views/widget/widget.h"
-
-namespace ash {
-namespace mus {
-
-WmLookupMus::WmLookupMus() {
- WmLookup::Set(this);
-}
-
-WmLookupMus::~WmLookupMus() {
- if (WmLookupMus::Get() == this)
- WmLookup::Set(nullptr);
-}
-
-RootWindowController* WmLookupMus::GetRootWindowControllerWithDisplayId(
- int64_t id) {
- return WmShellMus::Get()->GetRootWindowControllerWithDisplayId(id);
-}
-
-WmWindow* WmLookupMus::GetWindowForWidget(views::Widget* widget) {
- return WmWindow::Get(widget->GetNativeWindow());
-}
-
-} // namespace mus
-} // namespace ash
« no previous file with comments | « ash/mus/bridge/wm_lookup_mus.h ('k') | ash/mus/window_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698