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

Unified Diff: components/mus/ws/connection_manager.cc

Issue 1759523002: mus: Server-side implementation of modal windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetAsModal -> SetModal + Other review comments addressed Created 4 years, 9 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 | « components/mus/ws/connection_manager.h ('k') | components/mus/ws/default_access_policy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/connection_manager.cc
diff --git a/components/mus/ws/connection_manager.cc b/components/mus/ws/connection_manager.cc
index 4ef846194ae22c000aecbfc41f79eb63bbe76413..f67713b28251807e4316d29974d73fef0767ce68 100644
--- a/components/mus/ws/connection_manager.cc
+++ b/components/mus/ws/connection_manager.cc
@@ -461,6 +461,11 @@ void ConnectionManager::OnWindowHierarchyChanged(ServerWindow* window,
if (in_destructor_)
return;
+ WindowManagerState* wms =
+ display_manager_->GetWindowManagerAndDisplay(window).window_manager_state;
+ if (wms)
+ wms->ReleaseCaptureBlockedByAnyModalWindow();
+
ProcessWindowHierarchyChanged(window, new_parent, old_parent);
// TODO(beng): optimize.
@@ -526,6 +531,16 @@ void ConnectionManager::OnWillChangeWindowVisibility(ServerWindow* window) {
}
}
+void ConnectionManager::OnWindowVisibilityChanged(ServerWindow* window) {
+ if (in_destructor_)
+ return;
+
+ WindowManagerState* wms =
+ display_manager_->GetWindowManagerAndDisplay(window).window_manager_state;
+ if (wms)
+ wms->ReleaseCaptureBlockedByModalWindow(window);
+}
+
void ConnectionManager::OnWindowPredefinedCursorChanged(ServerWindow* window,
int32_t cursor_id) {
if (in_destructor_)
« no previous file with comments | « components/mus/ws/connection_manager.h ('k') | components/mus/ws/default_access_policy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698