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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 m_helperPlugin.clear(); | 172 m_helperPlugin.clear(); |
173 } | 173 } |
174 | 174 |
175 void WebMediaPlayerClientImpl::setWebLayer(blink::WebLayer* layer) | 175 void WebMediaPlayerClientImpl::setWebLayer(blink::WebLayer* layer) |
176 { | 176 { |
177 m_client->mediaPlayerSetWebLayer(layer); | 177 m_client->mediaPlayerSetWebLayer(layer); |
178 } | 178 } |
179 | 179 |
180 void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack) | 180 void WebMediaPlayerClientImpl::addTextTrack(WebInbandTextTrack* textTrack) |
181 { | 181 { |
182 m_client->mediaPlayerDidAddTrack(textTrack); | 182 m_client->mediaPlayerDidAddTextTrack(textTrack); |
183 } | 183 } |
184 | 184 |
185 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) | 185 void WebMediaPlayerClientImpl::removeTextTrack(WebInbandTextTrack* textTrack) |
186 { | 186 { |
187 m_client->mediaPlayerDidRemoveTrack(textTrack); | 187 m_client->mediaPlayerDidRemoveTextTrack(textTrack); |
188 } | 188 } |
189 | 189 |
190 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) | 190 void WebMediaPlayerClientImpl::mediaSourceOpened(WebMediaSource* webMediaSource) |
191 { | 191 { |
192 ASSERT(webMediaSource); | 192 ASSERT(webMediaSource); |
193 m_client->mediaPlayerMediaSourceOpened(webMediaSource); | 193 m_client->mediaPlayerMediaSourceOpened(webMediaSource); |
194 } | 194 } |
195 | 195 |
196 void WebMediaPlayerClientImpl::requestFullscreen() | 196 void WebMediaPlayerClientImpl::requestFullscreen() |
197 { | 197 { |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 | 676 |
677 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) | 677 void WebMediaPlayerClientImpl::AudioClientImpl::setFormat(size_t numberOfChannel
s, float sampleRate) |
678 { | 678 { |
679 if (m_client) | 679 if (m_client) |
680 m_client->setFormat(numberOfChannels, sampleRate); | 680 m_client->setFormat(numberOfChannels, sampleRate); |
681 } | 681 } |
682 | 682 |
683 #endif | 683 #endif |
684 | 684 |
685 } // namespace blink | 685 } // namespace blink |
OLD | NEW |