mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Make MediaSession handle embedder requested action
This commit is contained in:
parent
6233f78de4
commit
fa61191405
2 changed files with 9 additions and 1 deletions
|
@ -15,6 +15,7 @@ use crate::dom::window::Window;
|
|||
use crate::script_thread::ScriptThread;
|
||||
use dom_struct::dom_struct;
|
||||
use msg::constellation_msg::TopLevelBrowsingContextId;
|
||||
use script_traits::MediaSessionActionType;
|
||||
use std::rc::Rc;
|
||||
|
||||
#[dom_struct]
|
||||
|
@ -46,6 +47,10 @@ impl MediaSession {
|
|||
MediaSessionBinding::Wrap,
|
||||
)
|
||||
}
|
||||
|
||||
pub fn handle_action(&self, action: MediaSessionActionType) {
|
||||
// TODO
|
||||
}
|
||||
}
|
||||
|
||||
impl MediaSessionMethods for MediaSession {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue