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_MAIN_DEBUG_ACCELERATOR_HANDLER_H_ | |
5 #define ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_ | |
6 | |
7 #include "athena/input/public/accelerator_manager.h" | |
8 | |
9 #include "base/macros.h" | |
10 | |
11 namespace aura { | |
12 class Window; | |
13 } | |
14 | |
15 namespace athena { | |
16 | |
17 // Handles accelerators useful for debugging. | |
18 class DebugAcceleratorHandler : public AcceleratorHandler { | |
19 public: | |
20 explicit DebugAcceleratorHandler(aura::Window* root_window); | |
21 ~DebugAcceleratorHandler() override; | |
22 | |
23 // AcceleratorHandler: | |
24 bool IsCommandEnabled(int command_id) const override; | |
25 bool OnAcceleratorFired(int command_id, | |
26 const ui::Accelerator& accelerator) override; | |
27 | |
28 private: | |
29 aura::Window* root_window_; | |
30 | |
31 DISALLOW_COPY_AND_ASSIGN(DebugAcceleratorHandler); | |
32 }; | |
33 | |
34 } // namespace athena | |
35 | |
36 #endif // ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_ | |
OLD | NEW |