|
Lines 45-50
a/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm_sec1
|
| 45 |
#import <pal/spi/cocoa/AVKitSPI.h> |
45 |
#import <pal/spi/cocoa/AVKitSPI.h> |
| 46 |
#import <pal/spi/cocoa/QuartzCoreSPI.h> |
46 |
#import <pal/spi/cocoa/QuartzCoreSPI.h> |
| 47 |
#import <pal/spi/ios/UIKitSPI.h> |
47 |
#import <pal/spi/ios/UIKitSPI.h> |
|
|
48 |
#import <wtf/RefPtr.h> |
| 48 |
#import <wtf/RetainPtr.h> |
49 |
#import <wtf/RetainPtr.h> |
| 49 |
#import <wtf/text/CString.h> |
50 |
#import <wtf/text/CString.h> |
| 50 |
#import <wtf/text/WTFString.h> |
51 |
#import <wtf/text/WTFString.h> |
|
Lines 94-100
@end
a/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm_sec2
|
| 94 |
@class WebAVMediaSelectionOption; |
95 |
@class WebAVMediaSelectionOption; |
| 95 |
|
96 |
|
| 96 |
@interface WebAVPlayerViewControllerDelegate : NSObject <AVPlayerViewControllerDelegate_WebKitOnly> { |
97 |
@interface WebAVPlayerViewControllerDelegate : NSObject <AVPlayerViewControllerDelegate_WebKitOnly> { |
| 97 |
RefPtr<VideoFullscreenInterfaceAVKit> _fullscreenInterface; |
98 |
WeakPtr<VideoFullscreenInterfaceAVKit> _fullscreenInterface; |
| 98 |
} |
99 |
} |
| 99 |
@property (assign) VideoFullscreenInterfaceAVKit* fullscreenInterface; |
100 |
@property (assign) VideoFullscreenInterfaceAVKit* fullscreenInterface; |
| 100 |
- (BOOL)playerViewController:(AVPlayerViewController *)playerViewController shouldExitFullScreenWithReason:(AVPlayerViewControllerExitFullScreenReason)reason; |
101 |
- (BOOL)playerViewController:(AVPlayerViewController *)playerViewController shouldExitFullScreenWithReason:(AVPlayerViewControllerExitFullScreenReason)reason; |
|
Lines 108-114
- (VideoFullscreenInterfaceAVKit*)fullscreenInterface
a/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm_sec3
|
| 108 |
|
109 |
|
| 109 |
- (void)setFullscreenInterface:(VideoFullscreenInterfaceAVKit*)fullscreenInterface |
110 |
- (void)setFullscreenInterface:(VideoFullscreenInterfaceAVKit*)fullscreenInterface |
| 110 |
{ |
111 |
{ |
| 111 |
_fullscreenInterface = fullscreenInterface; |
112 |
_fullscreenInterface = makeWeakPtr(*fullscreenInterface); |
| 112 |
} |
113 |
} |
| 113 |
|
114 |
|
| 114 |
- (void)playerViewControllerWillStartPictureInPicture:(AVPlayerViewController *)playerViewController |
115 |
- (void)playerViewControllerWillStartPictureInPicture:(AVPlayerViewController *)playerViewController |
|
Lines 891-896
void VideoFullscreenInterfaceAVKit::setupFullscreen(UIView& videoView, const Int
a/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm_sec4
|
| 891 |
ASSERT(standby || mode != HTMLMediaElementEnums::VideoFullscreenModeNone); |
892 |
ASSERT(standby || mode != HTMLMediaElementEnums::VideoFullscreenModeNone); |
| 892 |
LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::setupFullscreen(%p)", this); |
893 |
LOG(Fullscreen, "VideoFullscreenInterfaceAVKit::setupFullscreen(%p)", this); |
| 893 |
|
894 |
|
|
|
895 |
[playerController() setHasEnabledVideo:true]; |
| 896 |
[playerController() setHasVideo:true]; |
| 897 |
[playerController() setContentDimensions:initialRect.size()]; |
| 898 |
|
| 894 |
m_allowsPictureInPicturePlayback = allowsPictureInPicturePlayback; |
899 |
m_allowsPictureInPicturePlayback = allowsPictureInPicturePlayback; |
| 895 |
m_videoView = &videoView; |
900 |
m_videoView = &videoView; |
| 896 |
m_parentView = parentView; |
901 |
m_parentView = parentView; |
|
Lines 968-973
void VideoFullscreenInterfaceAVKit::cleanupFullscreen()
a/Source/WebCore/platform/ios/VideoFullscreenInterfaceAVKit.mm_sec5
|
| 968 |
|
973 |
|
| 969 |
if (m_fullscreenChangeObserver) |
974 |
if (m_fullscreenChangeObserver) |
| 970 |
m_fullscreenChangeObserver->didCleanupFullscreen(); |
975 |
m_fullscreenChangeObserver->didCleanupFullscreen(); |
|
|
976 |
|
| 977 |
[playerController() setHasEnabledVideo:false]; |
| 978 |
[playerController() setHasVideo:false]; |
| 971 |
} |
979 |
} |
| 972 |
|
980 |
|
| 973 |
void VideoFullscreenInterfaceAVKit::invalidate() |
981 |
void VideoFullscreenInterfaceAVKit::invalidate() |