Changeset 68526 in webkit
- Timestamp:
- Sep 28, 2010 9:21:31 AM (14 years ago)
- Location:
- trunk/WebCore
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebCore/ChangeLog
r68521 r68526 1 2010-09-28 Tor Arne Vestbø <tor.arne.vestbo@nokia.com> 2 3 Reviewed by Andreas Kling. 4 5 [Qt] Rename MediaPlayerPrivate to MediaPlayerPrivateQt/Phonon 6 7 https://bugs.webkit.org/show_bug.cgi?id=36663 8 9 * platform/graphics/MediaPlayer.cpp: 10 * platform/graphics/qt/MediaPlayerPrivateQt.cpp: 11 * platform/graphics/qt/MediaPlayerPrivateQt.h: 12 * platform/graphics/qt/MediaPlayerPrivatePhonon.cpp: 13 * platform/graphics/qt/MediaPlayerPrivatePhonon.h: 14 1 15 2010-09-28 Andras Becsi <abecsi@webkit.org> 2 16 -
trunk/WebCore/platform/graphics/MediaPlayer.cpp
r67788 r68526 172 172 #if PLATFORM(WIN) 173 173 MediaPlayerPrivateQuickTimeVisualContext::registerMediaEngine(addMediaEngine); 174 #elif PLATFORM(QT) 175 #if USE(QT_MULTIMEDIA) 176 MediaPlayerPrivateQt::registerMediaEngine(addMediaEngine); 177 #else 178 MediaPlayerPrivatePhonon::registerMediaEngine(addMediaEngine); 179 #endif 174 180 #elif !PLATFORM(GTK) && !PLATFORM(EFL) 175 181 // FIXME: currently all the MediaEngines are named -
trunk/WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.cpp
r65427 r68526 85 85 namespace WebCore { 86 86 87 MediaPlayerPrivate ::MediaPlayerPrivate(MediaPlayer* player)87 MediaPlayerPrivatePhonon::MediaPlayerPrivatePhonon(MediaPlayer* player) 88 88 : m_player(player) 89 89 , m_networkState(MediaPlayer::Empty) … … 119 119 } 120 120 121 MediaPlayerPrivateInterface* MediaPlayerPrivate ::create(MediaPlayer* player)122 { 123 return new MediaPlayerPrivate (player);124 } 125 126 void MediaPlayerPrivate ::registerMediaEngine(MediaEngineRegistrar registrar)121 MediaPlayerPrivateInterface* MediaPlayerPrivatePhonon::create(MediaPlayer* player) 122 { 123 return new MediaPlayerPrivatePhonon(player); 124 } 125 126 void MediaPlayerPrivatePhonon::registerMediaEngine(MediaEngineRegistrar registrar) 127 127 { 128 128 if (isAvailable()) … … 131 131 132 132 133 MediaPlayerPrivate ::~MediaPlayerPrivate()133 MediaPlayerPrivatePhonon::~MediaPlayerPrivatePhonon() 134 134 { 135 135 LOG(Media, "MediaPlayerPrivatePhonon::dtor deleting videowidget"); … … 147 147 } 148 148 149 HashSet<String>& MediaPlayerPrivate ::supportedTypesCache()149 HashSet<String>& MediaPlayerPrivatePhonon::supportedTypesCache() 150 150 { 151 151 static HashSet<String> supportedTypes; … … 191 191 } 192 192 193 void MediaPlayerPrivate ::getSupportedTypes(HashSet<String>& types)193 void MediaPlayerPrivatePhonon::getSupportedTypes(HashSet<String>& types) 194 194 { 195 195 types = supportedTypesCache(); 196 196 } 197 197 198 MediaPlayer::SupportsType MediaPlayerPrivate ::supportsType(const String& type, const String& codecs)198 MediaPlayer::SupportsType MediaPlayerPrivatePhonon::supportsType(const String& type, const String& codecs) 199 199 { 200 200 if (type.isEmpty()) … … 206 206 } 207 207 208 bool MediaPlayerPrivate ::hasVideo() const208 bool MediaPlayerPrivatePhonon::hasVideo() const 209 209 { 210 210 bool hasVideo = m_mediaObject->hasVideo(); … … 213 213 } 214 214 215 bool MediaPlayerPrivate ::hasAudio() const215 bool MediaPlayerPrivatePhonon::hasAudio() const 216 216 { 217 217 // FIXME: Phonon::MediaObject does not have such a hasAudio() function … … 221 221 } 222 222 223 void MediaPlayerPrivate ::load(const String& url)223 void MediaPlayerPrivatePhonon::load(const String& url) 224 224 { 225 225 LOG(Media, "MediaPlayerPrivatePhonon::load(\"%s\")", url.utf8().data()); … … 242 242 } 243 243 244 void MediaPlayerPrivate ::cancelLoad()245 { 246 notImplemented(); 247 } 248 249 250 void MediaPlayerPrivate ::play()244 void MediaPlayerPrivatePhonon::cancelLoad() 245 { 246 notImplemented(); 247 } 248 249 250 void MediaPlayerPrivatePhonon::play() 251 251 { 252 252 LOG(Media, "MediaPlayerPrivatePhonon::play()"); … … 254 254 } 255 255 256 void MediaPlayerPrivate ::pause()256 void MediaPlayerPrivatePhonon::pause() 257 257 { 258 258 LOG(Media, "MediaPlayerPrivatePhonon::pause()"); … … 261 261 262 262 263 bool MediaPlayerPrivate ::paused() const263 bool MediaPlayerPrivatePhonon::paused() const 264 264 { 265 265 bool paused = m_mediaObject->state() == Phonon::PausedState; … … 268 268 } 269 269 270 void MediaPlayerPrivate ::seek(float position)270 void MediaPlayerPrivatePhonon::seek(float position) 271 271 { 272 272 LOG(Media, "MediaPlayerPrivatePhonon::seek(%f)", position); … … 281 281 } 282 282 283 bool MediaPlayerPrivate ::seeking() const283 bool MediaPlayerPrivatePhonon::seeking() const 284 284 { 285 285 return false; 286 286 } 287 287 288 float MediaPlayerPrivate ::duration() const288 float MediaPlayerPrivatePhonon::duration() const 289 289 { 290 290 if (m_readyState < MediaPlayer::HaveMetadata) … … 300 300 } 301 301 302 float MediaPlayerPrivate ::currentTime() const302 float MediaPlayerPrivatePhonon::currentTime() const 303 303 { 304 304 float currentTime = m_mediaObject->currentTime() / 1000.0f; … … 308 308 } 309 309 310 PassRefPtr<TimeRanges> MediaPlayerPrivate ::buffered() const310 PassRefPtr<TimeRanges> MediaPlayerPrivatePhonon::buffered() const 311 311 { 312 312 notImplemented(); … … 314 314 } 315 315 316 float MediaPlayerPrivate ::maxTimeSeekable() const316 float MediaPlayerPrivatePhonon::maxTimeSeekable() const 317 317 { 318 318 notImplemented(); … … 320 320 } 321 321 322 unsigned MediaPlayerPrivate ::bytesLoaded() const322 unsigned MediaPlayerPrivatePhonon::bytesLoaded() const 323 323 { 324 324 notImplemented(); … … 326 326 } 327 327 328 unsigned MediaPlayerPrivate ::totalBytes() const328 unsigned MediaPlayerPrivatePhonon::totalBytes() const 329 329 { 330 330 //notImplemented(); … … 332 332 } 333 333 334 void MediaPlayerPrivate ::setRate(float)335 { 336 notImplemented(); 337 } 338 339 void MediaPlayerPrivate ::setVolume(float volume)334 void MediaPlayerPrivatePhonon::setRate(float) 335 { 336 notImplemented(); 337 } 338 339 void MediaPlayerPrivatePhonon::setVolume(float volume) 340 340 { 341 341 LOG(Media, "MediaPlayerPrivatePhonon::setVolume()"); … … 343 343 } 344 344 345 void MediaPlayerPrivate ::setMuted(bool muted)345 void MediaPlayerPrivatePhonon::setMuted(bool muted) 346 346 { 347 347 LOG(Media, "MediaPlayerPrivatePhonon::setMuted()"); … … 349 349 } 350 350 351 MediaPlayer::NetworkState MediaPlayerPrivate ::networkState() const351 MediaPlayer::NetworkState MediaPlayerPrivatePhonon::networkState() const 352 352 { 353 353 const QMetaObject* metaObj = this->metaObject(); … … 357 357 } 358 358 359 MediaPlayer::ReadyState MediaPlayerPrivate ::readyState() const359 MediaPlayer::ReadyState MediaPlayerPrivatePhonon::readyState() const 360 360 { 361 361 const QMetaObject* metaObj = this->metaObject(); … … 365 365 } 366 366 367 void MediaPlayerPrivate ::updateStates()367 void MediaPlayerPrivatePhonon::updateStates() 368 368 { 369 369 MediaPlayer::NetworkState oldNetworkState = m_networkState; … … 413 413 } 414 414 415 void MediaPlayerPrivate ::setVisible(bool visible)415 void MediaPlayerPrivatePhonon::setVisible(bool visible) 416 416 { 417 417 m_isVisible = visible; … … 421 421 } 422 422 423 void MediaPlayerPrivate ::setSize(const IntSize& newSize)423 void MediaPlayerPrivatePhonon::setSize(const IntSize& newSize) 424 424 { 425 425 if (!m_videoWidget) … … 435 435 } 436 436 437 IntSize MediaPlayerPrivate ::naturalSize() const437 IntSize MediaPlayerPrivatePhonon::naturalSize() const 438 438 { 439 439 if (!hasVideo()) { … … 456 456 } 457 457 458 bool MediaPlayerPrivate ::eventFilter(QObject* obj, QEvent* event)458 bool MediaPlayerPrivatePhonon::eventFilter(QObject* obj, QEvent* event) 459 459 { 460 460 if (event->type() == QEvent::UpdateRequest) … … 464 464 } 465 465 466 void MediaPlayerPrivate ::paint(GraphicsContext* graphicsContect, const IntRect& rect)466 void MediaPlayerPrivatePhonon::paint(GraphicsContext* graphicsContect, const IntRect& rect) 467 467 { 468 468 if (graphicsContect->paintingDisabled()) … … 482 482 // ====================== Phonon::MediaObject signals ====================== 483 483 484 void MediaPlayerPrivate ::stateChanged(Phonon::State newState, Phonon::State oldState)484 void MediaPlayerPrivatePhonon::stateChanged(Phonon::State newState, Phonon::State oldState) 485 485 { 486 486 const QMetaObject* metaObj = this->metaObject(); … … 492 492 } 493 493 494 void MediaPlayerPrivate ::metaDataChanged()494 void MediaPlayerPrivatePhonon::metaDataChanged() 495 495 { 496 496 LOG(Media, "MediaPlayerPrivatePhonon::metaDataChanged()"); … … 498 498 } 499 499 500 void MediaPlayerPrivate ::seekableChanged(bool)501 { 502 notImplemented(); 503 LOG_MEDIAOBJECT(); 504 } 505 506 void MediaPlayerPrivate ::hasVideoChanged(bool hasVideo)500 void MediaPlayerPrivatePhonon::seekableChanged(bool) 501 { 502 notImplemented(); 503 LOG_MEDIAOBJECT(); 504 } 505 506 void MediaPlayerPrivatePhonon::hasVideoChanged(bool hasVideo) 507 507 { 508 508 LOG(Media, "MediaPlayerPrivatePhonon::hasVideoChanged(%s)", hasVideo ? "true" : "false"); 509 509 } 510 510 511 void MediaPlayerPrivate ::bufferStatus(int)512 { 513 notImplemented(); 514 LOG_MEDIAOBJECT(); 515 } 516 517 void MediaPlayerPrivate ::finished()518 { 519 notImplemented(); 520 LOG_MEDIAOBJECT(); 521 } 522 523 void MediaPlayerPrivate ::currentSourceChanged(const Phonon::MediaSource&)524 { 525 notImplemented(); 526 LOG_MEDIAOBJECT(); 527 } 528 529 void MediaPlayerPrivate ::aboutToFinish()530 { 531 notImplemented(); 532 LOG_MEDIAOBJECT(); 533 } 534 535 void MediaPlayerPrivate ::totalTimeChanged(qint64 totalTime)511 void MediaPlayerPrivatePhonon::bufferStatus(int) 512 { 513 notImplemented(); 514 LOG_MEDIAOBJECT(); 515 } 516 517 void MediaPlayerPrivatePhonon::finished() 518 { 519 notImplemented(); 520 LOG_MEDIAOBJECT(); 521 } 522 523 void MediaPlayerPrivatePhonon::currentSourceChanged(const Phonon::MediaSource&) 524 { 525 notImplemented(); 526 LOG_MEDIAOBJECT(); 527 } 528 529 void MediaPlayerPrivatePhonon::aboutToFinish() 530 { 531 notImplemented(); 532 LOG_MEDIAOBJECT(); 533 } 534 535 void MediaPlayerPrivatePhonon::totalTimeChanged(qint64 totalTime) 536 536 { 537 537 #if OS(WINDOWS) -
trunk/WebCore/platform/graphics/qt/MediaPlayerPrivatePhonon.h
r56349 r68526 41 41 namespace WebCore { 42 42 43 class MediaPlayerPrivate : public QObject, public MediaPlayerPrivateInterface {43 class MediaPlayerPrivatePhonon : public QObject, public MediaPlayerPrivateInterface { 44 44 45 45 Q_OBJECT … … 47 47 public: 48 48 static void registerMediaEngine(MediaEngineRegistrar); 49 ~MediaPlayerPrivate ();49 ~MediaPlayerPrivatePhonon(); 50 50 51 51 // These enums are used for debugging … … 128 128 129 129 private: 130 MediaPlayerPrivate (MediaPlayer*);130 MediaPlayerPrivatePhonon(MediaPlayer*); 131 131 static MediaPlayerPrivateInterface* create(MediaPlayer* player); 132 132 -
trunk/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp
r67608 r68526 54 54 namespace WebCore { 55 55 56 MediaPlayerPrivateInterface* MediaPlayerPrivate ::create(MediaPlayer* player)57 { 58 return new MediaPlayerPrivate (player);59 } 60 61 void MediaPlayerPrivate ::registerMediaEngine(MediaEngineRegistrar registrar)56 MediaPlayerPrivateInterface* MediaPlayerPrivateQt::create(MediaPlayer* player) 57 { 58 return new MediaPlayerPrivateQt(player); 59 } 60 61 void MediaPlayerPrivateQt::registerMediaEngine(MediaEngineRegistrar registrar) 62 62 { 63 63 registrar(create, getSupportedTypes, supportsType); 64 64 } 65 65 66 void MediaPlayerPrivate ::getSupportedTypes(HashSet<String> &supported)66 void MediaPlayerPrivateQt::getSupportedTypes(HashSet<String> &supported) 67 67 { 68 68 QStringList types = QMediaPlayer::supportedMimeTypes(); … … 75 75 } 76 76 77 MediaPlayer::SupportsType MediaPlayerPrivate ::supportsType(const String& mime, const String& codec)77 MediaPlayer::SupportsType MediaPlayerPrivateQt::supportsType(const String& mime, const String& codec) 78 78 { 79 79 if (!mime.startsWith("audio/") && !mime.startsWith("video/")) … … 86 86 } 87 87 88 MediaPlayerPrivate ::MediaPlayerPrivate(MediaPlayer* player)88 MediaPlayerPrivateQt::MediaPlayerPrivateQt(MediaPlayer* player) 89 89 : m_player(player) 90 90 , m_mediaPlayer(new QMediaPlayer) … … 133 133 } 134 134 135 MediaPlayerPrivate ::~MediaPlayerPrivate()135 MediaPlayerPrivateQt::~MediaPlayerPrivateQt() 136 136 { 137 137 delete m_mediaPlayer; … … 139 139 } 140 140 141 bool MediaPlayerPrivate ::hasVideo() const141 bool MediaPlayerPrivateQt::hasVideo() const 142 142 { 143 143 return m_mediaPlayer->isVideoAvailable(); 144 144 } 145 145 146 bool MediaPlayerPrivate ::hasAudio() const146 bool MediaPlayerPrivateQt::hasAudio() const 147 147 { 148 148 return true; 149 149 } 150 150 151 void MediaPlayerPrivate ::load(const String& url)151 void MediaPlayerPrivateQt::load(const String& url) 152 152 { 153 153 m_mediaUrl = url; … … 163 163 } 164 164 165 void MediaPlayerPrivate ::commitLoad(const String& url)165 void MediaPlayerPrivateQt::commitLoad(const String& url) 166 166 { 167 167 // We are now loading … … 237 237 } 238 238 239 void MediaPlayerPrivate ::resumeLoad()239 void MediaPlayerPrivateQt::resumeLoad() 240 240 { 241 241 m_delayingLoad = false; … … 245 245 } 246 246 247 void MediaPlayerPrivate ::cancelLoad()247 void MediaPlayerPrivateQt::cancelLoad() 248 248 { 249 249 m_mediaPlayer->setMedia(QMediaContent()); … … 251 251 } 252 252 253 void MediaPlayerPrivate ::prepareToPlay()253 void MediaPlayerPrivateQt::prepareToPlay() 254 254 { 255 255 if (m_mediaPlayer->media().isNull() || m_delayingLoad) … … 257 257 } 258 258 259 void MediaPlayerPrivate ::play()259 void MediaPlayerPrivateQt::play() 260 260 { 261 261 if (m_mediaPlayer->state() != QMediaPlayer::PlayingState) … … 263 263 } 264 264 265 void MediaPlayerPrivate ::pause()265 void MediaPlayerPrivateQt::pause() 266 266 { 267 267 if (m_mediaPlayer->state() == QMediaPlayer::PlayingState) … … 269 269 } 270 270 271 bool MediaPlayerPrivate ::paused() const271 bool MediaPlayerPrivateQt::paused() const 272 272 { 273 273 return (m_mediaPlayer->state() != QMediaPlayer::PlayingState); 274 274 } 275 275 276 void MediaPlayerPrivate ::seek(float position)276 void MediaPlayerPrivateQt::seek(float position) 277 277 { 278 278 if (!m_mediaPlayer->isSeekable()) … … 310 310 } 311 311 312 bool MediaPlayerPrivate ::seeking() const312 bool MediaPlayerPrivateQt::seeking() const 313 313 { 314 314 return m_isSeeking; 315 315 } 316 316 317 float MediaPlayerPrivate ::duration() const317 float MediaPlayerPrivateQt::duration() const 318 318 { 319 319 if (m_readyState < MediaPlayer::HaveMetadata) … … 329 329 } 330 330 331 float MediaPlayerPrivate ::currentTime() const331 float MediaPlayerPrivateQt::currentTime() const 332 332 { 333 333 float currentTime = m_mediaPlayer->position() / 1000.0f; … … 335 335 } 336 336 337 PassRefPtr<TimeRanges> MediaPlayerPrivate ::buffered() const337 PassRefPtr<TimeRanges> MediaPlayerPrivateQt::buffered() const 338 338 { 339 339 RefPtr<TimeRanges> buffered = TimeRanges::create(); … … 353 353 } 354 354 355 float MediaPlayerPrivate ::maxTimeSeekable() const355 float MediaPlayerPrivateQt::maxTimeSeekable() const 356 356 { 357 357 if (!m_mediaPlayerControl) … … 361 361 } 362 362 363 unsigned MediaPlayerPrivate ::bytesLoaded() const363 unsigned MediaPlayerPrivateQt::bytesLoaded() const 364 364 { 365 365 QLatin1String bytesLoadedKey("bytes-loaded"); … … 370 370 } 371 371 372 unsigned MediaPlayerPrivate ::totalBytes() const372 unsigned MediaPlayerPrivateQt::totalBytes() const 373 373 { 374 374 if (m_mediaPlayer->availableMetaData().contains(QtMultimediaKit::Size)) … … 378 378 } 379 379 380 void MediaPlayerPrivate ::setPreload(MediaPlayer::Preload preload)380 void MediaPlayerPrivateQt::setPreload(MediaPlayer::Preload preload) 381 381 { 382 382 m_preload = preload; … … 385 385 } 386 386 387 void MediaPlayerPrivate ::setRate(float rate)387 void MediaPlayerPrivateQt::setRate(float rate) 388 388 { 389 389 m_mediaPlayer->setPlaybackRate(rate); 390 390 } 391 391 392 void MediaPlayerPrivate ::setVolume(float volume)392 void MediaPlayerPrivateQt::setVolume(float volume) 393 393 { 394 394 m_mediaPlayer->setVolume(static_cast<int>(volume * 100.0)); 395 395 } 396 396 397 bool MediaPlayerPrivate ::supportsMuting() const397 bool MediaPlayerPrivateQt::supportsMuting() const 398 398 { 399 399 return true; 400 400 } 401 401 402 void MediaPlayerPrivate ::setMuted(bool muted)402 void MediaPlayerPrivateQt::setMuted(bool muted) 403 403 { 404 404 m_mediaPlayer->setMuted(muted); 405 405 } 406 406 407 MediaPlayer::NetworkState MediaPlayerPrivate ::networkState() const407 MediaPlayer::NetworkState MediaPlayerPrivateQt::networkState() const 408 408 { 409 409 return m_networkState; 410 410 } 411 411 412 MediaPlayer::ReadyState MediaPlayerPrivate ::readyState() const412 MediaPlayer::ReadyState MediaPlayerPrivateQt::readyState() const 413 413 { 414 414 return m_readyState; 415 415 } 416 416 417 void MediaPlayerPrivate ::setVisible(bool visible)417 void MediaPlayerPrivateQt::setVisible(bool visible) 418 418 { 419 419 m_isVisible = visible; 420 420 } 421 421 422 void MediaPlayerPrivate ::mediaStatusChanged(QMediaPlayer::MediaStatus)422 void MediaPlayerPrivateQt::mediaStatusChanged(QMediaPlayer::MediaStatus) 423 423 { 424 424 updateStates(); 425 425 } 426 426 427 void MediaPlayerPrivate ::handleError(QMediaPlayer::Error)427 void MediaPlayerPrivateQt::handleError(QMediaPlayer::Error) 428 428 { 429 429 updateStates(); 430 430 } 431 431 432 void MediaPlayerPrivate ::stateChanged(QMediaPlayer::State state)432 void MediaPlayerPrivateQt::stateChanged(QMediaPlayer::State state) 433 433 { 434 434 if (state != QMediaPlayer::PlayingState && m_isSeeking && m_queuedSeek >= 0) { … … 438 438 } 439 439 440 void MediaPlayerPrivate ::nativeSizeChanged(const QSizeF&)440 void MediaPlayerPrivateQt::nativeSizeChanged(const QSizeF&) 441 441 { 442 442 m_player->sizeChanged(); 443 443 } 444 444 445 void MediaPlayerPrivate ::queuedSeekTimeout()445 void MediaPlayerPrivateQt::queuedSeekTimeout() 446 446 { 447 447 // If we haven't heard anything, assume the player is now paused … … 456 456 } 457 457 458 void MediaPlayerPrivate ::seekTimeout()458 void MediaPlayerPrivateQt::seekTimeout() 459 459 { 460 460 // If we haven't heard anything, assume the seek succeeded … … 465 465 } 466 466 467 void MediaPlayerPrivate ::positionChanged(qint64)467 void MediaPlayerPrivateQt::positionChanged(qint64) 468 468 { 469 469 // Only propogate this event if we are seeking … … 474 474 } 475 475 476 void MediaPlayerPrivate ::bufferStatusChanged(int)476 void MediaPlayerPrivateQt::bufferStatusChanged(int) 477 477 { 478 478 notImplemented(); 479 479 } 480 480 481 void MediaPlayerPrivate ::durationChanged(qint64)481 void MediaPlayerPrivateQt::durationChanged(qint64) 482 482 { 483 483 m_player->durationChanged(); 484 484 } 485 485 486 void MediaPlayerPrivate ::volumeChanged(int volume)486 void MediaPlayerPrivateQt::volumeChanged(int volume) 487 487 { 488 488 m_player->volumeChanged(static_cast<float>(volume) / 100.0); 489 489 } 490 490 491 void MediaPlayerPrivate ::mutedChanged(bool muted)491 void MediaPlayerPrivateQt::mutedChanged(bool muted) 492 492 { 493 493 m_player->muteChanged(muted); 494 494 } 495 495 496 void MediaPlayerPrivate ::updateStates()496 void MediaPlayerPrivateQt::updateStates() 497 497 { 498 498 // Store the old states so that we can detect a change and raise change events … … 545 545 } 546 546 547 void MediaPlayerPrivate ::setSize(const IntSize& size)547 void MediaPlayerPrivateQt::setSize(const IntSize& size) 548 548 { 549 549 if (size == m_currentSize) … … 554 554 } 555 555 556 IntSize MediaPlayerPrivate ::naturalSize() const556 IntSize MediaPlayerPrivateQt::naturalSize() const 557 557 { 558 558 if (!hasVideo() || m_readyState < MediaPlayer::HaveMetadata) … … 562 562 } 563 563 564 void MediaPlayerPrivate ::paint(GraphicsContext* context, const IntRect& rect)564 void MediaPlayerPrivateQt::paint(GraphicsContext* context, const IntRect& rect) 565 565 { 566 566 #if USE(ACCELERATED_COMPOSITING) … … 581 581 } 582 582 583 void MediaPlayerPrivate ::repaint()583 void MediaPlayerPrivateQt::repaint() 584 584 { 585 585 m_player->repaint(); … … 587 587 588 588 #if USE(ACCELERATED_COMPOSITING) 589 void MediaPlayerPrivate ::acceleratedRenderingStateChanged()589 void MediaPlayerPrivateQt::acceleratedRenderingStateChanged() 590 590 { 591 591 bool composited = m_player->mediaPlayerClient()->mediaPlayerRenderingCanBeAccelerated(m_player); … … 600 600 } 601 601 602 PlatformLayer* MediaPlayerPrivate ::platformLayer() const602 PlatformLayer* MediaPlayerPrivateQt::platformLayer() const 603 603 { 604 604 return m_composited ? m_videoItem : 0; … … 606 606 #endif 607 607 608 PlatformMedia MediaPlayerPrivate ::platformMedia() const608 PlatformMedia MediaPlayerPrivateQt::platformMedia() const 609 609 { 610 610 PlatformMedia pm; 611 611 pm.type = PlatformMedia::QtMediaPlayerType; 612 pm.media.qtMediaPlayer = const_cast<MediaPlayerPrivate *>(this);612 pm.media.qtMediaPlayer = const_cast<MediaPlayerPrivateQt*>(this); 613 613 return pm; 614 614 } -
trunk/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.h
r66956 r68526 34 34 namespace WebCore { 35 35 36 class MediaPlayerPrivate : public QObject, public MediaPlayerPrivateInterface {36 class MediaPlayerPrivateQt : public QObject, public MediaPlayerPrivateInterface { 37 37 38 38 Q_OBJECT … … 40 40 public: 41 41 static MediaPlayerPrivateInterface* create(MediaPlayer* player); 42 ~MediaPlayerPrivate ();42 ~MediaPlayerPrivateQt(); 43 43 44 44 static void registerMediaEngine(MediaEngineRegistrar); … … 119 119 120 120 private: 121 MediaPlayerPrivate (MediaPlayer*);121 MediaPlayerPrivateQt(MediaPlayer*); 122 122 123 123 MediaPlayer* m_player;
Note: See TracChangeset
for help on using the changeset viewer.