Changeset 275100 in webkit
- Timestamp:
- Mar 26, 2021, 8:58:17 AM (4 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r275097 r275100 1 2021-03-26 Devin Rousso <drousso@apple.com> 2 3 Adopt AVKit SPI for hiding touch bar seeking controls 4 https://bugs.webkit.org/show_bug.cgi?id=223773 5 <rdar://problem/68937617> 6 7 Reviewed by Jer Noble. 8 9 * platform/mac/WebPlaybackControlsManager.h: 10 * platform/mac/WebPlaybackControlsManager.mm: 11 (-[WebPlaybackControlsManager setSeekableTimeRanges:]): 12 (-[WebPlaybackControlsManager canBeginTouchBarScrubbing]): 13 If the list of seekable time ranges is empty, we are unable to seek. 14 1 15 2021-03-26 Kimmo Kinnunen <kkinnunen@apple.com> 2 16 -
trunk/Source/WebCore/PAL/ChangeLog
r275082 r275100 1 2021-03-26 Devin Rousso <drousso@apple.com> 2 3 Adopt AVKit SPI for hiding touch bar seeking controls 4 https://bugs.webkit.org/show_bug.cgi?id=223773 5 <rdar://problem/68937617> 6 7 Reviewed by Jer Noble. 8 9 * pal/spi/cocoa/AVKitSPI.h: 10 1 11 2021-03-26 Jessie Berlin <jberlin@webkit.org> 2 12 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/AVKitSPI.h
r274249 r275100 330 330 @property (readonly) BOOL canTogglePictureInPicture; 331 331 - (void)togglePictureInPicture; 332 @property (nonatomic, readonly) BOOL canSeek; 332 333 333 334 typedef NS_ENUM(NSInteger, AVTouchBarMediaSelectionOptionType) { -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.h
r274249 r275100 57 57 BOOL _hasEnabledVideo; 58 58 BOOL _canTogglePlayback; 59 BOOL _canSeek; 59 60 } 60 61 … … 74 75 @property BOOL canTogglePictureInPicture; 75 76 - (void)togglePictureInPicture; 77 @property (nonatomic, readonly) BOOL canSeek; 76 78 77 79 - (AVTouchBarMediaSelectionOption *)currentAudioTouchBarMediaSelectionOption; -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm
r274249 r275100 55 55 @synthesize pictureInPictureActive; 56 56 @synthesize canTogglePictureInPicture; 57 @synthesize canSeek = _canSeek; 57 58 58 59 - (void)dealloc … … 91 92 { 92 93 _seekableTimeRanges = timeRanges; 94 95 _canSeek = timeRanges.count; 93 96 } 94 97 … … 131 134 // other media. The intent of the API is that we return NO when the media is being scrubbed via the on-screen scrubber. 132 135 // But we can only possibly get the right answer for media that uses the default controls. 133 return std::isfinite(_contentDuration) && [_seekableTimeRanges count];136 return _canSeek && std::isfinite(_contentDuration); 134 137 } 135 138
Note:
See TracChangeset
for help on using the changeset viewer.