Changeset 202908 in webkit
- Timestamp:
- Jul 7, 2016, 9:00:20 AM (10 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
platform/mac/WebPlaybackControlsManager.h (modified) (1 diff)
-
platform/mac/WebPlaybackControlsManager.mm (modified) (2 diffs)
-
platform/mac/WebPlaybackSessionInterfaceMac.h (modified) (1 diff)
-
platform/mac/WebPlaybackSessionInterfaceMac.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r202905 r202908 1 2016-07-05 Jer Noble <jer.noble@apple.com> 2 3 Ownership between WebPlaybackSessionInterfaceMac and WebPlaybackControlsManager is backwards. 4 https://bugs.webkit.org/show_bug.cgi?id=159441 5 6 Reviewed by Eric Carlson. 7 8 The WebPlaybackControlsManager should own the WebPlaybackSessionInterfaceMac, and not 9 vice versa. 10 11 * platform/mac/WebPlaybackControlsManager.h: 12 * platform/mac/WebPlaybackControlsManager.mm: 13 (-[WebPlaybackControlsManager webPlaybackSessionInterfaceMac]): 14 (-[WebPlaybackControlsManager setWebPlaybackSessionInterfaceMac:]): 15 * platform/mac/WebPlaybackSessionInterfaceMac.h: 16 * platform/mac/WebPlaybackSessionInterfaceMac.mm: 17 (WebCore::WebPlaybackSessionInterfaceMac::playBackControlsManager): 18 1 19 2016-07-07 Eric Carlson <eric.carlson@apple.com> 2 20 -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.h
r201882 r202908 54 54 55 55 @private 56 WebCore::WebPlaybackSessionInterfaceMac*_webPlaybackSessionInterfaceMac;56 RefPtr<WebCore::WebPlaybackSessionInterfaceMac> _webPlaybackSessionInterfaceMac; 57 57 } 58 58 59 @property ( assign) WebCore::WebPlaybackSessionInterfaceMac* webPlaybackSessionInterfaceMac;59 @property (retain) WebCore::WebPlaybackSessionInterfaceMac* webPlaybackSessionInterfaceMac; 60 60 @property (readwrite) NSTimeInterval contentDuration; 61 61 @property (nonatomic, retain, readwrite) AVValueTiming *timing; -
trunk/Source/WebCore/platform/mac/WebPlaybackControlsManager.mm
r201882 r202908 34 34 @implementation WebPlaybackControlsManager 35 35 36 @synthesize webPlaybackSessionInterfaceMac=_webPlaybackSessionInterfaceMac; 36 using namespace WebCore; 37 37 38 @synthesize contentDuration=_contentDuration; 38 39 @synthesize hasEnabledAudio=_hasEnabledAudio; … … 41 42 @synthesize playing=_playing; 42 43 @synthesize canTogglePlayback=_canTogglePlayback; 44 45 @synthesize webPlaybackSessionInterfaceMac=_webPlaybackSessionInterfaceMac; 46 47 - (WebPlaybackSessionInterfaceMac*)webPlaybackSessionInterfaceMac 48 { 49 return _webPlaybackSessionInterfaceMac.get(); 50 } 51 52 - (void)setWebPlaybackSessionInterfaceMac:(WebPlaybackSessionInterfaceMac*)webPlaybackSessionInterfaceMac 53 { 54 _webPlaybackSessionInterfaceMac = webPlaybackSessionInterfaceMac; 55 } 43 56 44 57 - (AVValueTiming *)timing -
trunk/Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.h
r200254 r202908 80 80 private: 81 81 WebPlaybackSessionModel* m_playbackSessionModel { nullptr }; 82 RetainPtr<WebPlaybackControlsManager>m_playbackControlsManager;82 WebPlaybackControlsManager *m_playbackControlsManager; 83 83 WebPlaybackSessionInterfaceMacClient* m_client { nullptr }; 84 84 }; -
trunk/Source/WebCore/platform/mac/WebPlaybackSessionInterfaceMac.mm
r201882 r202908 138 138 { 139 139 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101200 140 return m_playbackControlsManager .get();140 return m_playbackControlsManager; 141 141 #else 142 142 return nil;
Note:
See TracChangeset
for help on using the changeset viewer.