Changeset 201882 in webkit
- Timestamp:
- Jun 9, 2016 2:01:55 PM (8 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r201881 r201882 1 2016-06-09 Jer Noble <jer.noble@apple.com> 2 3 Pass through play state and toggle state to the WebPlaybackControlsManager 4 https://bugs.webkit.org/show_bug.cgi?id=158578 5 <rdar://problem/25045616> 6 7 Reviewed by Beth Dakin. 8 9 Pass through the isPlaying portion of setRate() and allow toggling when a model is present. 10 11 * platform/mac/WebPlaybackControlsManager.h: 12 * platform/mac/WebPlaybackControlsManager.mm: 13 * platform/mac/WebPlaybackSessionInterfaceMac.mm: 14 (WebCore::WebPlaybackSessionInterfaceMac::setRate): 15 (WebCore::WebPlaybackSessionInterfaceMac::setPlayBackControlsManager): 16 1 17 2016-06-09 Frederic Wang <fred.wang@free.fr> 2 18 -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.h
r200333 r201882 50 50 BOOL _hasEnabledVideo; 51 51 float _rate; 52 BOOL _playing; 53 BOOL _canTogglePlayback; 52 54 53 55 @private … … 62 64 @property (readwrite) BOOL hasEnabledVideo; 63 65 @property (nonatomic) float rate; 66 @property (getter=isPlaying) BOOL playing; 67 @property BOOL canTogglePlayback; 64 68 65 69 - (void)setAudioMediaSelectionOptions:(const Vector<WTF::String>&)options withSelectedIndex:(NSUInteger)selectedIndex; -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm
r201687 r201882 39 39 @synthesize hasEnabledVideo=_hasEnabledVideo; 40 40 @synthesize rate=_rate; 41 @synthesize playing=_playing; 42 @synthesize canTogglePlayback=_canTogglePlayback; 41 43 42 44 - (AVValueTiming *)timing -
trunk/Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm
r201233 r201882 89 89 WebPlaybackControlsManager* controlsManager = playBackControlsManager(); 90 90 [controlsManager setRate:isPlaying ? playbackRate : 0.]; 91 [controlsManager setPlaying:isPlaying]; 91 92 92 93 if (m_client) … … 158 159 manager.rate = m_playbackSessionModel->isPlaying() ? m_playbackSessionModel->playbackRate() : 0.; 159 160 manager.seekableTimeRanges = timeRangesToArray(m_playbackSessionModel->seekableRanges()).get(); 161 manager.canTogglePlayback = YES; 162 manager.playing = m_playbackSessionModel->isPlaying(); 160 163 [manager setAudioMediaSelectionOptions:m_playbackSessionModel->audioMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->audioMediaSelectedIndex())]; 161 164 [manager setLegibleMediaSelectionOptions:m_playbackSessionModel->legibleMediaSelectionOptions() withSelectedIndex:static_cast<NSUInteger>(m_playbackSessionModel->legibleMediaSelectedIndex())];
Note: See TracChangeset
for help on using the changeset viewer.