Ability to create new TopLevelBrowsingContext

This commit is contained in:
Paul Rouget 2017-07-15 07:35:59 +02:00
parent 899aa0c371
commit bb3ac8f266
5 changed files with 24 additions and 12 deletions

View file

@ -740,8 +740,6 @@ pub enum ConstellationMsg {
/// Request that the constellation send the current focused top-level browsing context id,
/// over a provided channel.
GetFocusTopLevelBrowsingContext(IpcSender<Option<TopLevelBrowsingContextId>>),
/// Request to load the initial page.
InitLoadUrl(ServoUrl),
/// Query the constellation to see if the current compositor output is stable
IsReadyToSaveImage(HashMap<PipelineId, Epoch>),
/// Inform the constellation of a key event.
@ -764,6 +762,8 @@ pub enum ConstellationMsg {
SetWebVRThread(IpcSender<WebVRMsg>),
/// Dispatch WebVR events to the subscribed script threads.
WebVREvents(Vec<PipelineId>, Vec<WebVREvent>),
/// Create a new top level browsing context.
NewBrowser(ServoUrl, IpcSender<TopLevelBrowsingContextId>),
}
/// Resources required by workerglobalscopes