Chromium Code Reviews| Index: chrome/browser/resources/shared/js/cr/ui/repeating_button.js |
| diff --git a/chrome/browser/resources/shared/js/cr/ui/repeating_button.js b/chrome/browser/resources/shared/js/cr/ui/repeating_button.js |
| index 43807bbc6ad88726764b352b172ac5522c5b1616..16bd2fabb4bcb2e90cdd849c1bf154af0526f44b 100644 |
| --- a/chrome/browser/resources/shared/js/cr/ui/repeating_button.js |
| +++ b/chrome/browser/resources/shared/js/cr/ui/repeating_button.js |
| @@ -142,6 +142,22 @@ cr.define('cr.ui', function() { |
| */ |
| buttonHeld_: function() { |
| cr.dispatchSimpleEvent(this, RepeatingButton.Event.BUTTON_HELD); |
| + }, |
| + |
| + /** |
| + * Getter for the initial delay before repeating. |
| + * @return {number} The delay in milliseconds. |
|
arv1
2011/11/01 17:49:37
Use @type for getters/setters
|
| + */ |
| + get repeatDelay() { |
| + return this.holdDelayTime_; |
| + }, |
| + |
| + /** |
| + * Getter for the repeat interval. |
| + * @return {number} The repeat interval in milliseconds. |
| + */ |
| + get repeatInterval() { |
| + return this.holdRepeatIntervalTime_; |
| } |
| }; |