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 { |