tuple: update to make use of C++11
[chromium-blink-merge.git] / athena / main / debug_accelerator_handler.h
blobe2595970ad1e8393e40a9af2ee8cc640f153e63a
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_
7 #include "athena/input/public/accelerator_manager.h"
9 #include "base/macros.h"
11 namespace aura {
12 class Window;
15 namespace athena {
17 // Handles accelerators useful for debugging.
18 class DebugAcceleratorHandler : public AcceleratorHandler {
19 public:
20 explicit DebugAcceleratorHandler(aura::Window* root_window);
21 ~DebugAcceleratorHandler() override;
23 // AcceleratorHandler:
24 bool IsCommandEnabled(int command_id) const override;
25 bool OnAcceleratorFired(int command_id,
26 const ui::Accelerator& accelerator) override;
28 private:
29 aura::Window* root_window_;
31 DISALLOW_COPY_AND_ASSIGN(DebugAcceleratorHandler);
34 } // namespace athena
36 #endif // ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_