mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Event to make a browser visible
This commit is contained in:
parent
6876e42d66
commit
d9e7bdd7f6
4 changed files with 32 additions and 2 deletions
|
@ -73,6 +73,9 @@ pub enum WindowEvent {
|
|||
Reload(TopLevelBrowsingContextId),
|
||||
/// Create a new top level browsing context
|
||||
NewBrowser(ServoUrl, IpcSender<TopLevelBrowsingContextId>),
|
||||
/// Make a top level browsing context visible, hiding the previous
|
||||
/// visible one.
|
||||
SelectBrowser(TopLevelBrowsingContextId),
|
||||
}
|
||||
|
||||
impl Debug for WindowEvent {
|
||||
|
@ -96,6 +99,7 @@ impl Debug for WindowEvent {
|
|||
WindowEvent::ToggleWebRenderProfiler => write!(f, "ToggleWebRenderProfiler"),
|
||||
WindowEvent::Reload(..) => write!(f, "Reload"),
|
||||
WindowEvent::NewBrowser(..) => write!(f, "NewBrowser"),
|
||||
WindowEvent::SelectBrowser(..) => write!(f, "SelectBrowser"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue