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

Unified Diff: chrome/browser/resources/shared/js/cr/ui/repeating_button.js

Issue 8437004: Add unit test for the repeating button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix linewrap. Created 9 years, 1 month 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 | chrome/browser/resources/shared/js/cr/ui/repeating_button_test.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..53f4770accf53e023752f14c2df115541e5a0f10 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.
+ * @type {number} The delay in milliseconds.
+ */
+ get repeatDelay() {
+ return this.holdDelayTime_;
+ },
+
+ /**
+ * Getter for the repeat interval.
+ * @type {number} The repeat interval in milliseconds.
+ */
+ get repeatInterval() {
+ return this.holdRepeatIntervalTime_;
}
};
« no previous file with comments | « no previous file | chrome/browser/resources/shared/js/cr/ui/repeating_button_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698