summaryrefslogtreecommitdiffstats
path: root/athena/screen/screen_accelerator_handler.h
blob: 7e7a9eaf2009cc31dabb43cf5b1b56a3e1a89b16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "athena/input/public/accelerator_manager.h"

#include "base/macros.h"

namespace aura {
class Window;
}

namespace athena {

// Handles screen related accelerators.
class ScreenAcceleratorHandler : public AcceleratorHandler {
 public:
  explicit ScreenAcceleratorHandler(aura::Window* root_window);

 private:
  virtual ~ScreenAcceleratorHandler();

  // AcceleratorHandler:
  virtual bool IsCommandEnabled(int command_id) const OVERRIDE;
  virtual bool OnAcceleratorFired(int command_id,
                                  const ui::Accelerator& accelerator) OVERRIDE;

  aura::Window* root_window_;

  DISALLOW_COPY_AND_ASSIGN(ScreenAcceleratorHandler);
};

}  // namespace athena