forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaccelerator_delegate.h
37 lines (26 loc) · 968 Bytes
/
accelerator_delegate.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
34
35
36
37
// Copyright 2014 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_DELEGATE_H_
#define ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_
#include <memory>
#include "ash/ash_export.h"
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "ui/wm/core/accelerator_delegate.h"
namespace ash {
class AcceleratorRouter;
class ASH_EXPORT AcceleratorDelegate
: NON_EXPORTED_BASE(public ::wm::AcceleratorDelegate) {
public:
AcceleratorDelegate();
~AcceleratorDelegate() override;
// wm::AcceleratorDelegate:
bool ProcessAccelerator(const ui::KeyEvent& event,
const ui::Accelerator& accelerator) override;
private:
std::unique_ptr<AcceleratorRouter> router_;
DISALLOW_COPY_AND_ASSIGN(AcceleratorDelegate);
};
} // namespace ash
#endif // ASH_ACCELERATORS_ACCELERATOR_DELEGATE_H_