cygprofile: increase timeouts to allow showing web contents
[chromium-blink-merge.git] / chrome / browser / resources / cryptotoken / timer.js
blob65e9d6c18f7aaeb562fa73d425c5f96c73bdff90
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 /**
6 * @fileoverview Provides an interface representing the browser/extension
7 * system's timer interface.
8 */
9 'use strict';
11 /**
12 * An interface representing the browser/extension system's timer interface.
13 * @interface
15 function SystemTimer() {}
17 /**
18 * Sets a single-shot timer.
19 * @param {function()} func Called back when the timer expires.
20 * @param {number} timeoutMillis How long until the timer fires, in
21 * milliseconds.
22 * @return {number} A timeout ID, which can be used to cancel the timer.
24 SystemTimer.prototype.setTimeout = function(func, timeoutMillis) {};
26 /**
27 * Clears a previously set timer.
28 * @param {number} timeoutId The ID of the timer to clear.
30 SystemTimer.prototype.clearTimeout = function(timeoutId) {};
32 /**
33 * Sets a repeating interval timer.
34 * @param {function()} func Called back each time the timer fires.
35 * @param {number} timeoutMillis How long until the timer fires, in
36 * milliseconds.
37 * @return {number} A timeout ID, which can be used to cancel the timer.
39 SystemTimer.prototype.setInterval = function(func, timeoutMillis) {};
41 /**
42 * Clears a previously set interval timer.
43 * @param {number} timeoutId The ID of the timer to clear.
45 SystemTimer.prototype.clearInterval = function(timeoutId) {};