| Index: ash/mus/accelerators/accelerator_handler.h
|
| diff --git a/ash/mus/accelerators/accelerator_handler.h b/ash/mus/accelerators/accelerator_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..87e50a02ac5e1fb82509fe4f53fc59f7b81814a9
|
| --- /dev/null
|
| +++ b/ash/mus/accelerators/accelerator_handler.h
|
| @@ -0,0 +1,26 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef ASH_MUS_ACCELERATORS_ACCELERATOR_HANDLER_H_
|
| +#define ASH_MUS_ACCELERATORS_ACCELERATOR_HANDLER_H_
|
| +
|
| +#include "services/ui/public/interfaces/window_manager.mojom.h"
|
| +
|
| +namespace ash {
|
| +namespace mus {
|
| +
|
| +// Used by WindowManager for handling accelerators.
|
| +class AcceleratorHandler {
|
| + public:
|
| + virtual ui::mojom::EventResult OnAccelerator(uint32_t id,
|
| + const ui::Event& event) = 0;
|
| +
|
| + protected:
|
| + virtual ~AcceleratorHandler() {}
|
| +};
|
| +
|
| +} // namespace mus
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_MUS_ACCELERATORS_ACCELERATOR_HANDLER_H_
|
|
|