Index: ash/sticky_keys/sticky_keys_controller.h |
diff --git a/ash/sticky_keys/sticky_keys_controller.h b/ash/sticky_keys/sticky_keys_controller.h |
index 018d4f5c8a494c72049b89c0ca134706c2b98bf9..792f2c58b0b32dbba3dc133f0ab8ee987ae14400 100644 |
--- a/ash/sticky_keys/sticky_keys_controller.h |
+++ b/ash/sticky_keys/sticky_keys_controller.h |
@@ -67,6 +67,8 @@ class ASH_EXPORT StickyKeysController : public ui::EventHandler { |
// Activate sticky keys to intercept and modify incoming events. |
void Enable(bool enabled); |
+ void SetModifiersEnabled(bool mod3_enabled, bool altgr_enabled); |
+ |
// Overridden from ui::EventHandler: |
virtual void OnKeyEvent(ui::KeyEvent* event) OVERRIDE; |
virtual void OnMouseEvent(ui::MouseEvent* event) OVERRIDE; |
@@ -92,6 +94,12 @@ class ASH_EXPORT StickyKeysController : public ui::EventHandler { |
// Whether sticky keys is activated and modifying events. |
bool enabled_; |
+ // Whether the current layout has a mod3 key. |
+ bool mod3_enabled_; |
+ |
+ // Whether the current layout has an altgr key. |
+ bool altgr_enabled_; |
+ |
// Sticky key handlers. |
scoped_ptr<StickyKeysHandler> shift_sticky_key_; |
scoped_ptr<StickyKeysHandler> alt_sticky_key_; |