OLD | NEW |
| (Empty) |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 #ifndef ATHENA_SCREEN_SCREEN_ACCELERATOR_HANDLER_H_ | |
5 #define ATHENA_SCREEN_SCREEN_ACCELERATOR_HANDLER_H_ | |
6 | |
7 #include "athena/input/public/accelerator_manager.h" | |
8 | |
9 #include "base/macros.h" | |
10 | |
11 namespace athena { | |
12 | |
13 // Handles screen related accelerators. | |
14 class ScreenAcceleratorHandler : public AcceleratorHandler { | |
15 public: | |
16 ScreenAcceleratorHandler(); | |
17 | |
18 private: | |
19 ~ScreenAcceleratorHandler() override; | |
20 | |
21 // AcceleratorHandler: | |
22 virtual bool IsCommandEnabled(int command_id) const override; | |
23 virtual bool OnAcceleratorFired(int command_id, | |
24 const ui::Accelerator& accelerator) override; | |
25 | |
26 DISALLOW_COPY_AND_ASSIGN(ScreenAcceleratorHandler); | |
27 }; | |
28 | |
29 } // namespace athena | |
30 | |
31 #endif // ATHENA_SCREEN_SCREEN_ACCELERATOR_HANDLER_H_ | |
OLD | NEW |