Roll src/third_party/skia e6efd39:47bb382
[chromium-blink-merge.git] / athena / screen / screen_accelerator_handler.h
blobab578794afbfa2b1e4bc4251a05f426b808cbd1d
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"
9 namespace aura {
10 class Window;
13 namespace athena {
15 // Handles screen related accelerators.
16 class ScreenAcceleratorHandler : public AcceleratorHandler {
17 public:
18 explicit ScreenAcceleratorHandler(aura::Window* root_window);
20 private:
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);
33 } // namespace athena