Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / platform / graphics / media / MediaPlayer.h
index 72b7991..db3d3b0 100644 (file)
@@ -33,6 +33,7 @@
 #include "wtf/Noncopyable.h"
 
 namespace blink {
+class WebGraphicsContext3D;
 class WebContentDecryptionModule;
 class WebInbandTextTrack;
 class WebLayer;
@@ -43,7 +44,6 @@ namespace WebCore {
 
 class AudioSourceProvider;
 class GraphicsContext;
-class GraphicsContext3D;
 class IntRect;
 class IntSize;
 class KURL;
@@ -81,6 +81,10 @@ public:
 
     virtual void mediaPlayerRequestSeek(double) = 0;
 
+    // The URL for video poster image.
+    // FIXME: Remove this when WebMediaPlayerClientImpl::loadInternal does not depend on it.
+    virtual KURL mediaPlayerPosterURL() = 0;
+
 // Presentation-related methods
     // a new frame of video is available
     virtual void mediaPlayerRepaint() = 0;
@@ -147,6 +151,8 @@ public:
     virtual void setVolume(double) = 0;
     virtual void setMuted(bool) = 0;
 
+    virtual void setPoster(const KURL&) = 0;
+
     enum NetworkState { Empty, Idle, Loading, Loaded, FormatError, NetworkError, DecodeError };
     virtual NetworkState networkState() const = 0;
 
@@ -159,7 +165,7 @@ public:
     virtual bool didLoadingProgress() const = 0;
 
     virtual void paint(GraphicsContext*, const IntRect&) = 0;
-    virtual bool copyVideoTextureToPlatformTexture(GraphicsContext3D*, Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0;
+    virtual bool copyVideoTextureToPlatformTexture(blink::WebGraphicsContext3D*, Platform3DObject, GC3Dint, GC3Denum, GC3Denum, bool, bool) = 0;
 
     enum Preload { None, MetaData, Auto };
     virtual void setPreload(Preload) = 0;