Index: ash/accelerators/accelerator_controller.h |
diff --git a/ash/accelerators/accelerator_controller.h b/ash/accelerators/accelerator_controller.h |
index 55c3ed5e49e614568038d275337aca656f1eb6ba..7d646b42f920b9d22ba346ba08cbfe7e9d60abae 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 |
@@ -55,7 +56,9 @@ class ASH_EXPORT AcceleratorController : public ui::AcceleratorTarget { |
virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; |
virtual bool CanHandleAccelerators() const OVERRIDE; |
- void SetScreenshotDelegate(ScreenshotDelegate* screenshot_delegate); |
+ void SetScreenshotDelegate( |
+ scoped_ptr<ScreenshotDelegate> screenshot_delegate); |
mazda
2012/01/17 07:34:05
I prefer this signature change is done first in an
Yusuke Sato
2012/01/17 08:24:52
Done. Please review https://chromiumcodereview.app
|
+ void SetCapsLockDelegate(scoped_ptr<CapsLockDelegate> caps_lock_delegate); |
private: |
// Initialize the accelerators this class handles as a target. |
@@ -64,6 +67,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. |