Index: components/mus/ws/event_dispatcher.h |
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h |
index 432213e3b5143e7d6e47a968291975136c6fd26c..13d8776bf1668f55a0e3be36f5e61cb64fcc4b08 100644 |
--- a/components/mus/ws/event_dispatcher.h |
+++ b/components/mus/ws/event_dispatcher.h |
@@ -44,7 +44,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 { |