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

Side by Side Diff: ash/aura/wm_lookup_aura.cc

Issue 2726823003: Remove WmLookup. (Closed)
Patch Set: Clean up include and modify comment. 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
« no previous file with comments | « ash/aura/wm_lookup_aura.h ('k') | ash/aura/wm_shell_aura.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/aura/wm_lookup_aura.h"
6
7 #include "ash/common/wm_layout_manager.h"
8 #include "ash/common/wm_window.h"
9 #include "ash/display/window_tree_host_manager.h"
10 #include "ash/root_window_controller.h"
11 #include "ash/shell.h"
12 #include "ui/views/widget/widget.h"
13
14 namespace ash {
15
16 WmLookupAura::WmLookupAura() {
17 WmLookup::Set(this);
18 }
19
20 WmLookupAura::~WmLookupAura() {
21 WmLookup::Set(nullptr);
22 }
23
24 RootWindowController* WmLookupAura::GetRootWindowControllerWithDisplayId(
25 int64_t id) {
26 aura::Window* root_window = Shell::GetInstance()
27 ->window_tree_host_manager()
28 ->GetRootWindowForDisplayId(id);
29 return root_window ? RootWindowController::ForWindow(root_window) : nullptr;
30 }
31
32 WmWindow* WmLookupAura::GetWindowForWidget(views::Widget* widget) {
33 return WmWindow::Get(widget->GetNativeWindow());
34 }
35
36 } // namespace ash
OLDNEW
« no previous file with comments | « ash/aura/wm_lookup_aura.h ('k') | ash/aura/wm_shell_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698