OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // This class serves as a bridge between WebCore::MediaPlayer and | 61 // This class serves as a bridge between WebCore::MediaPlayer and |
62 // blink::WebMediaPlayer. | 62 // blink::WebMediaPlayer. |
63 class WebMediaPlayerClientImpl FINAL : public WebCore::MediaPlayer, public WebMe
diaPlayerClient { | 63 class WebMediaPlayerClientImpl FINAL : public WebCore::MediaPlayer, public WebMe
diaPlayerClient { |
64 | 64 |
65 public: | 65 public: |
66 static PassOwnPtr<WebCore::MediaPlayer> create(WebCore::MediaPlayerClient*); | 66 static PassOwnPtr<WebCore::MediaPlayer> create(WebCore::MediaPlayerClient*); |
67 | 67 |
68 virtual ~WebMediaPlayerClientImpl(); | 68 virtual ~WebMediaPlayerClientImpl(); |
69 | 69 |
70 // Returns the encapsulated blink::WebMediaPlayer. | 70 // Returns the encapsulated blink::WebMediaPlayer. |
71 WebMediaPlayer* mediaPlayer() const; | 71 virtual WebMediaPlayer* webMediaPlayer() const; |
72 | 72 |
73 // WebMediaPlayerClient methods: | 73 // WebMediaPlayerClient methods: |
74 virtual void networkStateChanged() OVERRIDE; | 74 virtual void networkStateChanged() OVERRIDE; |
75 virtual void readyStateChanged() OVERRIDE; | 75 virtual void readyStateChanged() OVERRIDE; |
76 virtual void timeChanged() OVERRIDE; | 76 virtual void timeChanged() OVERRIDE; |
77 virtual void repaint() OVERRIDE; | 77 virtual void repaint() OVERRIDE; |
78 virtual void durationChanged() OVERRIDE; | 78 virtual void durationChanged() OVERRIDE; |
79 virtual void sizeChanged() OVERRIDE; | 79 virtual void sizeChanged() OVERRIDE; |
80 virtual void setOpaque(bool) OVERRIDE; | 80 virtual void setOpaque(bool) OVERRIDE; |
81 virtual double volume() const OVERRIDE; | 81 virtual double volume() const OVERRIDE; |
82 virtual void playbackStateChanged() OVERRIDE; | 82 virtual void playbackStateChanged() OVERRIDE; |
83 virtual WebMediaPlayer::Preload preload() const OVERRIDE; | 83 virtual WebMediaPlayer::Preload preload() const OVERRIDE; |
84 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId
) OVERRIDE; | 84 virtual void keyAdded(const WebString& keySystem, const WebString& sessionId
) OVERRIDE; |
85 virtual void keyError(const WebString& keySystem, const WebString& sessionId
, MediaKeyErrorCode, unsigned short systemCode) OVERRIDE; | 85 virtual void keyError(const WebString& keySystem, const WebString& sessionId
, MediaKeyErrorCode, unsigned short systemCode) OVERRIDE; |
86 virtual void keyMessage(const WebString& keySystem, const WebString& session
Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU
RL) OVERRIDE; | 86 virtual void keyMessage(const WebString& keySystem, const WebString& session
Id, const unsigned char* message, unsigned messageLength, const WebURL& defaultU
RL) OVERRIDE; |
87 virtual void keyNeeded(const WebString& contentType, const unsigned char* in
itData, unsigned initDataLength) OVERRIDE; | 87 virtual void keyNeeded(const WebString& contentType, const unsigned char* in
itData, unsigned initDataLength) OVERRIDE; |
88 virtual WebPlugin* createHelperPlugin(const WebString& pluginType, WebFrame*
) OVERRIDE; | 88 virtual WebPlugin* createHelperPlugin(const WebString& pluginType, WebFrame*
) OVERRIDE; |
89 virtual void closeHelperPluginSoon(WebFrame*) OVERRIDE; | 89 virtual void closeHelperPluginSoon(WebFrame*) OVERRIDE; |
90 virtual bool needsWebLayerForVideo() const OVERRIDE; | 90 virtual bool needsWebLayerForVideo() const OVERRIDE; |
91 virtual void setWebLayer(WebLayer*) OVERRIDE; | 91 virtual void setWebLayer(WebLayer*) OVERRIDE; |
| 92 virtual void addVideoTrack(const WebString& id, VideoTrackKind, const WebStr
ing& label, const WebString& language, bool selected) OVERRIDE; |
| 93 virtual void removeVideoTrack(const WebString& id) OVERRIDE; |
| 94 virtual void addAudioTrack(const WebString& id, AudioTrackKind, const WebStr
ing& label, const WebString& language, bool enabled) OVERRIDE; |
| 95 virtual void removeAudioTrack(const WebString& id) OVERRIDE; |
92 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE; | 96 virtual void addTextTrack(WebInbandTextTrack*) OVERRIDE; |
93 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE; | 97 virtual void removeTextTrack(WebInbandTextTrack*) OVERRIDE; |
94 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE; | 98 virtual void mediaSourceOpened(WebMediaSource*) OVERRIDE; |
95 virtual void requestFullscreen() OVERRIDE; | 99 virtual void requestFullscreen() OVERRIDE; |
96 virtual void requestSeek(double) OVERRIDE; | 100 virtual void requestSeek(double) OVERRIDE; |
97 | 101 |
98 // MediaPlayer methods: | 102 // MediaPlayer methods: |
99 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url) OVERRIDE
; | 103 virtual void load(WebMediaPlayer::LoadType, const WTF::String& url) OVERRIDE
; |
100 | 104 |
101 virtual void play() OVERRIDE; | 105 virtual void play() OVERRIDE; |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 221 |
218 AudioSourceProviderImpl m_audioSourceProvider; | 222 AudioSourceProviderImpl m_audioSourceProvider; |
219 #endif | 223 #endif |
220 | 224 |
221 WebMediaPlayer::LoadType m_loadType; | 225 WebMediaPlayer::LoadType m_loadType; |
222 }; | 226 }; |
223 | 227 |
224 } // namespace blink | 228 } // namespace blink |
225 | 229 |
226 #endif | 230 #endif |
OLD | NEW |