| 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 "WebDocument.h" | 8 #include "WebDocument.h" |
| 9 #include "WebFrameClient.h" | 9 #include "WebFrameClient.h" |
| 10 #include "WebFrameImpl.h" | 10 #include "WebFrameImpl.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 { | 169 { |
| 170 ASSERT(m_helperPlugin); | 170 ASSERT(m_helperPlugin); |
| 171 toWebViewImpl(frame->view())->closeHelperPluginSoon(m_helperPlugin.release()
); | 171 toWebViewImpl(frame->view())->closeHelperPluginSoon(m_helperPlugin.release()
); |
| 172 } | 172 } |
| 173 | 173 |
| 174 void WebMediaPlayerClientImpl::setWebLayer(blink::WebLayer* layer) | 174 void WebMediaPlayerClientImpl::setWebLayer(blink::WebLayer* layer) |
| 175 { | 175 { |
| 176 m_client->mediaPlayerSetWebLayer(layer); | 176 m_client->mediaPlayerSetWebLayer(layer); |
| 177 } | 177 } |
| 178 | 178 |
| 179 void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack) | 179 void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* track) |
| 180 { | 180 { |
| 181 m_client->mediaPlayerDidAddTrack(textTrack); | 181 m_client->mediaPlayerDidAddTextTrack(track); |
| 182 } | 182 } |
| 183 | 183 |
| 184 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) | 184 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* track) |
| 185 { | 185 { |
| 186 m_client->mediaPlayerDidRemoveTrack(textTrack); | 186 m_client->mediaPlayerDidRemoveTextTrack(track); |
| 187 } | 187 } |
| 188 | 188 |
| 189 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) | 189 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) |
| 190 { | 190 { |
| 191 ASSERT(webMediaSource); | 191 ASSERT(webMediaSource); |
| 192 m_client->mediaPlayerMediaSourceOpened(webMediaSource); | 192 m_client->mediaPlayerMediaSourceOpened(webMediaSource); |
| 193 } | 193 } |
| 194 | 194 |
| 195 void WebMediaPlayerClientImpl::requestFullscreen() | 195 void WebMediaPlayerClientImpl::requestFullscreen() |
| 196 { | 196 { |
| (...skipping 473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 670 |
| 671 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 671 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
| 672 { | 672 { |
| 673 if (m_client) | 673 if (m_client) |
| 674 m_client->setFormat(numberOfChannels, sampleRate); | 674 m_client->setFormat(numberOfChannels, sampleRate); |
| 675 } | 675 } |
| 676 | 676 |
| 677 #endif | 677 #endif |
| 678 | 678 |
| 679 } // namespace blink | 679 } // namespace blink |
| OLD | NEW |