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

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

Issue 1656123002: Moves accelerator registration to WindowManager (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix mandoline Created 4 years, 11 months 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/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/ws/window_tree_impl.h
diff --git a/components/mus/ws/window_tree_impl.h b/components/mus/ws/window_tree_impl.h
index dce1790016db2429a0feef235dbf29c3f2b50fd7..6e454f9bd26ea3a4026927470685b355a75bb520 100644
--- a/components/mus/ws/window_tree_impl.h
+++ b/components/mus/ws/window_tree_impl.h
@@ -127,6 +127,7 @@ class WindowTreeImpl : public mojom::WindowTree,
// Calls through to the client.
void OnChangeCompleted(uint32_t change_id, bool success);
+ void OnAccelerator(uint32_t accelerator_id, mojom::EventPtr event);
// The following methods are invoked after the corresponding change has been
// processed. They do the appropriate bookkeeping and update the client as
@@ -333,6 +334,10 @@ class WindowTreeImpl : public mojom::WindowTree,
override;
// mojom::WindowManagerClient:
+ void AddAccelerator(uint32_t id,
+ mojom::EventMatcherPtr event_matcher,
+ const AddAcceleratorCallback& callback) override;
+ void RemoveAccelerator(uint32_t id) override;
void WmResponse(uint32_t change_id, bool response) override;
void WmRequestClose(Id transport_window_id) override;
void WmSetFrameDecorationValues(
« no previous file with comments | « components/mus/ws/window_tree_host_impl.cc ('k') | components/mus/ws/window_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698