OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 #include "WebMediaPlayerClientImpl.h" | 6 #include "WebMediaPlayerClientImpl.h" |
7 | 7 |
8 #include "MediaSourcePrivateImpl.h" | |
9 #include "WebDocument.h" | 8 #include "WebDocument.h" |
10 #include "WebFrameClient.h" | 9 #include "WebFrameClient.h" |
11 #include "WebFrameImpl.h" | 10 #include "WebFrameImpl.h" |
12 #include "WebHelperPluginImpl.h" | 11 #include "WebHelperPluginImpl.h" |
13 #include "WebInbandTextTrack.h" | 12 #include "WebInbandTextTrack.h" |
14 #include "WebMediaPlayer.h" | 13 #include "WebMediaPlayer.h" |
15 #include "WebViewImpl.h" | 14 #include "WebViewImpl.h" |
16 #include "core/html/HTMLMediaElement.h" | 15 #include "core/html/HTMLMediaElement.h" |
17 #include "core/html/HTMLMediaSource.h" | 16 #include "core/html/HTMLMediaSource.h" |
18 #include "core/html/TimeRanges.h" | 17 #include "core/html/TimeRanges.h" |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 } | 197 } |
199 | 198 |
200 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) | 199 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) |
201 { | 200 { |
202 m_client->mediaPlayerDidRemoveTrack(textTrack); | 201 m_client->mediaPlayerDidRemoveTrack(textTrack); |
203 } | 202 } |
204 | 203 |
205 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) | 204 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) |
206 { | 205 { |
207 ASSERT(webMediaSource); | 206 ASSERT(webMediaSource); |
208 m_mediaSource->setPrivateAndOpen(adoptPtr(new MediaSourcePrivateImpl(adoptPt
r(webMediaSource)))); | 207 m_mediaSource->setWebAndOpen(adoptPtr(webMediaSource)); |
209 } | 208 } |
210 | 209 |
211 void WebMediaPlayerClientImpl::requestFullscreen() | 210 void WebMediaPlayerClientImpl::requestFullscreen() |
212 { | 211 { |
213 m_client->mediaPlayerRequestFullscreen(); | 212 m_client->mediaPlayerRequestFullscreen(); |
214 } | 213 } |
215 | 214 |
216 void WebMediaPlayerClientImpl::requestSeek(double time) | 215 void WebMediaPlayerClientImpl::requestSeek(double time) |
217 { | 216 { |
218 m_client->mediaPlayerRequestSeek(time); | 217 m_client->mediaPlayerRequestSeek(time); |
(...skipping 528 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 746 |
748 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 747 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
749 { | 748 { |
750 if (m_client) | 749 if (m_client) |
751 m_client->setFormat(numberOfChannels, sampleRate); | 750 m_client->setFormat(numberOfChannels, sampleRate); |
752 } | 751 } |
753 | 752 |
754 #endif | 753 #endif |
755 | 754 |
756 } // namespace blink | 755 } // namespace blink |
OLD | NEW |