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

Unified Diff: components/mus/ws/window_manager_state.h

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/window_manager_access_policy.cc ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_manager_state.h
diff --git a/components/mus/ws/window_manager_state.h b/components/mus/ws/window_manager_state.h
index af6f3899817b62427d9a4cddebf8c31c7b4c463e..b93cbfdcc6b3b4aa76ae305b978ac0373e10a3c4 100644
--- a/components/mus/ws/window_manager_state.h
+++ b/components/mus/ws/window_manager_state.h
@@ -66,12 +66,20 @@ class WindowManagerState : public EventDispatcherDelegate {
return got_frame_decoration_values_;
}
- void SetCapture(ServerWindow* window, bool in_nonclient_area);
+ bool SetCapture(ServerWindow* window, bool in_nonclient_area);
ServerWindow* capture_window() { return event_dispatcher_.capture_window(); }
const ServerWindow* capture_window() const {
return event_dispatcher_.capture_window();
}
+ // Checks if |modal_window| is a visible modal window that blocks current
+ // capture window and if that's the case, releases the capture.
+ void ReleaseCaptureBlockedByModalWindow(const ServerWindow* modal_window);
+
+ // Checks if the current capture window is blocked by any visible modal window
+ // and if that's the case, releases the capture.
+ void ReleaseCaptureBlockedByAnyModalWindow();
+
// Returns true if this is the WindowManager of the active user.
bool IsActive() const;
« no previous file with comments | « components/mus/ws/window_manager_access_policy.cc ('k') | components/mus/ws/window_manager_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698