Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(219)

Unified Diff: ui/aura_shell/global_accelerator_filter.h

Issue 8465021: Add ShellAcceleratorController that managers global keyboard accelerators. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Address comments Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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..6c598ae98e42358eddedd59f188f19394bfe58b3
--- /dev/null
+++ b/ui/aura_shell/global_accelerator_filter.h
@@ -0,0 +1,37 @@
+// 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/basictypes.h"
+#include "base/compiler_specific.h"
+#include "ui/aura/event_filter.h"
+#include "ui/aura_shell/aura_shell_export.h"
+
+namespace aura_shell {
+namespace internal {
+
+class AURA_SHELL_EXPORT GlobalAcceleratorFilter : public aura::EventFilter {
+ public:
+ GlobalAcceleratorFilter();
+ virtual ~GlobalAcceleratorFilter();
+
+ // Overridden from aura::EventFilter:
+ 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);
+};
+
+} // namespace internal
+} // namespace aura_shell
+
+#endif // UI_AURA_SHELL_GLOBAL_ACCELERATOR_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698