Commit 6a404a22 authored by vestbo@webkit.org's avatar vestbo@webkit.org

2008-11-06 Tor Arne Vestbø <tavestbo@trolltech.com>

        Rubber-stamped by Simon Hausmann.

        Remove a bunch of unused methods in the Qt media element implementation

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38188 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent dd6f8a71
2008-11-06 Tor Arne Vestbø <tavestbo@trolltech.com>
Rubber-stamped by Simon Hausmann.
Remove a bunch of unused methods in the Qt media element implementation
* platform/graphics/qt/MediaPlayerPrivatePhonon.cpp:
(WebCore::MediaPlayerPrivate::MediaPlayerPrivate):
* platform/graphics/qt/MediaPlayerPrivatePhonon.h:
2008-11-05 Simon Fraser <simon.fraser@apple.com>
Reviewed by Dave Hyatt
......@@ -96,7 +96,6 @@ MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player)
connect(m_mediaObject, SIGNAL(stateChanged(Phonon::State, Phonon::State)),
this, SLOT(stateChanged(Phonon::State, Phonon::State)));
connect(m_mediaObject, SIGNAL(tick(qint64)), this, SLOT(tick(qint64)));
connect(m_mediaObject, SIGNAL(metaDataChanged()), this, SLOT(metaDataChanged()));
connect(m_mediaObject, SIGNAL(seekableChanged(bool)), this, SLOT(seekableChanged(bool)));
connect(m_mediaObject, SIGNAL(hasVideoChanged(bool)), this, SLOT(hasVideoChanged(bool)));
......@@ -105,7 +104,6 @@ MediaPlayerPrivate::MediaPlayerPrivate(MediaPlayer* player)
connect(m_mediaObject, SIGNAL(currentSourceChanged(const Phonon::MediaSource&)),
this, SLOT(currentSourceChanged(const Phonon::MediaSource&)));
connect(m_mediaObject, SIGNAL(aboutToFinish()), this, SLOT(aboutToFinish()));
connect(m_mediaObject, SIGNAL(prefinishMarkReached(qint32)), this, SLOT(prefinishMarkReached(qint32)));
connect(m_mediaObject, SIGNAL(totalTimeChanged(qint64)), this, SLOT(totalTimeChanged(qint64)));
}
......@@ -371,42 +369,6 @@ void MediaPlayerPrivate::setRect(const IntRect& newRect)
m_videoWidget->resize(newRect.width(), newRect.height());
}
void MediaPlayerPrivate::loadStateChanged()
{
notImplemented();
}
void MediaPlayerPrivate::rateChanged()
{
notImplemented();
}
void MediaPlayerPrivate::sizeChanged()
{
notImplemented();
}
void MediaPlayerPrivate::timeChanged()
{
notImplemented();
}
void MediaPlayerPrivate::volumeChanged()
{
notImplemented();
}
void MediaPlayerPrivate::didEnd()
{
notImplemented();
}
void MediaPlayerPrivate::loadingFailed()
{
notImplemented();
}
IntSize MediaPlayerPrivate::naturalSize() const
{
if (!hasVideo()) {
......@@ -436,11 +398,6 @@ bool MediaPlayerPrivate::eventFilter(QObject* obj, QEvent* event)
return QObject::eventFilter(obj, event);
}
void MediaPlayerPrivate::repaint()
{
m_player->repaint();
}
void MediaPlayerPrivate::paint(GraphicsContext* graphicsContect, const IntRect& rect)
{
if (graphicsContect->paintingDisabled())
......@@ -469,12 +426,6 @@ void MediaPlayerPrivate::stateChanged(Phonon::State newState, Phonon::State oldS
updateStates();
}
void MediaPlayerPrivate::tick(qint64)
{
updateStates();
m_player->timeChanged();
}
void MediaPlayerPrivate::metaDataChanged()
{
LOG(Media, "MediaPlayerPrivatePhonon::metaDataChanged()");
......@@ -516,12 +467,6 @@ void MediaPlayerPrivate::aboutToFinish()
LOG_MEDIAOBJECT();
}
void MediaPlayerPrivate::prefinishMarkReached(qint32)
{
notImplemented();
LOG_MEDIAOBJECT();
}
void MediaPlayerPrivate::totalTimeChanged(qint64 totalTime)
{
LOG(Media, "MediaPlayerPrivatePhonon::totalTimeChanged(%d)", totalTime);
......
......@@ -111,15 +111,6 @@ namespace WebCore {
void setVisible(bool);
void setRect(const IntRect&);
void loadStateChanged();
void rateChanged();
void sizeChanged();
void timeChanged();
void volumeChanged();
void didEnd();
void loadingFailed();
void repaint();
void paint(GraphicsContext*, const IntRect&);
static void getSupportedTypes(HashSet<String>&);
static bool isAvailable() { return true; }
......@@ -129,7 +120,6 @@ namespace WebCore {
private slots:
void stateChanged(Phonon::State, Phonon::State);
void tick(qint64);
void metaDataChanged();
void seekableChanged(bool);
void hasVideoChanged(bool);
......@@ -137,7 +127,6 @@ namespace WebCore {
void finished();
void currentSourceChanged(const Phonon::MediaSource&);
void aboutToFinish();
void prefinishMarkReached(qint32);
void totalTimeChanged(qint64);
private:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment