- add sources.
[platform/framework/web/crosswalk.git] / src / ash / accelerators / accelerator_filter.h
1 // Copyright (c) 2012 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 #ifndef ASH_ACCELERATORS_ACCELERATOR_FILTER_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_FILTER_H_
7
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/events/event_handler.h"
12
13 namespace ash {
14 namespace internal {
15
16 // AcceleratorFilter filters key events for AcceleratorControler handling global
17 // keyboard accelerators.
18 class ASH_EXPORT AcceleratorFilter : public ui::EventHandler {
19  public:
20   AcceleratorFilter();
21   virtual ~AcceleratorFilter();
22
23   // Overridden from ui::EventHandler:
24   virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
25
26  private:
27   DISALLOW_COPY_AND_ASSIGN(AcceleratorFilter);
28 };
29
30 }  // namespace internal
31 }  // namespace ash
32
33 #endif  // ASH_ACCELERATORS_ACCELERATOR_FILTER_H_