aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-11-12 22:09:39 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-11-20 13:34:29 +0100
commitb048d7faf717bb5ac90f02301b567b25d37681f3 (patch)
treea717bffa9cab78447eaccc1982e93d92a3d263ec /components/script_traits/lib.rs
parent9da1dd359290bf59a0990a8664b58b5cfbb1f091 (diff)
downloadservo-b048d7faf717bb5ac90f02301b567b25d37681f3.tar.gz
servo-b048d7faf717bb5ac90f02301b567b25d37681f3.zip
Fix media session action handling
Diffstat (limited to 'components/script_traits/lib.rs')
-rw-r--r--components/script_traits/lib.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script_traits/lib.rs b/components/script_traits/lib.rs
index 7216a369693..a8a19b5a40a 100644
--- a/components/script_traits/lib.rs
+++ b/components/script_traits/lib.rs
@@ -389,7 +389,7 @@ pub enum ConstellationControlMsg {
/// Notifies the script thread about a new recorded paint metric.
PaintMetric(PipelineId, ProgressiveWebMetricType, u64),
/// Notifies the media session about a user requested media session action.
- MediaSessionAction(BrowsingContextId, MediaSessionActionType),
+ MediaSessionAction(PipelineId, MediaSessionActionType),
}
impl fmt::Debug for ConstellationControlMsg {
@@ -881,7 +881,7 @@ pub enum ConstellationMsg {
/// Request to exit from fullscreen mode
ExitFullScreen(TopLevelBrowsingContextId),
/// Media session action.
- MediaSessionAction(TopLevelBrowsingContextId, MediaSessionActionType),
+ MediaSessionAction(MediaSessionActionType),
}
impl fmt::Debug for ConstellationMsg {