diff options
Diffstat (limited to 'WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h')
-rw-r--r-- | WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h | 27 |
1 files changed, 16 insertions, 11 deletions
diff --git a/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h b/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h index c4c893c..63aa62b 100644 --- a/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h +++ b/WebCore/platform/graphics/win/MediaPlayerPrivateQuickTimeWin.h @@ -1,5 +1,5 @@ /* - * Copyright (C) 2007 Apple Inc. All rights reserved. + * Copyright (C) 2007, 2008, 2009 Apple Inc. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -28,7 +28,7 @@ #if ENABLE(VIDEO) -#include "MediaPlayer.h" +#include "MediaPlayerPrivate.h" #include "Timer.h" #include <QTMovieWin.h> #include <wtf/OwnPtr.h> @@ -44,9 +44,10 @@ class IntSize; class IntRect; class String; -class MediaPlayerPrivate : QTMovieWinClient, Noncopyable { +class MediaPlayerPrivate : public MediaPlayerPrivateInterface, public QTMovieWinClient { public: - MediaPlayerPrivate(MediaPlayer*); + static void registerMediaEngine(MediaEngineRegistrar); + ~MediaPlayerPrivate(); IntSize naturalSize() const; @@ -81,38 +82,42 @@ public: unsigned totalBytes() const; void setVisible(bool); - void setRect(const IntRect&); + void setSize(const IntSize&); void loadStateChanged(); void didEnd(); void paint(GraphicsContext*, const IntRect&); - static void getSupportedTypes(HashSet<String>& types); - static bool isAvailable(); private: + MediaPlayerPrivate(MediaPlayer*); + void updateStates(); void doSeek(); void cancelSeek(); void seekTimerFired(Timer<MediaPlayerPrivate>*); - void endPointTimerFired(Timer<MediaPlayerPrivate>*); float maxTimeLoaded() const; - void startEndPointTimerIfNeeded(); virtual void movieEnded(QTMovieWin*); virtual void movieLoadStateChanged(QTMovieWin*); virtual void movieTimeChanged(QTMovieWin*); virtual void movieNewImageAvailable(QTMovieWin*); - + + // engine support + static MediaPlayerPrivateInterface* create(MediaPlayer*); + static void getSupportedTypes(HashSet<String>& types); + static MediaPlayer::SupportsType supportsType(const String& type, const String& codecs); + static bool isAvailable(); + MediaPlayer* m_player; OwnPtr<QTMovieWin> m_qtMovie; float m_seekTo; float m_endTime; Timer<MediaPlayerPrivate> m_seekTimer; - Timer<MediaPlayerPrivate> m_endPointTimer; MediaPlayer::NetworkState m_networkState; MediaPlayer::ReadyState m_readyState; + unsigned m_enabledTrackCount; bool m_startedPlaying; bool m_isStreaming; #if DRAW_FRAME_RATE |