diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2016-03-12 17:58:52 -0500 |
---|---|---|
committer | Keith Yeung <kungfukeith11@gmail.com> | 2016-05-11 10:12:25 -0400 |
commit | cc049515dc77d8975351d04074310874c486c512 (patch) | |
tree | 2bdd5b068f9f964484cf0edd2dd9de5a2b656069 /components/script/script_thread.rs | |
parent | 12a96f71945dbd27336469f69f8e679a2b54b40b (diff) | |
download | servo-cc049515dc77d8975351d04074310874c486c512.tar.gz servo-cc049515dc77d8975351d04074310874c486c512.zip |
Implement user interaction task source
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r-- | components/script/script_thread.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs index 5891bd35c7c..d615a937fcf 100644 --- a/components/script/script_thread.rs +++ b/components/script/script_thread.rs @@ -100,7 +100,7 @@ use task_source::dom_manipulation::{DOMManipulationTaskSource, DOMManipulationTa use task_source::file_reading::FileReadingTaskSource; use task_source::history_traversal::HistoryTraversalTaskSource; use task_source::networking::NetworkingTaskSource; -use task_source::user_interaction::UserInteractionTaskSource; +use task_source::user_interaction::{UserInteractionTaskSource, UserInteractionTask}; use time::Tm; use url::{Url, Position}; use util::opts; @@ -222,6 +222,8 @@ pub enum MainThreadScriptMsg { Navigate(PipelineId, LoadData), /// Tasks that originate from the DOM manipulation task source DOMManipulation(DOMManipulationTask), + /// Tasks that originate from the user interaction task source + UserInteraction(UserInteractionTask), } impl OpaqueSender<CommonScriptMsg> for Box<ScriptChan + Send> { @@ -934,6 +936,8 @@ impl ScriptThread { self.collect_reports(reports_chan), MainThreadScriptMsg::DOMManipulation(task) => task.handle_task(self), + MainThreadScriptMsg::UserInteraction(task) => + task.handle_task(), } } |