Bug 139833 - [iOS] add optimized fullscreen API
Summary: [iOS] add optimized fullscreen API
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:
Depends on:
Blocks:
 
Reported: 2014-12-19 13:29 PST by Eric Carlson
Modified: 2014-12-20 10:31 PST (History)
1 user (show)

See Also:


Attachments
Proposed patch. (50.38 KB, patch)
2014-12-19 14: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-19 13:29:16 PST
Add prefixed API for optimized fullscreen.
Comment 1 Eric Carlson 2014-12-19 14:48:34 PST
Created attachment 243578 [details]
Proposed patch.
Comment 2 WebKit Commit Bot 2014-12-19 14:50:09 PST
Attachment 243578 [details] did not pass style-queue:


ERROR: Source/WebCore/ChangeLog:8:  You should remove the 'No new tests' and either add and list tests, or explain why no new tests were possible.  [changelog/nonewtests] [5]
ERROR: Source/WebCore/dom/EventNames.h:298:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
ERROR: Source/WebCore/dom/EventNames.h:300:  Weird number of spaces at line-start.  Are you using a 4-space indent?  [whitespace/indent] [3]
Total errors found: 3 in 19 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Simon Fraser (smfr) 2014-12-19 15:01:26 PST
Comment on attachment 243578 [details]
Proposed patch.

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

> Source/JavaScriptCore/Configurations/FeatureDefines.xcconfig:229
> +ENABLE_VIDEO_PRESENTATION_MODE[sdk=iphone*] = ENABLE_VIDEO_PRESENTATION_MODE;

Please sort this alphabetically with the other ENABLE_ (here and other FeatureDefines.xcconfig files)

> Source/WTF/wtf/Platform.h:1103
> +#if PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 90000
> +#define ENABLE_VIDEO_PRESENTATION_MODE 1
> +#endif

I don't think you need this at all, since the xcconfig files define this. Or is it needed for the IDL?

> Source/WebCore/ChangeLog:8
> +        No new tests (OOPS!).

OOPS

Can you add some iOS tests?

> Source/WebCore/html/HTMLVideoElement.cpp:408
> +    if (mode == VideoFullscreenModeStandard)
> +        return presentationModeFullscreen();
> +    if (mode & VideoFullscreenModeOptimized)
> +        return presentationModeOptimized();
> +    if (mode == VideoFullscreenModeNone)
> +        return presentationModeInline();

I would prefer a blank line after each return.
Comment 4 Eric Carlson 2014-12-20 10:31:04 PST
Submitted r177622: https://trac.webkit.org/r177622