Chromium Code Reviews| Index: ui/aura_shell/global_accelerator_filter.h |
| diff --git a/ui/aura_shell/global_accelerator_filter.h b/ui/aura_shell/global_accelerator_filter.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..792963bc469edc71d5e8dc955caca7ff45dfe2bb |
| --- /dev/null |
| +++ b/ui/aura_shell/global_accelerator_filter.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright (c) 2011 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. |
| + |
| +#ifndef UI_AURA_SHELL_GLOBAL_ACCELERATOR_FILTER_H_ |
| +#define UI_AURA_SHELL_GLOBAL_ACCELERATOR_FILTER_H_ |
| +#pragma once |
| + |
| +#include "base/compiler_specific.h" |
| +#include "base/observer_list.h" |
|
tfarina
2011/11/15 15:46:23
nit: remove, unused in this header file.
mazda
2011/11/15 16:16:29
Done.
|
| +#include "ui/aura/event_filter.h" |
| +#include "ui/aura_shell/aura_shell_export.h" |
| + |
| +namespace aura_shell { |
| +namespace internal { |
| + |
| + |
|
tfarina
2011/11/15 15:46:23
nit: remove, extra blank line.
mazda
2011/11/15 16:16:29
Done.
|
| +class AURA_SHELL_EXPORT GlobalAcceleratorFilter : public aura::EventFilter { |
| + public: |
| + GlobalAcceleratorFilter(); |
| + virtual ~GlobalAcceleratorFilter(); |
| + |
| + // Overridden from EventFilter: |
|
tfarina
2011/11/15 15:46:23
nit: from aura::EventFilter:
mazda
2011/11/15 16:16:29
Done.
|
| + virtual bool PreHandleKeyEvent(aura::Window* target, |
| + aura::KeyEvent* event) OVERRIDE; |
| + virtual bool PreHandleMouseEvent(aura::Window* target, |
| + aura::MouseEvent* event) OVERRIDE; |
| + virtual ui::TouchStatus PreHandleTouchEvent(aura::Window* target, |
| + aura::TouchEvent* event) OVERRIDE; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(GlobalAcceleratorFilter); |
|
tfarina
2011/11/15 15:46:23
nit: basictypes.h
mazda
2011/11/15 16:16:29
Done.
|
| +}; |
| + |
| +} // namespace internal |
| +} // namespace aura_shell |
| + |
| +#endif // UI_AURA_SHELL_GLOBAL_ACCELERATOR_FILTER_H_ |