| 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 #if ENABLE(VIDEO) | 8 #if ENABLE(VIDEO) |
| 9 | 9 |
| 10 #include "TemporaryGlue.h" | 10 #include "TemporaryGlue.h" |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 194 m_webMediaPlayer->setRate(rate); | 194 m_webMediaPlayer->setRate(rate); |
| 195 } | 195 } |
| 196 | 196 |
| 197 bool WebMediaPlayerClientImpl::paused() const | 197 bool WebMediaPlayerClientImpl::paused() const |
| 198 { | 198 { |
| 199 if (m_webMediaPlayer.get()) | 199 if (m_webMediaPlayer.get()) |
| 200 return m_webMediaPlayer->paused(); | 200 return m_webMediaPlayer->paused(); |
| 201 return false; | 201 return false; |
| 202 } | 202 } |
| 203 | 203 |
| 204 bool WebMediaPlayerClientImpl::supportsFullscreen() const |
| 205 { |
| 206 if (m_webMediaPlayer.get()) |
| 207 return m_webMediaPlayer->supportsFullscreen(); |
| 208 return false; |
| 209 } |
| 210 |
| 211 bool WebMediaPlayerClientImpl::supportsSave() const |
| 212 { |
| 213 if (m_webMediaPlayer.get()) |
| 214 return m_webMediaPlayer->supportsSave(); |
| 215 return false; |
| 216 } |
| 217 |
| 204 void WebMediaPlayerClientImpl::setVolume(float volume) | 218 void WebMediaPlayerClientImpl::setVolume(float volume) |
| 205 { | 219 { |
| 206 if (m_webMediaPlayer.get()) | 220 if (m_webMediaPlayer.get()) |
| 207 m_webMediaPlayer->setVolume(volume); | 221 m_webMediaPlayer->setVolume(volume); |
| 208 } | 222 } |
| 209 | 223 |
| 210 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const | 224 MediaPlayer::NetworkState WebMediaPlayerClientImpl::networkState() const |
| 211 { | 225 { |
| 212 COMPILE_ASSERT( | 226 COMPILE_ASSERT( |
| 213 int(WebMediaPlayer::Empty) == int(MediaPlayer::Empty), Empty); | 227 int(WebMediaPlayer::Empty) == int(MediaPlayer::Empty), Empty); |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 } | 384 } |
| 371 | 385 |
| 372 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() | 386 WebMediaPlayerClientImpl::WebMediaPlayerClientImpl() |
| 373 : m_mediaPlayer(0) | 387 : m_mediaPlayer(0) |
| 374 { | 388 { |
| 375 } | 389 } |
| 376 | 390 |
| 377 } // namespace WebKit | 391 } // namespace WebKit |
| 378 | 392 |
| 379 #endif // ENABLE(VIDEO) | 393 #endif // ENABLE(VIDEO) |
| OLD | NEW |