| Index: ash/wm/widget_finder.cc
|
| diff --git a/ash/wm/widget_finder.cc b/ash/wm/widget_finder.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..5989f324975bcfa84c90ca9f663dc26932287c44
|
| --- /dev/null
|
| +++ b/ash/wm/widget_finder.cc
|
| @@ -0,0 +1,20 @@
|
| +// Copyright 2017 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/wm/widget_finder.h"
|
| +
|
| +#include "ash/wm/window_properties.h"
|
| +#include "ui/aura/window.h"
|
| +#include "ui/views/widget/widget.h"
|
| +
|
| +namespace ash {
|
| +
|
| +views::Widget* GetInternalWidgetForWindow(aura::Window* window) {
|
| + return window->GetProperty(kWidgetCreationTypeKey) ==
|
| + WidgetCreationType::INTERNAL
|
| + ? views::Widget::GetWidgetForNativeView(window)
|
| + : nullptr;
|
| +}
|
| +
|
| +} // namespace ash
|
|
|