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

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

Issue 1487333004: mus: Notify the client whether adding an accelerator was successful. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years 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/public/interfaces/window_tree_host.mojom ('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 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);
« no previous file with comments | « components/mus/public/interfaces/window_tree_host.mojom ('k') | components/mus/ws/event_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698