From 68baabba63d84385b94a31c013dd1e55452e4310 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Jim=C3=A9nez=20Moreno?= Date: Wed, 6 Nov 2019 18:37:04 +0100 Subject: Format code and fix rebase errors --- components/script_traits/script_msg.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'components/script_traits/script_msg.rs') diff --git a/components/script_traits/script_msg.rs b/components/script_traits/script_msg.rs index 9db4e7ac7e2..4cce2501c88 100644 --- a/components/script_traits/script_msg.rs +++ b/components/script_traits/script_msg.rs @@ -8,7 +8,6 @@ use crate::DocumentState; use crate::IFrameLoadInfoWithData; use crate::LayoutControlMsg; use crate::LoadData; -use crate::MediaSessionEvent; use crate::MessagePortMsg; use crate::PortMessageTask; use crate::StructuredSerializedData; @@ -255,6 +254,9 @@ pub enum ScriptMsg { GetScreenSize(IpcSender), /// Get the available screen size (pixel) GetScreenAvailSize(IpcSender), + /// Notifies the constellation about media session events + /// (i.e. when there is metadata for the active media session, playback state changes...). + MediaSessionEvent(BrowsingContextId, MediaSessionEvent) } impl fmt::Debug for ScriptMsg { -- cgit v1.2.3