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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc

Issue 2645253002: DesktopAura: Track windows "owned" via the DesktopWindowTreeHost (Closed)
Patch Set: Add context, comment Created 3 years, 11 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
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
index f442ef1c3cc4400cfc8a4426e465a23510825580..86313b4541669177fb865fa3f5e39dbcc6c59433 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura.cc
@@ -962,6 +962,18 @@ std::string DesktopNativeWidgetAura::GetName() const {
return name_;
}
+Widget::Widgets DesktopNativeWidgetAura::GetAllOwnedTopLevelWidgets() const {
+ Widget::Widgets owned;
+ for (DesktopWindowTreeHost* owned_host :
+ desktop_window_tree_host_->GetOwnedTopLevelHosts()) {
+ DesktopNativeWidgetAura* child =
+ ForWindow(owned_host->AsWindowTreeHost()->window());
+ DCHECK(child);
+ owned.insert(child->GetWidget());
+ }
+ return owned;
+}
+
////////////////////////////////////////////////////////////////////////////////
// DesktopNativeWidgetAura, aura::WindowDelegate implementation:
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698