2011-04-06 Alexis Menard <alexis.menard@openbossa.org>

        Reviewed by Andreas Kling.

        [Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
        https://bugs.webkit.org/show_bug.cgi?id=57974

        We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).

        No new tests needed, just a config flag rename.

        * features.pri:
2011-04-06  Alexis Menard  <alexis.menard@openbossa.org>

        Reviewed by Andreas Kling.

        [Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
        https://bugs.webkit.org/show_bug.cgi?id=57974

        We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).

        No new tests needed, just a config flag rename.

        * Api/qwebkitplatformplugin.h:
        * WebCoreSupport/ChromeClientQt.cpp:
        * WebCoreSupport/DumpRenderTreeSupportQt.cpp:
        (DumpRenderTreeSupportQt::mediaContentUrlByElementId):
        * WebCoreSupport/FullScreenVideoQt.cpp:
        (WebCore::FullScreenVideoQt::FullScreenVideoQt):
        (WebCore::FullScreenVideoQt::~FullScreenVideoQt):
        (WebCore::FullScreenVideoQt::enterFullScreenForNode):
        (WebCore::FullScreenVideoQt::exitFullScreenForNode):
        (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
        (WebCore::FullScreenVideoQt::isValid):
        * WebCoreSupport/FullScreenVideoQt.h:
        * WebCoreSupport/QtPlatformPlugin.cpp:
        * WebCoreSupport/QtPlatformPlugin.h:
        * examples/platformplugin/WebPlugin.cpp:
        (WebPlugin::supportsExtension):
        (WebPlugin::createExtension):
        * examples/platformplugin/WebPlugin.h:
        * examples/platformplugin/platformplugin.pro:
        * examples/platformplugin/qwebkitplatformplugin.h:
        * tests/qwebpage/tst_qwebpage.cpp:
        (tst_QWebPage::loadHtml5Video):
        * tests/tests.pri:

git-svn-id: svn://svn.chromium.org/blink/trunk@83108 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 1a208ddf
2011-04-06 Alexis Menard <alexis.menard@openbossa.org>
Reviewed by Andreas Kling.
[Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
https://bugs.webkit.org/show_bug.cgi?id=57974
We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
No new tests needed, just a config flag rename.
* features.pri:
2011-04-06 Tyler Close <tjclose@chromium.org> 2011-04-06 Tyler Close <tjclose@chromium.org>
Reviewed by Nate Chapin. Reviewed by Nate Chapin.
...@@ -163,18 +163,18 @@ symbian|maemo5|maemo6 { ...@@ -163,18 +163,18 @@ symbian|maemo5|maemo6 {
contains(DEFINES, USE_GSTREAMER=1) { contains(DEFINES, USE_GSTREAMER=1) {
DEFINES -= ENABLE_VIDEO=0 DEFINES -= ENABLE_VIDEO=0
DEFINES += ENABLE_VIDEO=1 DEFINES += ENABLE_VIDEO=1
DEFINES -= ENABLE_QT_MULTIMEDIA=1 DEFINES -= WTF_USE_QT_MULTIMEDIA=1
DEFINES += ENABLE_QT_MULTIMEDIA=0 DEFINES += WTF_USE_QT_MULTIMEDIA=0
} else:contains(MOBILITY_CONFIG, multimedia) { } else:contains(MOBILITY_CONFIG, multimedia) {
DEFINES -= ENABLE_VIDEO=0 DEFINES -= ENABLE_VIDEO=0
DEFINES += ENABLE_VIDEO=1 DEFINES += ENABLE_VIDEO=1
DEFINES -= ENABLE_QT_MULTIMEDIA=0 DEFINES -= WTF_USE_QT_MULTIMEDIA=0
DEFINES += ENABLE_QT_MULTIMEDIA=1 DEFINES += WTF_USE_QT_MULTIMEDIA=1
} else:contains(QT_CONFIG, phonon) { } else:contains(QT_CONFIG, phonon) {
DEFINES -= ENABLE_VIDEO=0 DEFINES -= ENABLE_VIDEO=0
DEFINES += ENABLE_VIDEO=1 DEFINES += ENABLE_VIDEO=1
DEFINES -= ENABLE_QT_MULTIMEDIA=1 DEFINES -= WTF_USE_QT_MULTIMEDIA=1
DEFINES += ENABLE_QT_MULTIMEDIA=0 DEFINES += WTF_USE_QT_MULTIMEDIA=0
} }
} }
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <QColor> #include <QColor>
#include <QObject> #include <QObject>
#include <QUrl> #include <QUrl>
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
#include <QMediaPlayer> #include <QMediaPlayer>
#endif #endif
...@@ -123,7 +123,7 @@ public: ...@@ -123,7 +123,7 @@ public:
virtual unsigned hitTestPaddingForTouch(const PaddingDirection) const = 0; virtual unsigned hitTestPaddingForTouch(const PaddingDirection) const = 0;
}; };
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
class QWebFullScreenVideoHandler : public QObject { class QWebFullScreenVideoHandler : public QObject {
Q_OBJECT Q_OBJECT
public: public:
......
2011-04-06 Alexis Menard <alexis.menard@openbossa.org>
Reviewed by Andreas Kling.
[Qt] We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
https://bugs.webkit.org/show_bug.cgi?id=57974
We should use USE(QT_MULTIMEDIA) rather than ENABLE(QT_MULTIMEDIA).
No new tests needed, just a config flag rename.
* Api/qwebkitplatformplugin.h:
* WebCoreSupport/ChromeClientQt.cpp:
* WebCoreSupport/DumpRenderTreeSupportQt.cpp:
(DumpRenderTreeSupportQt::mediaContentUrlByElementId):
* WebCoreSupport/FullScreenVideoQt.cpp:
(WebCore::FullScreenVideoQt::FullScreenVideoQt):
(WebCore::FullScreenVideoQt::~FullScreenVideoQt):
(WebCore::FullScreenVideoQt::enterFullScreenForNode):
(WebCore::FullScreenVideoQt::exitFullScreenForNode):
(WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback):
(WebCore::FullScreenVideoQt::isValid):
* WebCoreSupport/FullScreenVideoQt.h:
* WebCoreSupport/QtPlatformPlugin.cpp:
* WebCoreSupport/QtPlatformPlugin.h:
* examples/platformplugin/WebPlugin.cpp:
(WebPlugin::supportsExtension):
(WebPlugin::createExtension):
* examples/platformplugin/WebPlugin.h:
* examples/platformplugin/platformplugin.pro:
* examples/platformplugin/qwebkitplatformplugin.h:
* tests/qwebpage/tst_qwebpage.cpp:
(tst_QWebPage::loadHtml5Video):
* tests/tests.pri:
2011-04-06 Alexis Menard <alexis.menard@openbossa.org> 2011-04-06 Alexis Menard <alexis.menard@openbossa.org>
Reviewed by Andreas Kling. Reviewed by Andreas Kling.
......
...@@ -80,7 +80,7 @@ ...@@ -80,7 +80,7 @@
#include "HTMLMediaElement.h" #include "HTMLMediaElement.h"
#include "HTMLNames.h" #include "HTMLNames.h"
#include "HTMLVideoElement.h" #include "HTMLVideoElement.h"
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
#include "MediaPlayerPrivateQt.h" #include "MediaPlayerPrivateQt.h"
#endif #endif
#endif #endif
......
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
#include "qwebpage_p.h" #include "qwebpage_p.h"
#include "qwebscriptworld.h" #include "qwebscriptworld.h"
#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA) #if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
#include "HTMLVideoElement.h" #include "HTMLVideoElement.h"
#include "MediaPlayerPrivateQt.h" #include "MediaPlayerPrivateQt.h"
#endif #endif
...@@ -1014,7 +1014,7 @@ QUrl DumpRenderTreeSupportQt::mediaContentUrlByElementId(QWebFrame* frame, const ...@@ -1014,7 +1014,7 @@ QUrl DumpRenderTreeSupportQt::mediaContentUrlByElementId(QWebFrame* frame, const
{ {
QUrl res; QUrl res;
#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA) #if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
Frame* coreFrame = QWebFramePrivate::core(frame); Frame* coreFrame = QWebFramePrivate::core(frame);
if (!coreFrame) if (!coreFrame)
return res; return res;
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
#include "FullScreenVideoQt.h" #include "FullScreenVideoQt.h"
#include "ChromeClientQt.h" #include "ChromeClientQt.h"
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
#include "FullScreenVideoWidget.h" #include "FullScreenVideoWidget.h"
#include "MediaPlayerPrivateQt.h" #include "MediaPlayerPrivateQt.h"
#endif #endif
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
#include "PlatformVideoWindowPrivate.h" #include "PlatformVideoWindowPrivate.h"
#endif #endif
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
#include <QGraphicsVideoItem> #include <QGraphicsVideoItem>
#include <QMediaPlayer> #include <QMediaPlayer>
#endif #endif
...@@ -86,7 +86,7 @@ void GStreamerFullScreenVideoHandler::exitFullScreen() ...@@ -86,7 +86,7 @@ void GStreamerFullScreenVideoHandler::exitFullScreen()
} }
#endif #endif
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
bool DefaultFullScreenVideoHandler::s_shouldForceFullScreenVideoPlayback = false; bool DefaultFullScreenVideoHandler::s_shouldForceFullScreenVideoPlayback = false;
DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler() DefaultFullScreenVideoHandler::DefaultFullScreenVideoHandler()
...@@ -135,7 +135,7 @@ FullScreenVideoQt::FullScreenVideoQt(ChromeClientQt* chromeClient) ...@@ -135,7 +135,7 @@ FullScreenVideoQt::FullScreenVideoQt(ChromeClientQt* chromeClient)
{ {
Q_ASSERT(m_chromeClient); Q_ASSERT(m_chromeClient);
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
m_FullScreenVideoHandler = m_chromeClient->m_platformPlugin.createFullScreenVideoHandler(); m_FullScreenVideoHandler = m_chromeClient->m_platformPlugin.createFullScreenVideoHandler();
if (!m_FullScreenVideoHandler) if (!m_FullScreenVideoHandler)
m_FullScreenVideoHandler = new DefaultFullScreenVideoHandler; m_FullScreenVideoHandler = new DefaultFullScreenVideoHandler;
...@@ -151,7 +151,7 @@ FullScreenVideoQt::FullScreenVideoQt(ChromeClientQt* chromeClient) ...@@ -151,7 +151,7 @@ FullScreenVideoQt::FullScreenVideoQt(ChromeClientQt* chromeClient)
FullScreenVideoQt::~FullScreenVideoQt() FullScreenVideoQt::~FullScreenVideoQt()
{ {
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
delete m_FullScreenVideoHandler; delete m_FullScreenVideoHandler;
#endif #endif
#if USE(GSTREAMER) #if USE(GSTREAMER)
...@@ -166,7 +166,7 @@ void FullScreenVideoQt::enterFullScreenForNode(Node* node) ...@@ -166,7 +166,7 @@ void FullScreenVideoQt::enterFullScreenForNode(Node* node)
m_videoElement = static_cast<HTMLVideoElement*>(node); m_videoElement = static_cast<HTMLVideoElement*>(node);
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
HTMLVideoElement* videoElement = static_cast<HTMLVideoElement*>(node); HTMLVideoElement* videoElement = static_cast<HTMLVideoElement*>(node);
PlatformMedia platformMedia = videoElement->platformMedia(); PlatformMedia platformMedia = videoElement->platformMedia();
...@@ -192,7 +192,7 @@ void FullScreenVideoQt::exitFullScreenForNode(Node* node) ...@@ -192,7 +192,7 @@ void FullScreenVideoQt::exitFullScreenForNode(Node* node)
{ {
Q_ASSERT(node); Q_ASSERT(node);
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
HTMLVideoElement* videoElement = static_cast<HTMLVideoElement*>(node); HTMLVideoElement* videoElement = static_cast<HTMLVideoElement*>(node);
PlatformMedia platformMedia = videoElement->platformMedia(); PlatformMedia platformMedia = videoElement->platformMedia();
...@@ -220,7 +220,7 @@ void FullScreenVideoQt::aboutToClose() ...@@ -220,7 +220,7 @@ void FullScreenVideoQt::aboutToClose()
m_videoElement->exitFullscreen(); m_videoElement->exitFullscreen();
} }
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
MediaPlayerPrivateQt* FullScreenVideoQt::mediaPlayer() MediaPlayerPrivateQt* FullScreenVideoQt::mediaPlayer()
{ {
Q_ASSERT(m_videoElement); Q_ASSERT(m_videoElement);
...@@ -231,7 +231,7 @@ MediaPlayerPrivateQt* FullScreenVideoQt::mediaPlayer() ...@@ -231,7 +231,7 @@ MediaPlayerPrivateQt* FullScreenVideoQt::mediaPlayer()
bool FullScreenVideoQt::requiresFullScreenForVideoPlayback() bool FullScreenVideoQt::requiresFullScreenForVideoPlayback()
{ {
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
return m_FullScreenVideoHandler ? m_FullScreenVideoHandler->requiresFullScreenForVideoPlayback() : false; return m_FullScreenVideoHandler ? m_FullScreenVideoHandler->requiresFullScreenForVideoPlayback() : false;
#endif #endif
#if USE(GSTREAMER) #if USE(GSTREAMER)
...@@ -241,7 +241,7 @@ bool FullScreenVideoQt::requiresFullScreenForVideoPlayback() ...@@ -241,7 +241,7 @@ bool FullScreenVideoQt::requiresFullScreenForVideoPlayback()
bool FullScreenVideoQt::isValid() const bool FullScreenVideoQt::isValid() const
{ {
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
return m_FullScreenVideoHandler; return m_FullScreenVideoHandler;
#endif #endif
#if USE(GSTREAMER) #if USE(GSTREAMER)
......
...@@ -35,7 +35,7 @@ class ChromeClientQt; ...@@ -35,7 +35,7 @@ class ChromeClientQt;
class FullScreenVideoWidget; class FullScreenVideoWidget;
class HTMLVideoElement; class HTMLVideoElement;
class Node; class Node;
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
class MediaPlayerPrivateQt; class MediaPlayerPrivateQt;
#endif #endif
...@@ -63,7 +63,7 @@ private: ...@@ -63,7 +63,7 @@ private:
#endif #endif
// We do not use ENABLE or USE because moc does not expand these macros. // We do not use ENABLE or USE because moc does not expand these macros.
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
class DefaultFullScreenVideoHandler : public QWebFullScreenVideoHandler { class DefaultFullScreenVideoHandler : public QWebFullScreenVideoHandler {
Q_OBJECT Q_OBJECT
public: public:
...@@ -93,7 +93,7 @@ public: ...@@ -93,7 +93,7 @@ public:
bool isValid() const; bool isValid() const;
private: private:
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
MediaPlayerPrivateQt* mediaPlayer(); MediaPlayerPrivateQt* mediaPlayer();
#endif #endif
...@@ -103,7 +103,7 @@ private slots: ...@@ -103,7 +103,7 @@ private slots:
private: private:
ChromeClientQt* m_chromeClient; ChromeClientQt* m_chromeClient;
HTMLVideoElement* m_videoElement; HTMLVideoElement* m_videoElement;
#if ENABLE(QT_MULTIMEDIA) #if USE(QT_MULTIMEDIA)
QWebFullScreenVideoHandler* m_FullScreenVideoHandler; QWebFullScreenVideoHandler* m_FullScreenVideoHandler;
#endif #endif
#if USE(GSTREAMER) #if USE(GSTREAMER)
......
...@@ -127,7 +127,7 @@ QWebTouchModifier* QtPlatformPlugin::createTouchModifier() ...@@ -127,7 +127,7 @@ QWebTouchModifier* QtPlatformPlugin::createTouchModifier()
return p ? static_cast<QWebTouchModifier*>(p->createExtension(QWebKitPlatformPlugin::TouchInteraction)) : 0; return p ? static_cast<QWebTouchModifier*>(p->createExtension(QWebKitPlatformPlugin::TouchInteraction)) : 0;
} }
#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA) #if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
QWebFullScreenVideoHandler* QtPlatformPlugin::createFullScreenVideoHandler() QWebFullScreenVideoHandler* QtPlatformPlugin::createFullScreenVideoHandler()
{ {
QWebKitPlatformPlugin* p = plugin(); QWebKitPlatformPlugin* p = plugin();
......
...@@ -29,7 +29,7 @@ class QWebNotificationPresenter; ...@@ -29,7 +29,7 @@ class QWebNotificationPresenter;
class QWebHapticFeedbackPlayer; class QWebHapticFeedbackPlayer;
class QWebSelectData; class QWebSelectData;
class QWebTouchModifier; class QWebTouchModifier;
#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA) #if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
class QWebFullScreenVideoHandler; class QWebFullScreenVideoHandler;
#endif #endif
...@@ -44,7 +44,7 @@ public: ...@@ -44,7 +44,7 @@ public:
QWebNotificationPresenter* createNotificationPresenter(); QWebNotificationPresenter* createNotificationPresenter();
QWebHapticFeedbackPlayer* createHapticFeedbackPlayer(); QWebHapticFeedbackPlayer* createHapticFeedbackPlayer();
QWebTouchModifier* createTouchModifier(); QWebTouchModifier* createTouchModifier();
#if ENABLE(VIDEO) && ENABLE(QT_MULTIMEDIA) #if ENABLE(VIDEO) && USE(QT_MULTIMEDIA)
QWebFullScreenVideoHandler* createFullScreenVideoHandler(); QWebFullScreenVideoHandler* createFullScreenVideoHandler();
#endif #endif
......
...@@ -210,7 +210,7 @@ MultipleSelectionPopup::MultipleSelectionPopup(const QWebSelectData& data) ...@@ -210,7 +210,7 @@ MultipleSelectionPopup::MultipleSelectionPopup(const QWebSelectData& data)
resize(size().width(), visibleItemCount * gMaemoListItemSize); resize(size().width(), visibleItemCount * gMaemoListItemSize);
} }
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
FullScreenVideoWidget::FullScreenVideoWidget(QMediaPlayer* player) FullScreenVideoWidget::FullScreenVideoWidget(QMediaPlayer* player)
: QVideoWidget() : QVideoWidget()
, m_mediaPlayer(player) , m_mediaPlayer(player)
...@@ -286,7 +286,7 @@ bool WebPlugin::supportsExtension(Extension extension) const ...@@ -286,7 +286,7 @@ bool WebPlugin::supportsExtension(Extension extension) const
#endif #endif
case TouchInteraction: case TouchInteraction:
return true; return true;
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
case FullScreenVideoPlayer: case FullScreenVideoPlayer:
return true; return true;
#endif #endif
...@@ -306,7 +306,7 @@ QObject* WebPlugin::createExtension(Extension extension) const ...@@ -306,7 +306,7 @@ QObject* WebPlugin::createExtension(Extension extension) const
#endif #endif
case TouchInteraction: case TouchInteraction:
return new TouchModifier(); return new TouchModifier();
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
case FullScreenVideoPlayer: case FullScreenVideoPlayer:
return new FullScreenVideoHandler(); return new FullScreenVideoHandler();
#endif #endif
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
#include "WebNotificationPresenter.h" #include "WebNotificationPresenter.h"
#include <QDialog> #include <QDialog>
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
#include <QVideoWidget> #include <QVideoWidget>
#endif #endif
...@@ -97,7 +97,7 @@ public: ...@@ -97,7 +97,7 @@ public:
} }
}; };
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
class FullScreenVideoWidget : public QVideoWidget { class FullScreenVideoWidget : public QVideoWidget {
Q_OBJECT Q_OBJECT
public: public:
......
...@@ -14,8 +14,8 @@ load(mobilityconfig, true) ...@@ -14,8 +14,8 @@ load(mobilityconfig, true)
MOBILITY += multimedia MOBILITY += multimedia
DEFINES -= ENABLE_VIDEO=0 DEFINES -= ENABLE_VIDEO=0
DEFINES += ENABLE_VIDEO=1 DEFINES += ENABLE_VIDEO=1
DEFINES -= ENABLE_QT_MULTIMEDIA=0 DEFINES -= WTF_USE_QT_MULTIMEDIA=0
DEFINES += ENABLE_QT_MULTIMEDIA=1 DEFINES += WTF_USE_QT_MULTIMEDIA=1
} }
} }
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
#include <QObject> #include <QObject>
#include <QUrl> #include <QUrl>
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
#include <QMediaPlayer> #include <QMediaPlayer>
#endif #endif
...@@ -118,7 +118,7 @@ public: ...@@ -118,7 +118,7 @@ public:
virtual unsigned hitTestPaddingForTouch(const PaddingDirection) const = 0; virtual unsigned hitTestPaddingForTouch(const PaddingDirection) const = 0;
}; };
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
class QWebFullScreenVideoHandler : public QObject { class QWebFullScreenVideoHandler : public QObject {
Q_OBJECT Q_OBJECT
public: public:
......
...@@ -434,7 +434,7 @@ void tst_QWebPage::userStyleSheet() ...@@ -434,7 +434,7 @@ void tst_QWebPage::userStyleSheet()
void tst_QWebPage::loadHtml5Video() void tst_QWebPage::loadHtml5Video()
{ {
#if defined(ENABLE_QT_MULTIMEDIA) && ENABLE_QT_MULTIMEDIA #if defined(WTF_USE_QT_MULTIMEDIA) && WTF_USE_QT_MULTIMEDIA
QByteArray url("http://does.not/exist?a=1%2Cb=2"); QByteArray url("http://does.not/exist?a=1%2Cb=2");
m_view->setHtml("<p><video id ='video' src='" + url + "' autoplay/></p>"); m_view->setHtml("<p><video id ='video' src='" + url + "' autoplay/></p>");
QTest::qWait(2000); QTest::qWait(2000);
......
...@@ -10,8 +10,8 @@ ELSE { TARGET = tst_$$TARGET } ...@@ -10,8 +10,8 @@ ELSE { TARGET = tst_$$TARGET }
load(mobilityconfig, true) load(mobilityconfig, true)
contains(MOBILITY_CONFIG, multimedia) { contains(MOBILITY_CONFIG, multimedia) {
# This define is used by tests depending on Qt Multimedia # This define is used by tests depending on Qt Multimedia
DEFINES -= ENABLE_QT_MULTIMEDIA=0 DEFINES -= WTF_USE_QT_MULTIMEDIA=0
DEFINES += ENABLE_QT_MULTIMEDIA=1 DEFINES += WTF_USE_QT_MULTIMEDIA=1
} }
SOURCES += $${TARGET}.cpp SOURCES += $${TARGET}.cpp
......
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