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

Side by Side Diff: ash/wm/widget_finder.cc

Issue 2798333005: Moves WmWindow::GetInternalWidget() into a standalone function (Closed)
Patch Set: Created 3 years, 8 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/wm/widget_finder.h ('k') | ash/wm/window_mirror_view.cc » ('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 2017 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/wm/widget_finder.h"
6
7 #include "ash/wm/window_properties.h"
8 #include "ui/aura/window.h"
9 #include "ui/views/widget/widget.h"
10
11 namespace ash {
12
13 views::Widget* GetInternalWidgetForWindow(aura::Window* window) {
14 return window->GetProperty(kWidgetCreationTypeKey) ==
15 WidgetCreationType::INTERNAL
16 ? views::Widget::GetWidgetForNativeView(window)
17 : nullptr;
18 }
19
20 } // namespace ash
OLDNEW
« no previous file with comments | « ash/wm/widget_finder.h ('k') | ash/wm/window_mirror_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698