Index: ui/base/accelerators/accelerator.h |
diff --git a/ui/base/accelerators/accelerator.h b/ui/base/accelerators/accelerator.h |
index 15ca6cc8ef519d133e2b86665328828f7f952a6e..430a209f41c3145ee89684acc6a8ca0d778db1de 100644 |
--- a/ui/base/accelerators/accelerator.h |
+++ b/ui/base/accelerators/accelerator.h |
@@ -54,6 +54,7 @@ class UI_BASE_EXPORT Accelerator { |
bool IsCtrlDown() const; |
bool IsAltDown() const; |
bool IsCmdDown() const; |
+ bool IsRepeat() const; |
// Returns a string with the localized shortcut if any. |
base::string16 GetShortcutText() const; |
@@ -67,6 +68,7 @@ class UI_BASE_EXPORT Accelerator { |
return platform_accelerator_.get(); |
} |
+ void set_is_repeat(bool is_repeat) { is_repeat_ = is_repeat; } |
protected: |
// The keycode (VK_...). |
@@ -78,6 +80,9 @@ class UI_BASE_EXPORT Accelerator { |
// The state of the Shift/Ctrl/Alt keys. |
int modifiers_; |
+ // True if the accelerator is created for an auto repeated key event. |
+ bool is_repeat_; |
+ |
// Stores platform specific data. May be NULL. |
scoped_ptr<PlatformAccelerator> platform_accelerator_; |
}; |