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

Unified Diff: ash/wm/widget_finder.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/common/wm_window.cc ('k') | ash/wm/widget_finder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/widget_finder.h
diff --git a/ash/wm/widget_finder.h b/ash/wm/widget_finder.h
new file mode 100644
index 0000000000000000000000000000000000000000..1bf286c226e1ac14b72e96ee797e72ba58fb0e3b
--- /dev/null
+++ b/ash/wm/widget_finder.h
@@ -0,0 +1,27 @@
+// 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.
+
+#ifndef ASH_WIDGET_FINDER_H_
+#define ASH_WIDGET_FINDER_H_
+
+#include "ash/ash_export.h"
+
+namespace aura {
+class Window;
+}
+
+namespace views {
+class Widget;
+}
+
+namespace ash {
+
+// Returns the widget associated with |window|, or null if not associated with
+// a widget. Only ash system UI widgets are returned, not widgets created
+// by the mus window manager code to show a non-client frame.
+ASH_EXPORT views::Widget* GetInternalWidgetForWindow(aura::Window* window);
+
+} // namespace ash
+
+#endif // ASH_WIDGET_FINDER_H_
« no previous file with comments | « ash/common/wm_window.cc ('k') | ash/wm/widget_finder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698