Ownership between WebPlaybackSessionInterfaceMac and WebPlaybackControlsManager is...
[WebKit-https.git] / Source / WebCore / platform / mac / WebPlaybackControlsManager.mm
index 4ed68d2..d1ac67e 100644 (file)
@@ -33,7 +33,8 @@
 #else
 @implementation WebPlaybackControlsManager
 
-@synthesize webPlaybackSessionInterfaceMac=_webPlaybackSessionInterfaceMac;
+using namespace WebCore;
+
 @synthesize contentDuration=_contentDuration;
 @synthesize hasEnabledAudio=_hasEnabledAudio;
 @synthesize hasEnabledVideo=_hasEnabledVideo;
 @synthesize playing=_playing;
 @synthesize canTogglePlayback=_canTogglePlayback;
 
+@synthesize webPlaybackSessionInterfaceMac=_webPlaybackSessionInterfaceMac;
+
+- (WebPlaybackSessionInterfaceMac*)webPlaybackSessionInterfaceMac
+{
+    return _webPlaybackSessionInterfaceMac.get();
+}
+
+- (void)setWebPlaybackSessionInterfaceMac:(WebPlaybackSessionInterfaceMac*)webPlaybackSessionInterfaceMac
+{
+    _webPlaybackSessionInterfaceMac = webPlaybackSessionInterfaceMac;
+}
+
 - (AVValueTiming *)timing
 {
     return _timing.get();