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

Unified Diff: services/ui/public/cpp/tests/window_server_test_base.cc

Issue 2125883003: Adds ability for pre-target accelerators to not consume events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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: services/ui/public/cpp/tests/window_server_test_base.cc
diff --git a/services/ui/public/cpp/tests/window_server_test_base.cc b/services/ui/public/cpp/tests/window_server_test_base.cc
index bdb64dd46a44356f87bf390395670552adeb05c2..3168f0155d7b156ca2c80695151bcefe630484ae 100644
--- a/services/ui/public/cpp/tests/window_server_test_base.cc
+++ b/services/ui/public/cpp/tests/window_server_test_base.cc
@@ -131,9 +131,11 @@ void WindowServerTestBase::OnWmNewDisplay(Window* window,
window_manager_delegate_->OnWmNewDisplay(window, display);
}
-void WindowServerTestBase::OnAccelerator(uint32_t id, const ui::Event& event) {
- if (window_manager_delegate_)
- window_manager_delegate_->OnAccelerator(id, event);
+mojom::EventResult WindowServerTestBase::OnAccelerator(uint32_t accelerator_id,
+ const ui::Event& event) {
+ return window_manager_delegate_
+ ? window_manager_delegate_->OnAccelerator(accelerator_id, event)
+ : mojom::EventResult::UNHANDLED;
}
void WindowServerTestBase::Create(shell::Connection* connection,

Powered by Google App Engine
This is Rietveld 408576698