Index: Source/platform/graphics/media/MediaPlayer.h |
diff --git a/Source/platform/graphics/media/MediaPlayer.h b/Source/platform/graphics/media/MediaPlayer.h |
index db3d3b030f93f5d026a0fe064ccebf98bd261376..a4d1e295dcb06894864df376ab2cfc0efae27666 100644 |
--- a/Source/platform/graphics/media/MediaPlayer.h |
+++ b/Source/platform/graphics/media/MediaPlayer.h |
@@ -29,6 +29,7 @@ |
#include "platform/PlatformExport.h" |
#include "platform/graphics/GraphicsTypes3D.h" |
#include "public/platform/WebMediaPlayer.h" |
+#include "public/platform/WebMediaPlayerClient.h" |
#include "wtf/Forward.h" |
#include "wtf/Noncopyable.h" |
@@ -103,8 +104,12 @@ public: |
virtual void mediaPlayerSetWebLayer(blink::WebLayer*) = 0; |
virtual void mediaPlayerSetOpaque(bool) = 0; |
- virtual void mediaPlayerDidAddTrack(blink::WebInbandTextTrack*) = 0; |
- virtual void mediaPlayerDidRemoveTrack(blink::WebInbandTextTrack*) = 0; |
+ virtual void mediaPlayerDidAddVideoTrack(const AtomicString& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool selected) = 0; |
+ virtual void mediaPlayerDidRemoveVideoTrack(const AtomicString& id) = 0; |
+ virtual void mediaPlayerDidAddAudioTrack(const AtomicString& id, const AtomicString& kind, const AtomicString& label, const AtomicString& language, bool enabled) = 0; |
+ virtual void mediaPlayerDidRemoveAudioTrack(const AtomicString& id) = 0; |
+ virtual void mediaPlayerDidAddTextTrack(blink::WebInbandTextTrack*) = 0; |
+ virtual void mediaPlayerDidRemoveTextTrack(blink::WebInbandTextTrack*) = 0; |
virtual void mediaPlayerMediaSourceOpened(blink::WebMediaSource*) = 0; |
}; |
@@ -197,6 +202,8 @@ public: |
virtual MediaKeyException generateKeyRequest(const String&, const unsigned char*, unsigned) = 0; |
virtual MediaKeyException cancelKeyRequest(const String&, const String&) = 0; |
virtual void setContentDecryptionModule(blink::WebContentDecryptionModule*) = 0; |
+ |
+ virtual blink::WebMediaPlayer* webMediaPlayer() const = 0; |
}; |
} |