mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Ability to create new TopLevelBrowsingContext
This commit is contained in:
parent
899aa0c371
commit
bb3ac8f266
5 changed files with 24 additions and 12 deletions
|
@ -71,6 +71,8 @@ pub enum WindowEvent {
|
|||
/// Toggles the Web renderer profiler on and off
|
||||
ToggleWebRenderProfiler,
|
||||
Reload(TopLevelBrowsingContextId),
|
||||
/// Create a new top level browsing context
|
||||
NewBrowser(ServoUrl, IpcSender<TopLevelBrowsingContextId>),
|
||||
}
|
||||
|
||||
impl Debug for WindowEvent {
|
||||
|
@ -93,6 +95,7 @@ impl Debug for WindowEvent {
|
|||
WindowEvent::Quit => write!(f, "Quit"),
|
||||
WindowEvent::ToggleWebRenderProfiler => write!(f, "ToggleWebRenderProfiler"),
|
||||
WindowEvent::Reload(..) => write!(f, "Reload"),
|
||||
WindowEvent::NewBrowser(..) => write!(f, "NewBrowser"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue