blob: 398e46d4d4d0822c37fff23c4adb0572eb374aca [file] [log] [blame]
// 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_ACCELERATORS_ACCELERATOR_HANDLER_H_
#define ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_
#include <stdint.h>
#include <string>
#include <vector>
#include "base/containers/flat_map.h"
#include "services/ui/public/interfaces/window_manager.mojom.h"
namespace ash {
// Used by WindowManager for handling accelerators. This is only used in mash.
class AcceleratorHandler {
public:
// See WindowManagerDelegate for details on |properties|.
virtual ui::mojom::EventResult OnAccelerator(
uint32_t id,
const ui::Event& event,
base::flat_map<std::string, std::vector<uint8_t>>* properties) = 0;
protected:
virtual ~AcceleratorHandler() {}
};
} // namespace ash
#endif // ASH_ACCELERATORS_ACCELERATOR_HANDLER_H_