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

Unified Diff: ash/accelerators/accelerator_controller.h

Issue 9242003: Handle Caps Lock short cut (Shift+Search) in ash [part 1 of 2]. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review fix Created 8 years, 11 months 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 | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_controller.h
diff --git a/ash/accelerators/accelerator_controller.h b/ash/accelerators/accelerator_controller.h
index 55c3ed5e49e614568038d275337aca656f1eb6ba..50909609ae8e79c0011ab7c63fc382c5c8ef5d6e 100644
--- a/ash/accelerators/accelerator_controller.h
+++ b/ash/accelerators/accelerator_controller.h
@@ -21,6 +21,7 @@ class AcceleratorManager;
namespace ash {
class ScreenshotDelegate;
+class CapsLockDelegate;
// AcceleratorController provides functions for registering or unregistering
// global keyboard accelerators, which are handled earlier than any windows. It
@@ -56,6 +57,7 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
virtual bool CanHandleAccelerators() const OVERRIDE;
void SetScreenshotDelegate(ScreenshotDelegate* screenshot_delegate);
+ void SetCapsLockDelegate(scoped_ptr<CapsLockDelegate> caps_lock_delegate);
private:
// Initialize the accelerators this class handles as a target.
@@ -64,6 +66,7 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget {
scoped_ptr<ui::AcceleratorManager> accelerator_manager_;
scoped_ptr<ScreenshotDelegate> screenshot_delegate_;
+ scoped_ptr<CapsLockDelegate> caps_lock_delegate_;
// A map from accelerators to the AcceleratorAction values, which are used in
// the implementation.
« no previous file with comments | « no previous file | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698