[Modern Media Controls] Media Controller: Placard support
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Oct 2016 22:13:08 +0000 (22:13 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Oct 2016 22:13:08 +0000 (22:13 +0000)
commita18ce580a8ac6e466c73e2c66a26c9bab40b818f
treedce7521e40a94d47f2903c2dcd2bc2ab0801e262
parent4bb6a51fad6ffc0a595b34383fab5baca01caaf9
[Modern Media Controls] Media Controller: Placard support
https://bugs.webkit.org/show_bug.cgi?id=163731
<rdar://problem/28869598>

Reviewed by Dean Jackson.

We introduce the PlacardSupport class which brings support for showing the
appropriate placard when the media is played via AirPlay or in picture-in-picture.

Tests: media/modern-media-controls/placard-support/placard-support-airplay.html
       media/modern-media-controls/placard-support/placard-support-pip.html

* Modules/modern-media-controls/js-files:
* Modules/modern-media-controls/media/media-controller.js:
(MediaController):
* Modules/modern-media-controls/media/placard-support.js: Added.
(PlacardSupport):
(PlacardSupport.prototype.get mediaEvents):
(PlacardSupport.prototype.handleEvent):
(PlacardSupport.prototype._updatePlacard):
* WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208182 268f45cc-cd09-0410-ab3c-d52691b4dbfc
37 files changed:
LayoutTests/ChangeLog
LayoutTests/http/tests/media/modern-media-controls/skip-back-support/skip-back-support-button-click.html
LayoutTests/media/modern-media-controls/elapsed-time-support/elapsed-time-support.html
LayoutTests/media/modern-media-controls/media-controller/media-controller-constructor.html
LayoutTests/media/modern-media-controls/media-controller/media-controller-resize.html
LayoutTests/media/modern-media-controls/mute-support/mute-support-button-click.html
LayoutTests/media/modern-media-controls/mute-support/mute-support-media-api.html
LayoutTests/media/modern-media-controls/mute-support/mute-support-muted.html
LayoutTests/media/modern-media-controls/placard-support/placard-support-airplay-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/placard-support/placard-support-airplay.html [new file with mode: 0644]
LayoutTests/media/modern-media-controls/placard-support/placard-support-pip-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/placard-support/placard-support-pip.html [new file with mode: 0644]
LayoutTests/media/modern-media-controls/playback-support/playback-support-autoplay.html
LayoutTests/media/modern-media-controls/playback-support/playback-support-button-click.html
LayoutTests/media/modern-media-controls/playback-support/playback-support-media-api.html
LayoutTests/media/modern-media-controls/remaining-time-support/remaining-time-support.html
LayoutTests/media/modern-media-controls/scrubber-support/scrubber-support-click.html
LayoutTests/media/modern-media-controls/scrubber-support/scrubber-support-drag.html
LayoutTests/media/modern-media-controls/scrubber-support/scrubber-support-media-api.html
LayoutTests/media/modern-media-controls/start-support/start-support-audio.html
LayoutTests/media/modern-media-controls/start-support/start-support-autoplay.html
LayoutTests/media/modern-media-controls/start-support/start-support-click-to-start.html
LayoutTests/media/modern-media-controls/start-support/start-support-error.html
LayoutTests/media/modern-media-controls/start-support/start-support-fullscreen.html
LayoutTests/media/modern-media-controls/start-support/start-support-manual-play.html
LayoutTests/media/modern-media-controls/start-support/start-support-no-source.html
LayoutTests/media/modern-media-controls/volume-support/volume-support-click.html
LayoutTests/media/modern-media-controls/volume-support/volume-support-drag.html
LayoutTests/media/modern-media-controls/volume-support/volume-support-media-api-mute.html
LayoutTests/media/modern-media-controls/volume-support/volume-support-media-api.html
LayoutTests/platform/ios-simulator/TestExpectations
LayoutTests/platform/mac/TestExpectations
Source/WebCore/ChangeLog
Source/WebCore/Modules/modern-media-controls/js-files
Source/WebCore/Modules/modern-media-controls/media/media-controller.js
Source/WebCore/Modules/modern-media-controls/media/placard-support.js [new file with mode: 0644]
Source/WebCore/WebCore.xcodeproj/project.pbxproj