-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port PlatformMediaSession enums to the new IPC serialization format
https://bugs.webkit.org/show_bug.cgi?id=264807 Reviewed by Chris Dumez. Port the enums to the serialization format, and the flags enum to OptionSet. * Source/WebCore/Modules/webaudio/AudioContext.cpp: (WebCore::AudioContext::resumeRendering): (WebCore::AudioContext::suspend): (WebCore::AudioContext::resume): (WebCore::AudioContext::suspendPlayback): (WebCore::AudioContext::defaultDestinationWillBecomeConnected): * Source/WebCore/html/HTMLMediaElement.cpp: (WebCore::HTMLMediaElement::pausedForUserInteraction const): (WebCore::HTMLMediaElement::virtualHasPendingActivity const): (WebCore::HTMLMediaElement::shouldOverrideBackgroundPlaybackRestriction const): (WebCore::HTMLMediaElement::updateShouldAutoplay): (WebCore::HTMLMediaElement::playbackControlsManagerBehaviorRestrictionsTimerFired): * Source/WebCore/html/MediaElementSession.cpp: (WebCore::MediaElementSession::visibilityChanged): (WebCore::MediaElementSession::clientDataBufferingTimerFired): (WebCore::MediaElementSession::preferredBufferingPolicy const): (WebCore::MediaElementSession::nowPlayingInfo const): (WebCore::MediaElementSession::updateMediaUsageIfChanged): * Source/WebCore/platform/audio/PlatformMediaSession.cpp: (WebCore::convertEnumerationToString): (WebCore::PlatformMediaSession::beginInterruption): (WebCore::PlatformMediaSession::endInterruption): (WebCore::PlatformMediaSession::clientWillBeginAutoplaying): (WebCore::PlatformMediaSession::clientWillBeginPlayback): (WebCore::PlatformMediaSession::processClientWillPausePlayback): (WebCore::PlatformMediaSession::pauseSession): * Source/WebCore/platform/audio/PlatformMediaSession.h: * Source/WebCore/platform/audio/PlatformMediaSession.serialization.in: * Source/WebCore/platform/audio/PlatformMediaSessionManager.cpp: (WebCore::PlatformMediaSessionManager::sessionWillBeginPlayback): (WebCore::PlatformMediaSessionManager::sessionWillEndPlayback): (WebCore::PlatformMediaSessionManager::sessionStateChanged): (WebCore::PlatformMediaSessionManager::applicationWillBecomeInactive): (WebCore::PlatformMediaSessionManager::applicationDidBecomeActive): (WebCore::PlatformMediaSessionManager::applicationDidEnterBackground): (WebCore::PlatformMediaSessionManager::applicationWillEnterForeground): (WebCore::PlatformMediaSessionManager::sessionIsPlayingToWirelessPlaybackTargetChanged): (WebCore::PlatformMediaSessionManager::processSystemWillSleep): (WebCore::PlatformMediaSessionManager::processSystemDidWake): (WebCore::PlatformMediaSessionManager::mediaPlaybackIsPaused): (WebCore::PlatformMediaSessionManager::suspendAllMediaPlaybackForGroup): (WebCore::PlatformMediaSessionManager::resumeAllMediaPlaybackForGroup): * Source/WebCore/platform/audio/cocoa/MediaSessionManagerCocoa.mm: (WebCore::MediaSessionManagerCocoa::sessionWillEndPlayback): * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::beginMediaSessionInterruption): (WebCore::Internals::endMediaSessionInterruption): Canonical link: https://commits.webkit.org/270719@main
- Loading branch information
Showing
11 changed files
with
164 additions
and
165 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.