Index: components/mus/ws/event_dispatcher.h |
diff --git a/components/mus/ws/event_dispatcher.h b/components/mus/ws/event_dispatcher.h |
index bbd2badce05cc8188c60cb9e6f660d5cc5e29568..a6ffd62524026aba1c6f8dcc379ff51cf8fb9597 100644 |
--- a/components/mus/ws/event_dispatcher.h |
+++ b/components/mus/ws/event_dispatcher.h |
@@ -33,7 +33,10 @@ class EventDispatcher : public ServerWindowObserver { |
void set_surface_id(cc::SurfaceId surface_id) { surface_id_ = surface_id; } |
- void AddAccelerator(uint32_t id, mojom::EventMatcherPtr event_matcher); |
+ // Adds an accelerator with the given id and event-matcher. If an accelerator |
+ // already exists with the same id or the same matcher, then the accelerator |
+ // is not added. Returns whether adding the accelerator was successful or not. |
+ bool AddAccelerator(uint32_t id, mojom::EventMatcherPtr event_matcher); |
void RemoveAccelerator(uint32_t id); |
void OnEvent(mojom::EventPtr event); |