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

Unified Diff: ui/aura_shell/shell_accelerator_controller.h

Issue 8689003: Register global accelerators and add placeholders for handling them. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/shell_accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura_shell/shell_accelerator_controller.h
diff --git a/ui/aura_shell/shell_accelerator_controller.h b/ui/aura_shell/shell_accelerator_controller.h
index 86fe41b9b3adfce1d29c157f1df1b87360fec682..1a8e239b01224905879100ba442f44af0a46ec0b 100644
--- a/ui/aura_shell/shell_accelerator_controller.h
+++ b/ui/aura_shell/shell_accelerator_controller.h
@@ -6,6 +6,8 @@
#define UI_AURA_SHELL_SHELL_ACCELERATOR_CONTROLLER_H_
#pragma once
+#include <map>
+
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
@@ -52,8 +54,15 @@ class AURA_SHELL_EXPORT ShellAcceleratorController
virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
private:
+ // Initialize the accelerators this class handles as a target.
+ void Init();
+
scoped_ptr<ui::AcceleratorManager> accelerator_manager_;
+ // A map from accelerators to the AcceleratorAction values, which are used in
+ // the implementation.
+ std::map<ui::Accelerator, int> accelerators_;
+
DISALLOW_COPY_AND_ASSIGN(ShellAcceleratorController);
};
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/shell_accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698