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

Unified Diff: components/mus/ws/event_dispatcher.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/default_access_policy.cc ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/event_dispatcher.h
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h
index 800ba8a195354471803079bca7636f8dfeba6001..30868e85608ecf2861750e9a335d803e4a729cf6 100644
--- a/components/mus/ws/event_dispatcher.h
+++ b/components/mus/ws/event_dispatcher.h
@@ -57,7 +57,9 @@ class EventDispatcher : public ServerWindowObserver {
// details.
ServerWindow* capture_window() { return capture_window_; }
const ServerWindow* capture_window() const { return capture_window_; }
- void SetCaptureWindow(ServerWindow* capture_window, bool in_nonclient_area);
+ // Setting capture can fail if the window is blocked by a modal window
+ // (indicated by returning |false|).
+ bool SetCaptureWindow(ServerWindow* capture_window, bool in_nonclient_area);
// Retrieves the ServerWindow of the last mouse move.
ServerWindow* mouse_cursor_source_window() const {
« no previous file with comments | « components/mus/ws/default_access_policy.cc ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698