[WinCairo][MediaFoundation] Full screen mode is not supported.
authorpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Dec 2015 19:11:45 +0000 (19:11 +0000)
committerpeavo@outlook.com <peavo@outlook.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 15 Dec 2015 19:11:45 +0000 (19:11 +0000)
https://bugs.webkit.org/show_bug.cgi?id=152300

Reviewed by Darin Adler.

We need to let WebCore know MediaFoundation supports full screen mode.

* platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
(WebCore::MediaPlayerPrivateMediaFoundation::pause):
(WebCore::MediaPlayerPrivateMediaFoundation::supportsFullscreen):
(WebCore::MediaPlayerPrivateMediaFoundation::naturalSize):
* platform/graphics/win/MediaPlayerPrivateMediaFoundation.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194111 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp
Source/WebCore/platform/graphics/win/MediaPlayerPrivateMediaFoundation.h

index 4ecddaf..fe9be71 100644 (file)
@@ -1,3 +1,18 @@
+2015-12-15  Per Arne Vollan  <peavo@outlook.com>
+
+        [WinCairo][MediaFoundation] Full screen mode is not supported.
+        https://bugs.webkit.org/show_bug.cgi?id=152300
+
+        Reviewed by Darin Adler.
+
+        We need to let WebCore know MediaFoundation supports full screen mode.
+
+        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.cpp:
+        (WebCore::MediaPlayerPrivateMediaFoundation::pause):
+        (WebCore::MediaPlayerPrivateMediaFoundation::supportsFullscreen):
+        (WebCore::MediaPlayerPrivateMediaFoundation::naturalSize):
+        * platform/graphics/win/MediaPlayerPrivateMediaFoundation.h:
+
 2015-12-15  Javier Fernandez  <jfernandez@igalia.com>
 
         [css-align][css-grid] Overflow alignment value 'true' renamed to 'unsafe'
index 62fb22c..daa8385 100644 (file)
@@ -176,6 +176,11 @@ void MediaPlayerPrivateMediaFoundation::pause()
     m_paused = SUCCEEDED(m_mediaSession->Pause());
 }
 
+bool MediaPlayerPrivateMediaFoundation::supportsFullscreen() const
+{
+    return true;
+}
+
 FloatSize MediaPlayerPrivateMediaFoundation::naturalSize() const 
 {
     return m_size;
index c170989..d8d53ca 100644 (file)
@@ -63,6 +63,8 @@ public:
     virtual void play();
     virtual void pause();
 
+    virtual bool supportsFullscreen() const;
+
     virtual FloatSize naturalSize() const;
 
     virtual bool hasVideo() const;