RESOLVED FIXED 135525
Support both window and view based video fullscreen.
https://bugs.webkit.org/show_bug.cgi?id=135525
Summary Support both window and view based video fullscreen.
Jeremy Jones
Reported 2014-08-01 15:45:29 PDT
Support both window and view based video fullscreen.
Attachments
Patch (18.22 KB, patch)
2014-08-01 16:16 PDT, Jeremy Jones
simon.fraser: review+
Patch for landing. (19.92 KB, patch)
2014-08-02 16:21 PDT, Jeremy Jones
no flags
Jeremy Jones
Comment 1 2014-08-01 15:47:39 PDT
Jeremy Jones
Comment 2 2014-08-01 16:16:40 PDT
WebKit Commit Bot
Comment 3 2014-08-01 16:18:03 PDT
Attachment 235921 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:913: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 10 files If any of these errors are false positives, please file a bug against check-webkit-style.
Simon Fraser (smfr)
Comment 4 2014-08-02 09:12:24 PDT
Comment on attachment 235921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235921&action=review > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h:67 > RetainPtr<UIViewController> m_viewController; > + RetainPtr<UIWindow> m_window; > + RetainPtr<UIView> m_parentView; Please add a comment or two here explaining which of these are used in which cases. > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:750 > + if (![bundleIdentifier isEqualToString:@"com.apple.AdSheetPhone"]) { You should not bury this application check here. Please add it to RuntimeApplicationCheckIOS.mm and use !applicationIsAdSheet() here. I think it's worth referencing a radar in a comment too.
Eric Carlson
Comment 5 2014-08-02 09:37:06 PDT
Comment on attachment 235921 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=235921&action=review > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:857 > + [m_window setHidden:YES]; > + [m_window setRootViewController:nil]; Nit: you nil-check m_window below so you might as well put these in that block.
Jeremy Jones
Comment 6 2014-08-02 16:21:52 PDT
Created attachment 235941 [details] Patch for landing.
Jeremy Jones
Comment 7 2014-08-02 16:22:14 PDT
(In reply to comment #5) > (From update of attachment 235921 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235921&action=review > > > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:857 > > + [m_window setHidden:YES]; > > + [m_window setRootViewController:nil]; > > Nit: you nil-check m_window below so you might as well put these in that block. Done.
Jeremy Jones
Comment 8 2014-08-02 16:22:49 PDT
(In reply to comment #4) > (From update of attachment 235921 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=235921&action=review > > > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h:67 > > RetainPtr<UIViewController> m_viewController; > > + RetainPtr<UIWindow> m_window; > > + RetainPtr<UIView> m_parentView; > > Please add a comment or two here explaining which of these are used in which cases. Grouped them and added a comment. > > > Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:750 > > + if (![bundleIdentifier isEqualToString:@"com.apple.AdSheetPhone"]) { > > You should not bury this application check here. Please add it to RuntimeApplicationCheckIOS.mm and use !applicationIsAdSheet() here. I think it's worth referencing a radar in a comment too. Done.
WebKit Commit Bot
Comment 9 2014-08-02 16:24:52 PDT
Attachment 235941 [details] did not pass style-queue: ERROR: Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.mm:910: Place brace on its own line for function definitions. [whitespace/braces] [4] Total errors found: 1 in 12 files If any of these errors are false positives, please file a bug against check-webkit-style.
WebKit Commit Bot
Comment 10 2014-08-02 17:03:41 PDT
Comment on attachment 235941 [details] Patch for landing. Clearing flags on attachment: 235941 Committed r171973: <http://trac.webkit.org/changeset/171973>
Note You need to log in before you can comment on or make changes to this bug.