diff options
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r-- | components/script_traits/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs index 1aa37e56533..39dd2c5d517 100644 --- a/components/script_traits/lib.rs +++ b/components/script_traits/lib.rs @@ -556,14 +556,9 @@ pub struct TimerEventRequest( pub MsDuration, ); -/// Type of messages that can be sent to the timer scheduler. +/// The message used to send a request to the timer scheduler. #[derive(Debug, Deserialize, Serialize)] -pub enum TimerSchedulerMsg { - /// Message to schedule a new timer event. - Request(TimerEventRequest), - /// Message to exit the timer scheduler. - Exit, -} +pub struct TimerSchedulerMsg(pub TimerEventRequest); /// Notifies the script thread to fire due timers. /// `TimerSource` must be `FromWindow` when dispatched to `ScriptThread` and |