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

Unified Diff: components/mus/public/cpp/lib/window_tree_client_impl.cc

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
Index: components/mus/public/cpp/lib/window_tree_client_impl.cc
diff --git a/components/mus/public/cpp/lib/window_tree_client_impl.cc b/components/mus/public/cpp/lib/window_tree_client_impl.cc
index 8e1907ae196bac1e9d9dc4d0e7d95223f5f14fb0..304c179dcc49d4b24e6995b2045652b4dc5d033c 100644
--- a/components/mus/public/cpp/lib/window_tree_client_impl.cc
+++ b/components/mus/public/cpp/lib/window_tree_client_impl.cc
@@ -891,10 +891,26 @@ void WindowTreeClientImpl::WmCreateTopLevelWindow(
window->id());
}
+void WindowTreeClientImpl::OnAccelerator(uint32_t id, mojom::EventPtr event) {
+ window_manager_delegate_->OnAccelerator(id, std::move(event));
+}
+
void WindowTreeClientImpl::SetFrameDecorationValues(
mojom::FrameDecorationValuesPtr values) {
window_manager_internal_client_->WmSetFrameDecorationValues(
std::move(values));
}
+void WindowTreeClientImpl::AddAccelerator(
+ uint32_t id,
+ mojom::EventMatcherPtr event_matcher,
+ const base::Callback<void(bool)>& callback) {
+ window_manager_internal_client_->AddAccelerator(id, std::move(event_matcher),
+ callback);
+}
+
+void WindowTreeClientImpl::RemoveAccelerator(uint32_t id) {
+ window_manager_internal_client_->RemoveAccelerator(id);
+}
+
} // namespace mus
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.h ('k') | components/mus/public/cpp/tests/window_server_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698