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

Unified Diff: components/mus/public/cpp/lib/window_tree_client.cc

Issue 2021383002: Update WindowTreeClientImpl OnWindowDestroying (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/window_tree_client.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client.cc b/components/mus/public/cpp/lib/window_tree_client.cc
index 12cc53b8e61840bba96ba1ccef92ad318c5ba5c4..82c18347ee73886dd387f450110cf34f18fff10d 100644
--- a/components/mus/public/cpp/lib/window_tree_client.cc
+++ b/components/mus/public/cpp/lib/window_tree_client.cc
@@ -401,15 +401,13 @@ void WindowTreeClient::AddWindow(Window* window) {
}
void WindowTreeClient::OnWindowDestroying(Window* window) {
- // TODO(jonross): Also clear the focused window (crbug.com/611983)
if (window == capture_window_) {
- InFlightCaptureChange reset_change(this, nullptr);
- ApplyServerChangeToExistingInFlightChange(reset_change);
- // Normally just updating the queued changes is sufficient. However since
+ // Normally the queue updates itself upon window destruction. However since
// |window| is being destroyed, it will not be possible to notify its
// observers of the lost capture. Update local state now.
LocalSetCapture(nullptr);
}
+ // For |focused_window_| window destruction clears the entire focus state.
}
void WindowTreeClient::OnWindowDestroyed(Window* window) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698