Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[Modern Media Controls] upstream new features
https://bugs.webkit.org/show_bug.cgi?id=241390 <rdar://problem/94581729> Reviewed by Eric Carlson. * Source/WebCore/Modules/modern-media-controls/controls/inline-media-controls.js: (InlineMediaControls.prototype.layout): (InlineMediaControls.prototype.topLeftContainerButtons): Renamed from `_topLeftContainerButtons`. (InlineMediaControls.prototype.leftContainerButtons): Renamed from `_leftContainerButtons`. (InlineMediaControls.prototype.centerContainerButtons): Renamed from `_centerContainerButtons`. (InlineMediaControls.prototype.rightContainerButtons): Renamed from `_rightContainerButtons`. (InlineMediaControls.prototype.droppableButtons): Renamed from `_droppableButtons`. (InlineMediaControls.prototype.collapsableButtons): Renamed from `_collapsableButtons`. Move these methods into `// Protected` so subclasses can override. * Source/WebCore/Modules/modern-media-controls/controls/ios-inline-media-controls.js: (IOSInlineMediaControls.prototype.layout): Added. (IOSInlineMediaControls.prototype.centerContainerButtons): Added. (IOSInlineMediaControls.prototype.leftContainerButtons): Added. (IOSInlineMediaControls.prototype.droppableButtons): Added. (IOSInlineMediaControls.prototype.get _shouldUseMultilineLayout): Added. * Source/WebCore/Modules/modern-media-controls/controls/ios-inline-media-controls.css: Added. (.media-controls.inline.ios:not(.audio)): (.media-controls.inline.ios:not(.audio):is(:empty, .faded)): (.media-controls.inline.ios:not(.audio) *): (.media-controls.inline.ios:not(.audio) > .controls-bar:is(.top-left, .top-right)): (.media-controls.inline.ios:not(.audio) > .controls-bar.center): Only use the new UI for `<video>`. * Source/WebCore/Modules/modern-media-controls/controls/slider.js: (Slider): (Slider.prototype.get allowsRelativeScrubbing): Added. (Slider.prototype.set allowsRelativeScrubbing): Added. (Slider.prototype.handleEvent): (Slider.prototype._handlePointerdownEvent): (Slider.prototype._handlePointermoveEvent): Added. (Slider.prototype._handlePointerupEvent): (Slider.prototype._playbackProgress): Added. (Slider.prototype._valueWillStartChanging): Deleted. (Slider.prototype._valueDidStopChanging): Deleted. * Source/WebCore/Modules/modern-media-controls/controls/slider.css: (.slider.allows-relative-scrubbing > .custom-slider): Added. (.slider.allows-relative-scrubbing > .custom-slider.changing): Added. (.slider.allows-relative-scrubbing > .custom-slider > .fill): Added. (.slider.allows-relative-scrubbing > .custom-slider.changing > .fill.primary): Added. (.slider.allows-relative-scrubbing > .custom-slider.changing > .fill.track): Added. (.slider.allows-relative-scrubbing > .custom-slider.changing > .fill.secondary): Added. (.slider.allows-relative-scrubbing > input): Added. (.ios .slider > input): (.ios .slider:not(.allows-relative-scrubbing) > input): Added. * Source/WebCore/Modules/modern-media-controls/controls/adwaita-fullscreen-media-controls.js: (AdwaitaFullscreenMediaControls): * Source/WebCore/Modules/modern-media-controls/controls/adwaita-inline-media-controls.js: (AdwaitaInlineMediaControls): * Source/WebCore/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js: (MacOSFullscreenMediaControls): * Source/WebCore/Modules/modern-media-controls/controls/macos-inline-media-controls.js: (MacOSInlineMediaControls): * Source/WebCore/Modules/modern-media-controls/controls/time-control.js: (TimeControl): Allow the user to use relative scrubbing instead of having to exactly tap/drag on the knob. * Source/WebCore/Modules/modern-media-controls/controls/ios-layout-traits.js: (IOSLayoutTraits.prototype.skipDuration): Change to 10s. * Source/WebCore/Modules/modern-media-controls/controls/overflow-button.js: (OverflowButton): * Source/WebCore/Modules/modern-media-controls/controls/layout-traits.js: (LayoutTraits.prototype.overflowButtonHasCircle): Deleted. * Source/WebCore/Modules/modern-media-controls/controls/icon-service.js: * Source/WebCore/Modules/modern-media-controls/images/iOS/Overflow.svg: * Source/WebCore/Modules/modern-media-controls/images/iOS/OverflowCircle.svg: Removed. Update iOS overflow button icon. * Source/WebCore/CMakeLists.txt: * Source/WebCore/DerivedSources-input.xcfilelist: * Source/WebCore/DerivedSources.make: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled.html: * LayoutTests/fast/mediastream/MediaStream-video-element-video-tracks-disabled-expected.html: * LayoutTests/media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-layout.html: * LayoutTests/media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-layout-expected.txt: * LayoutTests/media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-added-after-play.html: * LayoutTests/media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-added-after-play-expected.txt: * LayoutTests/media/modern-media-controls/ios-inline-media-controls/touch/ios-inline-media-controls-shows-start-button.html: * LayoutTests/media/modern-media-controls/skip-back-button/skip-back-button.html: * LayoutTests/media/modern-media-controls/skip-back-button/skip-back-button-expected.txt: * LayoutTests/media/modern-media-controls/skip-forward-button/skip-forward-button.html: * LayoutTests/media/modern-media-controls/skip-forward-button/skip-forward-button-expected.txt: * LayoutTests/media/modern-media-controls/slider/slider-constructor.html: * LayoutTests/media/modern-media-controls/slider/slider-styles.html: * LayoutTests/media/modern-media-controls/slider/slider-value.html: * LayoutTests/platform/ios/media/track/track-css-visible-stroke-expected.html: Added. Canonical link: https://commits.webkit.org/251444@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
35 changed files
with
359 additions
and
138 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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
|
||
<style> | ||
|
||
.redtile { | ||
width: 50px; | ||
height: 50px; | ||
position: absolute; | ||
background-color: red; | ||
} | ||
|
||
.redtile > .overlay { | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(0, 0, 0, 0.55); | ||
} | ||
|
||
</style> | ||
|
||
</head> | ||
<body> | ||
<div class="redtile" style="left: 0px; top: 0px;"><div class="overlay"></div></div> | ||
</body> | ||
</html> |
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
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.