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

Unified Diff: ui/views/mus/native_widget_mus.cc

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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 | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/native_widget_mus.cc
diff --git a/ui/views/mus/native_widget_mus.cc b/ui/views/mus/native_widget_mus.cc
index 7bcc4ac7a17206250df694f2adab5f9ba3fdd336..7c80b6ab60ba47edcadef98c010fae9d6b1f66ef 100644
--- a/ui/views/mus/native_widget_mus.cc
+++ b/ui/views/mus/native_widget_mus.cc
@@ -377,6 +377,16 @@ void NativeWidgetMus::NotifyFrameChanged(
}
}
+// static
+Widget* NativeWidgetMus::GetWidgetForWindow(mus::Window* window) {
+ if (!window)
+ return nullptr;
+ NativeWidgetMus* native_widget = window->GetLocalProperty(kNativeWidgetMusKey);
+ if (!native_widget)
+ return nullptr;
+ return native_widget->GetWidget();
+}
+
aura::Window* NativeWidgetMus::GetRootWindow() {
return window_tree_host_->window();
}
« no previous file with comments | « ui/views/mus/native_widget_mus.h ('k') | ui/views/mus/window_manager_connection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698