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.
5 #ifndef ASH_ACCELERATORS_ACCELERATOR_FILTER_H_
6 #define ASH_ACCELERATORS_ACCELERATOR_FILTER_H_
8 #include "ash/ash_export.h"
9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h"
11 #include "ui/events/event_handler.h"
16 // AcceleratorFilter filters key events for AcceleratorControler handling global
17 // keyboard accelerators.
18 class ASH_EXPORT AcceleratorFilter : public ui::EventHandler {
21 virtual ~AcceleratorFilter();
23 // Overridden from ui::EventHandler:
24 virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE;
27 DISALLOW_COPY_AND_ASSIGN(AcceleratorFilter);
30 } // namespace internal
33 #endif // ASH_ACCELERATORS_ACCELERATOR_FILTER_H_