Lines Matching refs:timer

46  * The signature of the timer callback function passed to initWithCallback. This
47 * is the function that will get called when the timer expires if the timer is
50 * @param aTimer the timer which has expired
73 * @param aTimer the timer which has expired
75 void notify(in nsITimer timer);
82 * delay to avoid the overhead of destroying and creating a timer. It is not
83 * necessary to cancel the timer in that case.
91 * Type of a timer that fires once only.
96 * After firing, a TYPE_REPEATING_SLACK timer is stopped and not restarted
97 * until its callback completes. Specified timer period will be at least
106 * An TYPE_REPEATING_PRECISE repeating timer aims to have constant period
107 * between firings. The processing time for each timer callback should not
108 * influence the timer period. However, if the processing for the last
109 * timer firing could not be completed until just before the next firing
110 * occurs, then you could have two timer notification routines being
116 * Initialize a timer that will fire after the said delay.
117 * A user must keep a reference to this timer till it is
121 * ``timer-callback'' topic with the subject being
122 * the timer itself when the timer fires:
125 * string aTopic, => ``timer-callback''
128 * @param aDelay delay in milliseconds for timer to fire
129 * @param aType timer type per TYPE* consts defined above
136 * Initialize a timer to fire after the given millisecond interval.
151 * Initialize a timer to fire after the given millisecond interval.
155 * @param aFunc nsITimerCallback interface to call when timer expires
164 * Cancel the timer. This method works on all types, not just on repeating
165 * timers -- you might want to cancel a TYPE_ONE_SHOT timer, and even reuse
167 * by conserving one timer instance).
177 * The timer type : one shot or repeating
188 #define NS_TIMER_CONTRACTID "@mozilla.org/timer;1"
189 #define NS_TIMER_CALLBACK_TOPIC "timer-callback"