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.
5 #include "athena/input/public/accelerator_manager.h"
7 #include "base/macros.h"
15 // Handles screen related accelerators.
16 class ScreenAcceleratorHandler
: public AcceleratorHandler
{
18 explicit ScreenAcceleratorHandler(aura::Window
* root_window
);
21 virtual ~ScreenAcceleratorHandler();
23 // AcceleratorHandler:
24 virtual bool IsCommandEnabled(int command_id
) const override
;
25 virtual bool OnAcceleratorFired(int command_id
,
26 const ui::Accelerator
& accelerator
) override
;
28 aura::Window
* root_window_
;
30 DISALLOW_COPY_AND_ASSIGN(ScreenAcceleratorHandler
);