[Modern Media Controls] UI Library: StatusLabel
authorgraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2016 19:37:22 +0000 (19:37 +0000)
committergraouts@webkit.org <graouts@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 9 Nov 2016 19:37:22 +0000 (19:37 +0000)
commit28f1a997858709e10220362cbce38f6eb691a6bf
tree0d093d913c22ac380c474646db67073a3408cbd0
parentbf7ba8d5dbb4d0e9d4df8d5e5c61c303f31fafc6
[Modern Media Controls] UI Library: StatusLabel
https://bugs.webkit.org/show_bug.cgi?id=164544
<rdar://problem/29179541>

Reviewed by Dean Jackson.

We add a new StatusLabel class to display a string of text in place of the TimeControl.
A followup patch will add the logic to display "Error", "Loading" and "Live Broadcast"
test under the right media state.

Tests: media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-status-label.html
       media/modern-media-controls/status-label/status-label.html

* Modules/modern-media-controls/controls/macos-inline-media-controls.css:
(.media-controls.mac.inline .time-label,):
(.media-controls.mac.inline .time-label): Deleted.
* Modules/modern-media-controls/controls/macos-inline-media-controls.js:
(MacOSInlineMediaControls.prototype.layout):
* Modules/modern-media-controls/controls/media-controls.js:
(MediaControls.):
* Modules/modern-media-controls/controls/status-label.css: Added.
(.status-label):
* Modules/modern-media-controls/controls/status-label.js: Added.
(StatusLabel.prototype.get text):
(StatusLabel.prototype.set text):
(StatusLabel.prototype.commitProperty):
* Modules/modern-media-controls/js-files:
* WebCore.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208456 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
LayoutTests/ChangeLog
LayoutTests/media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-status-label-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-status-label.html [new file with mode: 0644]
LayoutTests/media/modern-media-controls/media-controls/media-controls-constructor-expected.txt
LayoutTests/media/modern-media-controls/media-controls/media-controls-constructor.html
LayoutTests/media/modern-media-controls/resources/media-controls-loader.js
LayoutTests/media/modern-media-controls/status-label/status-label-expected.txt [new file with mode: 0644]
LayoutTests/media/modern-media-controls/status-label/status-label.html [new file with mode: 0644]
Source/WebCore/ChangeLog
Source/WebCore/Modules/modern-media-controls/controls/macos-inline-media-controls.css
Source/WebCore/Modules/modern-media-controls/controls/macos-inline-media-controls.js
Source/WebCore/Modules/modern-media-controls/controls/media-controls.js
Source/WebCore/Modules/modern-media-controls/controls/status-label.css [new file with mode: 0644]
Source/WebCore/Modules/modern-media-controls/controls/status-label.js [new file with mode: 0644]
Source/WebCore/Modules/modern-media-controls/js-files
Source/WebCore/WebCore.xcodeproj/project.pbxproj