| 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 "web/WebMediaPlayerClientImpl.h" | 6 #include "web/WebMediaPlayerClientImpl.h" |
| 7 | 7 |
| 8 #include "core/frame/LocalFrame.h" | 8 #include "core/frame/LocalFrame.h" |
| 9 #include "core/html/HTMLMediaElement.h" | 9 #include "core/html/HTMLMediaElement.h" |
| 10 #include "core/html/TimeRanges.h" | 10 #include "core/html/TimeRanges.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 void WebMediaPlayerClientImpl::requestFullscreen() | 173 void WebMediaPlayerClientImpl::requestFullscreen() |
| 174 { | 174 { |
| 175 m_client->mediaPlayerRequestFullscreen(); | 175 m_client->mediaPlayerRequestFullscreen(); |
| 176 } | 176 } |
| 177 | 177 |
| 178 void WebMediaPlayerClientImpl::requestSeek(double time) | 178 void WebMediaPlayerClientImpl::requestSeek(double time) |
| 179 { | 179 { |
| 180 m_client->mediaPlayerRequestSeek(time); | 180 m_client->mediaPlayerRequestSeek(time); |
| 181 } | 181 } |
| 182 | 182 |
| 183 void WebMediaPlayerClientImpl::remoteRouteAvailabilityChanged(bool routesAvailab
le) |
| 184 { |
| 185 mediaElement().remoteRouteAvailabilityChanged(routesAvailable); |
| 186 } |
| 187 |
| 188 void WebMediaPlayerClientImpl::connectedToRemoteDevice() |
| 189 { |
| 190 mediaElement().connectedToRemoteDevice(); |
| 191 } |
| 192 |
| 193 void WebMediaPlayerClientImpl::disconnectedFromRemoteDevice() |
| 194 { |
| 195 mediaElement().disconnectedFromRemoteDevice(); |
| 196 } |
| 197 |
| 183 // MediaPlayer ------------------------------------------------- | 198 // MediaPlayer ------------------------------------------------- |
| 184 void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
::String& url, WebMediaPlayer::CORSMode corsMode) | 199 void WebMediaPlayerClientImpl::load(WebMediaPlayer::LoadType loadType, const WTF
::String& url, WebMediaPlayer::CORSMode corsMode) |
| 185 { | 200 { |
| 186 ASSERT(!m_webMediaPlayer); | 201 ASSERT(!m_webMediaPlayer); |
| 187 | 202 |
| 188 // FIXME: Remove this cast | 203 // FIXME: Remove this cast |
| 189 LocalFrame* frame = mediaElement().document().frame(); | 204 LocalFrame* frame = mediaElement().document().frame(); |
| 190 | 205 |
| 191 WebURL poster = m_client->mediaPlayerPosterURL(); | 206 WebURL poster = m_client->mediaPlayerPosterURL(); |
| 192 | 207 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 292 } | 307 } |
| 293 | 308 |
| 294 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) | 309 void WebMediaPlayerClientImpl::AudioClientImpl::trace(Visitor* visitor) |
| 295 { | 310 { |
| 296 visitor->trace(m_client); | 311 visitor->trace(m_client); |
| 297 } | 312 } |
| 298 | 313 |
| 299 #endif | 314 #endif |
| 300 | 315 |
| 301 } // namespace blink | 316 } // namespace blink |
| OLD | NEW |