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

Unified Diff: ui/aura_shell/shell.h

Issue 8561012: Add ShellAcceleratorController that manages global keyboard accelerators (2nd try). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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/shell.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shell.h
diff --git a/ui/aura_shell/shell.h b/ui/aura_shell/shell.h
index 0ab72bc8e84f9d021eb1510a7b75ea850348f09a..228c00f430d1a5510aa0af9f5edc1be4927997a5 100644
--- a/ui/aura_shell/shell.h
+++ b/ui/aura_shell/shell.h
@@ -27,6 +27,7 @@ class Rect;
namespace aura_shell {
class Launcher;
+class ShellAcceleratorController;
class ShellDelegate;
namespace internal {
@@ -34,6 +35,7 @@ class AppList;
class DragDropController;
class ShadowController;
class ShelfLayoutController;
+class ShellAcceleratorFilter;
class WorkspaceController;
}
@@ -66,6 +68,10 @@ class AURA_SHELL_EXPORT Shell {
// Toggles app list.
void ToggleAppList();
+ ShellAcceleratorController* accelerator_controller() {
+ return accelerator_controller_.get();
+ }
+
ShellDelegate* delegate() { return delegate_.get(); }
Launcher* launcher() { return launcher_.get(); }
@@ -91,6 +97,8 @@ class AURA_SHELL_EXPORT Shell {
base::WeakPtrFactory<Shell> method_factory_;
+ scoped_ptr<ShellAcceleratorController> accelerator_controller_;
+
scoped_ptr<ShellDelegate> delegate_;
scoped_ptr<Launcher> launcher_;
@@ -102,6 +110,9 @@ class AURA_SHELL_EXPORT Shell {
scoped_ptr<internal::ShelfLayoutController> shelf_layout_controller_;
scoped_ptr<internal::ShadowController> shadow_controller_;
+ // An event filter that pre-handles global accelerators.
+ scoped_ptr<internal::ShellAcceleratorFilter> accelerator_filter_;
+
DISALLOW_COPY_AND_ASSIGN(Shell);
};
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698