mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Experimental implementation of (a small subset of) mozbrowser APIs.
This commit is contained in:
parent
fef439726a
commit
bf9b8f7050
10 changed files with 393 additions and 40 deletions
|
@ -72,6 +72,8 @@ pub enum ConstellationControlMsg {
|
|||
Thaw(PipelineId),
|
||||
/// Notifies script task that a url should be loaded in this iframe.
|
||||
Navigate(PipelineId, SubpageId, LoadData),
|
||||
/// Requests the script task forward a mozbrowser event to an iframe it owns
|
||||
MozBrowserEvent(PipelineId, SubpageId, String, Option<String>),
|
||||
}
|
||||
|
||||
unsafe impl Send for ConstellationControlMsg {
|
||||
|
@ -99,6 +101,7 @@ pub struct ScriptControlChan(pub Sender<ConstellationControlMsg>);
|
|||
pub trait ScriptTaskFactory {
|
||||
fn create<C>(_phantom: Option<&mut Self>,
|
||||
id: PipelineId,
|
||||
parent_info: Option<(PipelineId, SubpageId)>,
|
||||
compositor: C,
|
||||
layout_chan: &OpaqueScriptLayoutChannel,
|
||||
control_chan: ScriptControlChan,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue