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"
17 // Handles accelerators useful for debugging.
18 class DebugAcceleratorHandler
: public AcceleratorHandler
{
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
;
29 aura::Window
* root_window_
;
31 DISALLOW_COPY_AND_ASSIGN(DebugAcceleratorHandler
);
36 #endif // ATHENA_MAIN_DEBUG_ACCELERATOR_HANDLER_H_