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

Unified Diff: components/mus/public/interfaces/window_tree_host.mojom

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 | « no previous file | components/mus/ws/event_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/interfaces/window_tree_host.mojom
diff --git a/components/mus/public/interfaces/window_tree_host.mojom b/components/mus/public/interfaces/window_tree_host.mojom
index 3209bdabfe543124189177e5d933183aa811a77b..32cd0af5df1b3c1dc6b28a7c9d49ade1a38672f4 100644
--- a/components/mus/public/interfaces/window_tree_host.mojom
+++ b/components/mus/public/interfaces/window_tree_host.mojom
@@ -24,8 +24,10 @@ interface WindowTreeHost {
// Add and remove accelerators. When accelerators are registered the
// WindowTreeHostClient receives the event via OnAccelerator() rather than the
// target window. The id is defined by the client and can be used to more
- // easily identify the accelerator's action.
- AddAccelerator(uint32 id, EventMatcher matcher);
+ // easily identify the accelerator's action. If an accelerator with the same
+ // id or the same matcher already exists, then the accelerator is not added,
+ // and returns false.
+ AddAccelerator(uint32 id, EventMatcher matcher) => (bool success);
RemoveAccelerator(uint32 id);
// Enables (or disables) child windows of |window_id| to be activated.
« no previous file with comments | « no previous file | components/mus/ws/event_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698