Implement user interaction task source

This commit is contained in:
Keith Yeung 2016-03-12 17:58:52 -05:00
parent 12a96f7194
commit cc049515dc
8 changed files with 71 additions and 59 deletions

View file

@ -173,15 +173,6 @@ impl<'a> GlobalRef<'a> {
}
}
/// `ScriptChan` used to send messages to the event loop of this global's
/// thread.
pub fn user_interaction_task_source(&self) -> Box<ScriptChan + Send> {
match *self {
GlobalRef::Window(ref window) => window.user_interaction_task_source(),
GlobalRef::Worker(ref worker) => worker.script_chan(),
}
}
/// `ScriptChan` used to send messages to the event loop of this global's
/// thread.
pub fn networking_task_source(&self) -> Box<ScriptChan + Send> {