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

Unified Diff: ui/aura/mus/window_port_mus.cc

Issue 2559703003: Converts WindowTreeClientTest to be in terms of aura (Closed)
Patch Set: feedback Created 4 years 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/aura/mus/window_port_mus.cc
diff --git a/ui/aura/mus/window_port_mus.cc b/ui/aura/mus/window_port_mus.cc
index d5a64e88c79980562c5792a140bbc36c9b926852..35fab977ef5be4b9841408de7b07407b71a8f81f 100644
--- a/ui/aura/mus/window_port_mus.cc
+++ b/ui/aura/mus/window_port_mus.cc
@@ -332,6 +332,10 @@ WindowPortMus::PrepareForServerVisibilityChange(bool value) {
return std::move(data);
}
+void WindowPortMus::PrepareForDestroy() {
+ ScheduleChange(ServerChangeType::DESTROY, ServerChangeData());
+}
+
void WindowPortMus::PrepareForTransientRestack(WindowMus* window) {
ServerChangeData change_data;
change_data.child_id = window->server_id();

Powered by Google App Engine
This is Rietveld 408576698