mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Add embedder message to (de)activate media session
This commit is contained in:
parent
fd040b0a55
commit
9c329a7935
2 changed files with 8 additions and 1 deletions
|
@ -162,6 +162,9 @@ pub enum EmbedderMsg {
|
|||
Shutdown,
|
||||
/// Report a complete sampled profile
|
||||
ReportProfile(Vec<u8>),
|
||||
/// Sent when a media session is activated or deactivated.
|
||||
/// There can only be a single active media session.
|
||||
MediaSession(bool),
|
||||
}
|
||||
|
||||
impl Debug for EmbedderMsg {
|
||||
|
@ -194,6 +197,7 @@ impl Debug for EmbedderMsg {
|
|||
EmbedderMsg::AllowOpeningBrowser(..) => write!(f, "AllowOpeningBrowser"),
|
||||
EmbedderMsg::BrowserCreated(..) => write!(f, "BrowserCreated"),
|
||||
EmbedderMsg::ReportProfile(..) => write!(f, "ReportProfile"),
|
||||
EmbedderMsg::MediaSession(..) => write!(f, "MediaSession"),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue