forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaccelerator_handler.h
33 lines (24 loc) · 911 Bytes
/
accelerator_handler.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// 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_