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

Unified Diff: ui/aura_shell/desktop_event_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 tfarina's 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
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/desktop_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/desktop_event_filter.h
diff --git a/ui/aura_shell/desktop_event_filter.h b/ui/aura_shell/desktop_event_filter.h
index e4d1c45bd683eb8f757e07caca6a9e04f00f65b3..a9775d8d6a27a23d00c66e2b160af7a4ba87c123 100644
--- a/ui/aura_shell/desktop_event_filter.h
+++ b/ui/aura_shell/desktop_event_filter.h
@@ -7,6 +7,7 @@
#pragma once
#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
#include "ui/aura/event_filter.h"
#include "ui/aura_shell/aura_shell_export.h"
@@ -14,6 +15,8 @@
namespace aura_shell {
namespace internal {
+class ShellAcceleratorFilter;
+
// DesktopEventFilter gets all desktop events first and can provide actions to
// those events. It implements desktop features such as click to activate a
// window and cursor change when moving mouse.
@@ -56,6 +59,9 @@ class AURA_SHELL_EXPORT DesktopEventFilter : public aura::EventFilter {
// Additional event filters that pre-handles events.
ObserverList<aura::EventFilter, true> filters_;
+ // An event filter that pre-handles global accelerators.
+ scoped_ptr<ShellAcceleratorFilter> shell_accelerator_filter_;
+
DISALLOW_COPY_AND_ASSIGN(DesktopEventFilter);
};
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/desktop_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698