Bug 139227 - [iOS] allow host application to opt-out of alternate fullscreen pt. 2
Summary: [iOS] allow host application to opt-out of alternate fullscreen pt. 2
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Media (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Eric Carlson
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2014-12-03 11:14 PST by Eric Carlson
Modified: 2014-12-05 05:34 PST (History)
7 users (show)

See Also:


Attachments
Proposed patch. (11.22 KB, patch)
2014-12-03 11:48 PST, Eric Carlson
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2014-12-03 11:14:33 PST
Pass the setting added in r176199 to AVKit.
Comment 1 Eric Carlson 2014-12-03 11:48:48 PST
Created attachment 242510 [details]
Proposed patch.
Comment 2 Jeremy Jones 2014-12-03 12:04:41 PST
r=me
Comment 3 Jer Noble 2014-12-03 13:10:31 PST
Comment on attachment 242510 [details]
Proposed patch.

View in context: https://bugs.webkit.org/attachment.cgi?id=242510&action=review

r=me, but needs a 👍 from a WK2 owner for the WK2 changes.

> Source/WebCore/platform/ios/WebVideoFullscreenInterfaceAVKit.h:84
> -    WEBCORE_EXPORT virtual void setupFullscreen(PlatformLayer&, IntRect initialRect, UIView *, HTMLMediaElement::VideoFullscreenMode);
> +    WEBCORE_EXPORT virtual void setupFullscreen(PlatformLayer&, IntRect initialRect, UIView *, HTMLMediaElement::VideoFullscreenMode, bool);

Why no parameter name here?

> Source/WebKit2/UIProcess/ios/WebVideoFullscreenManagerProxy.h:58
> -    void setupFullscreenWithID(uint32_t, WebCore::IntRect initialRect, float hostingDeviceScaleFactor, uint32_t videoFullscreenMode);
> +    void setupFullscreenWithID(uint32_t, WebCore::IntRect initialRect, float hostingDeviceScaleFactor, uint32_t videoFullscreenMode, bool);

Why no parameter name here?
Comment 4 Anders Carlsson 2014-12-03 18:43:04 PST
Looks good! I agree with Jer that you should name the boolean parameters though.
Comment 5 Eric Carlson 2014-12-05 05:33:23 PST
rdar://problem/19155999
Comment 6 Eric Carlson 2014-12-05 05:33:53 PST
Committed r176841: https://trac.webkit.org/r176841