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