diff options
Diffstat (limited to 'Source/WebCore/html/HTMLVideoElement.idl')
-rw-r--r-- | Source/WebCore/html/HTMLVideoElement.idl | 30 |
1 files changed, 18 insertions, 12 deletions
diff --git a/Source/WebCore/html/HTMLVideoElement.idl b/Source/WebCore/html/HTMLVideoElement.idl index 51dcccfb7..c24c031e4 100644 --- a/Source/WebCore/html/HTMLVideoElement.idl +++ b/Source/WebCore/html/HTMLVideoElement.idl @@ -10,10 +10,10 @@ * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * - * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY + * THIS SOFTWARE IS PROVIDED BY APPLE INC. ``AS IS'' AND ANY * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR - * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE COMPUTER, INC. OR + * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR @@ -31,25 +31,31 @@ [Reflect] attribute unsigned long height; readonly attribute unsigned long videoWidth; readonly attribute unsigned long videoHeight; - [Reflect, URL] attribute DOMString poster; + [Reflect, URL] attribute USVString poster; + [Reflect] attribute boolean playsInline; readonly attribute boolean webkitSupportsFullscreen; readonly attribute boolean webkitDisplayingFullscreen; - [RaisesException] void webkitEnterFullscreen(); + [MayThrowException] void webkitEnterFullscreen(); void webkitExitFullscreen(); - // Note the different capitalization of the "S" in FullScreen. - [RaisesException] void webkitEnterFullScreen(); - void webkitExitFullScreen(); + // Maintain "FullScreen" capitalization scheme for backwards compatibility. + // https://bugs.webkit.org/show_bug.cgi?id=36081 + [ImplementedAs=webkitEnterFullscreen, MayThrowException] void webkitEnterFullScreen(); + [ImplementedAs=webkitExitFullscreen] void webkitExitFullScreen(); - [Conditional=IOS_AIRPLAY] attribute boolean webkitWirelessVideoPlaybackDisabled; + [Conditional=WIRELESS_PLAYBACK_TARGET] attribute boolean webkitWirelessVideoPlaybackDisabled; - // The number of frames that have been decoded and made available for - // playback. + // The number of frames that have been decoded and made available for playback. [Conditional=MEDIA_STATISTICS] readonly attribute unsigned long webkitDecodedFrameCount; - // The number of decoded frames that have been dropped by the player - // for performance reasons during playback. + // The number of decoded frames that have been dropped by the player for performance reasons during playback. [Conditional=MEDIA_STATISTICS] readonly attribute unsigned long webkitDroppedFrameCount; + + [Conditional=VIDEO_PRESENTATION_MODE] boolean webkitSupportsPresentationMode(VideoPresentationMode mode); + [Conditional=VIDEO_PRESENTATION_MODE] readonly attribute VideoPresentationMode webkitPresentationMode; + [Conditional=VIDEO_PRESENTATION_MODE] void webkitSetPresentationMode(VideoPresentationMode mode); }; + +[Conditional=VIDEO_PRESENTATION_MODE] enum VideoPresentationMode { "fullscreen", "picture-in-picture", "inline" }; |