gecko-dev/dom/media/mediacontrol
alwu 5fb309e36a Bug 1582508 - part7 : create a chrome-only method to get the playback state from the main controller. r=webidl,Ehsan
Implement a chrome-only method `getCurrentMediaSessionPlaybackState()` to expose current actual playback state in testing.

The reason we create an new enum `MediaSessionPlaybackTestState` is because of building issue. If we use `MediaSessionPlaybackState` directly in the `ChromeUtils.webidl`, then the codegen would automatically add an header include of `MediaSessionBinding.h` in the `ChromeUtilsBinding.h`, which would cause the complier complaining about lots of undeclared identifier.

Differential Revision: https://phabricator.services.mozilla.com/D66344

--HG--
extra : moz-landing-system : lando
2020-03-17 01:01:31 +00:00
..
tests Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin 2020-03-17 00:03:55 +00:00
AudioFocusManager.cpp Bug 1606782 - part5 : handle audio competing first r=chunmin,bryce 2020-01-16 00:06:59 +00:00
AudioFocusManager.h Bug 1606782 - part5 : handle audio competing first r=chunmin,bryce 2020-01-16 00:06:59 +00:00
ContentMediaController.cpp Bug 1606782 - part2 : create media controller via canonical browsing context. r=chunmin,nika 2020-01-16 18:05:14 +00:00
ContentMediaController.h Bug 1607051 - do not access browsing context after XPCOM is shutdown. r=bryce 2020-01-08 17:11:34 +00:00
MediaControlIPC.h Bug 1571493 - part3 : notify media state and audible state changes. r=chunmin 2020-01-03 01:34:34 +00:00
MediaControlKeysEvent.cpp Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin 2020-03-17 00:03:55 +00:00
MediaControlKeysEvent.h Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin 2020-03-17 00:03:55 +00:00
MediaControlKeysManager.cpp Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin 2020-03-17 00:03:55 +00:00
MediaControlKeysManager.h Bug 1582508 - part5 : replace 'PlaybackState' with 'MediaSessionPlaybackState'. r=chunmin 2020-03-17 00:03:55 +00:00
MediaController.cpp Bug 1582508 - part6 : add actual playback state in the media controller r=chunmin 2020-03-17 00:39:12 +00:00
MediaController.h Bug 1582508 - part6 : add actual playback state in the media controller r=chunmin 2020-03-17 00:39:12 +00:00
MediaControlService.cpp Bug 1582508 - part7 : create a chrome-only method to get the playback state from the main controller. r=webidl,Ehsan 2020-03-17 01:01:31 +00:00
MediaControlService.h Bug 1582508 - part7 : create a chrome-only method to get the playback state from the main controller. r=webidl,Ehsan 2020-03-17 01:01:31 +00:00
MediaControlUtils.cpp Bug 1571493 - part3 : notify media state and audible state changes. r=chunmin 2020-01-03 01:34:34 +00:00
MediaControlUtils.h Bug 1582508 - part7 : create a chrome-only method to get the playback state from the main controller. r=webidl,Ehsan 2020-03-17 01:01:31 +00:00
moz.build Bug 1571493 - part1 : implement 'ContentMediaController' which is used to notify 'MediaControlKeysEvent' for controlled media. r=chunmin 2020-01-03 01:29:38 +00:00
PlaybackController.cpp Bug 1611332 - part4 : directly notify context where media session exists if we have active media session. r=chunmin,bzbarsky 2020-02-11 20:55:51 +00:00
PlaybackController.h Bug 1611332 - part4 : directly notify context where media session exists if we have active media session. r=chunmin,bzbarsky 2020-02-11 20:55:51 +00:00