| 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 403127497ac6099cd3a37b368a5aa6b37c1f5fe9..398360f9134e7f251febc3b1c3c0efa9b11fb8f0 100644
|
| --- a/services/ui/public/cpp/tests/window_server_test_base.cc
|
| +++ b/services/ui/public/cpp/tests/window_server_test_base.cc
|
| @@ -131,11 +131,6 @@ 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);
|
| -}
|
| -
|
| void WindowServerTestBase::OnWmPerformMoveLoop(
|
| Window* window,
|
| mojom::MoveLoopSource source,
|
| @@ -152,6 +147,13 @@ void WindowServerTestBase::OnWmCancelMoveLoop(Window* window) {
|
| window_manager_delegate_->OnWmCancelMoveLoop(window);
|
| }
|
|
|
| +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,
|
| mojom::WindowTreeClientRequest request) {
|
| new WindowTreeClient(this, nullptr, std::move(request));
|
|
|