Changeset 87312 in webkit
- Timestamp:
- May 25, 2011 12:22:25 PM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 3 added
- 23 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r87310 r87312 1 2011-05-25 Alexis Menard <alexis.menard@openbossa.org> 2 3 Reviewed by Eric Carlson. 4 5 [Qt] Enable usage of QuickTime mediaplayer for the Qt port on Mac. 6 https://bugs.webkit.org/show_bug.cgi?id=61279 7 8 Enable the QuickTime backend for the Qt port on Mac. The patch adds the bits in WebCore 9 to enable the QTKit backend of the Mac port. It can be enabled by passing DEFINES+=USE_QTKIT=1 10 when calling build-webkit. 11 12 * WebCore.pri: 13 * WebCore.pro: 14 * features.pri: 15 * platform/KURL.h: 16 * platform/SharedBuffer.h: 17 * platform/cf/KURLCFNet.cpp: 18 * platform/cf/SharedBufferCF.cpp: 19 * platform/graphics/FloatSize.h: 20 * platform/graphics/IntRect.h: 21 * platform/graphics/IntSize.h: 22 * platform/graphics/MediaPlayer.cpp: 23 * platform/graphics/cg/FloatSizeCG.cpp: 24 * platform/graphics/cg/IntRectCG.cpp: 25 * platform/graphics/mac/MediaPlayerPrivateQTKit.h: 26 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: 27 (WebCore::MediaPlayerPrivateQTKit::createQTMovieView): 28 (WebCore::MediaPlayerPrivateQTKit::createQTVideoRenderer): 29 (WebCore::MediaPlayerPrivateQTKit::createQTMovieLayer): 30 (WebCore::MediaPlayerPrivateQTKit::preferredRenderingMode): 31 (WebCore::MediaPlayerPrivateQTKit::paint): 32 (-[WebCoreMovieObserver layerHostChanged:]): 33 * platform/mac/KURLMac.mm: 34 * platform/mac/SharedBufferMac.mm: 35 (+[WebCoreSharedBufferData initialize]): 36 * platform/mac/WebCoreObjCExtras.mm: 37 * platform/qt/WebCoreSystemInterface.h: Added. 38 * platform/qt/WebCoreSystemInterface.mm: Added. 39 1 40 2011-05-25 Rob Buis <rbuis@rim.com> 2 41 -
trunk/Source/WebCore/WebCore.pri
r86949 r87312 244 244 245 245 contains(DEFINES, ENABLE_VIDEO=1) { 246 contains(DEFINES, USE_GSTREAMER=1) { 246 contains(DEFINES, USE_QTKIT=1) { 247 DEFINES += WTF_USE_QTKIT=1 248 249 INCLUDEPATH += $$PWD/platform/graphics/mac 250 251 LIBS += -framework AppKit -framework AudioUnit \ 252 -framework AudioToolbox -framework CoreAudio \ 253 -framework QuartzCore -framework QTKit 254 255 } else:contains(DEFINES, USE_GSTREAMER=1) { 247 256 DEFINES += WTF_USE_GSTREAMER=1 248 257 DEFINES += ENABLE_GLIB_SUPPORT=1 -
trunk/Source/WebCore/WebCore.pro
r87293 r87312 2961 2961 } 2962 2962 2963 contains(DEFINES, USE_GSTREAMER=1) { 2963 contains(DEFINES, USE_QTKIT=1) { 2964 HEADERS += \ 2965 platform/graphics/mac/MediaPlayerPrivateQTKit.h \ 2966 platform/mac/WebCoreObjCExtras.h \ 2967 platform/qt/WebCoreSystemInterface.h \ 2968 platform/mac/BlockExceptions.h \ 2969 platform/mac/WebCoreObjCExtras.h 2970 SOURCES += \ 2971 platform/graphics/mac/MediaPlayerPrivateQTKit.mm \ 2972 platform/mac/SharedBufferMac.mm \ 2973 platform/mac/KURLMac.mm \ 2974 platform/text/mac/StringMac.mm \ 2975 platform/graphics/mac/FloatSizeMac.mm \ 2976 platform/graphics/mac/IntRectMac.mm \ 2977 platform/graphics/cg/IntRectCG.cpp \ 2978 platform/graphics/cg/FloatSizeCG.cpp \ 2979 platform/cf/SharedBufferCF.cpp \ 2980 platform/cf/KURLCFNet.cpp \ 2981 platform/qt/WebCoreSystemInterface.mm \ 2982 platform/mac/BlockExceptions.mm \ 2983 platform/mac/WebCoreObjCExtras.mm 2984 2985 DEFINES+=NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 2986 2987 } else: contains(DEFINES, USE_GSTREAMER=1) { 2964 2988 HEADERS += \ 2965 2989 platform/graphics/gstreamer/GOwnPtrGStreamer.h \ -
trunk/Source/WebCore/features.pri
r87274 r87312 165 165 DEFINES += ENABLE_VIDEO=0 166 166 167 contains(DEFINES, USE_GSTREAMER=1) { 167 contains(DEFINES, USE_QTKIT=1) { 168 DEFINES -= ENABLE_VIDEO=0 169 DEFINES += ENABLE_VIDEO=1 170 DEFINES -= WTF_USE_QT_MULTIMEDIA=1 171 DEFINES += WTF_USE_QT_MULTIMEDIA=0 172 } else: contains(DEFINES, USE_GSTREAMER=1) { 168 173 DEFINES -= ENABLE_VIDEO=0 169 174 DEFINES += ENABLE_VIDEO=1 -
trunk/Source/WebCore/platform/KURL.h
r85056 r87312 35 35 #endif 36 36 37 #if PLATFORM(MAC) 37 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 38 38 #ifdef __OBJC__ 39 39 @class NSURL; … … 203 203 #endif 204 204 205 #if PLATFORM(MAC) 205 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 206 206 KURL(NSURL*); 207 207 operator NSURL*() const; -
trunk/Source/WebCore/platform/SharedBuffer.h
r81710 r87312 37 37 #endif 38 38 39 #if PLATFORM(MAC) 39 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 40 40 #ifdef __OBJC__ 41 41 @class NSData; … … 66 66 ~SharedBuffer(); 67 67 68 #if PLATFORM(MAC) 68 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 69 69 NSData *createNSData(); 70 70 static PassRefPtr<SharedBuffer> wrapNSData(NSData *data); -
trunk/Source/WebCore/platform/cf/KURLCFNet.cpp
r30333 r87312 79 79 } 80 80 81 #if !(PLATFORM(QT) && USE(QTKIT)) 81 82 String KURL::fileSystemPath() const 82 83 { … … 92 93 return RetainPtr<CFStringRef>(AdoptCF, CFURLCopyFileSystemPath(cfURL.get(), pathStyle)).get(); 93 94 } 94 95 #endif 95 96 } -
trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp
r81710 r87312 41 41 // Mac is a CF platform but has an even more efficient version of this method, 42 42 // so only use this version for non-Mac 43 #if !PLATFORM(MAC) 43 #if !PLATFORM(MAC) && !(PLATFORM(QT) && USE(QTKIT)) 44 44 CFDataRef SharedBuffer::createCFData() 45 45 { -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r87302 r87312 36 36 #endif 37 37 38 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) 38 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 39 39 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 40 40 typedef struct CGSize NSSize; … … 98 98 99 99 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \ 100 || (PLATFORM(CHROMIUM) && OS(DARWIN)) 100 || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 101 101 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy 102 102 operator NSSize() const; -
trunk/Source/WebCore/platform/graphics/IntRect.h
r87303 r87312 34 34 #endif 35 35 36 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) 36 #if PLATFORM(MAC) || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 37 37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 38 38 typedef struct CGRect NSRect; … … 204 204 205 205 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \ 206 || (PLATFORM(CHROMIUM) && OS(DARWIN)) 206 || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 207 207 operator NSRect() const; 208 208 #endif … … 244 244 245 245 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) \ 246 || (PLATFORM(CHROMIUM) && OS(DARWIN)) 246 || (PLATFORM(CHROMIUM) && OS(DARWIN)) || (PLATFORM(QT) && USE(QTKIT)) 247 247 IntRect enclosingIntRect(const NSRect&); 248 248 #endif -
trunk/Source/WebCore/platform/graphics/IntSize.h
r84101 r87312 31 31 #endif 32 32 33 #if PLATFORM(MAC) 33 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 34 34 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 35 35 typedef struct CGSize NSSize; … … 115 115 #endif 116 116 117 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)117 #if (PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT))) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 118 118 explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy 119 119 operator NSSize() const; -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r86501 r87312 47 47 #endif 48 48 49 #if PLATFORM(MAC) 49 #if PLATFORM(MAC) || (PLATFORM(QT) && USE(QTKIT)) 50 50 #include "MediaPlayerPrivateQTKit.h" 51 51 #if USE(AVFOUNDATION) … … 63 63 #include "MediaPlayerPrivateQt.h" 64 64 #define PlatformMediaEngineClassName MediaPlayerPrivateQt 65 #elif !USE(GSTREAMER) 65 #elif !USE(GSTREAMER) && !USE(QTKIT) 66 66 #include "MediaPlayerPrivatePhonon.h" 67 67 #define PlatformMediaEngineClassName MediaPlayerPrivatePhonon -
trunk/Source/WebCore/platform/graphics/cg/FloatSizeCG.cpp
r84101 r87312 28 28 #include "FloatSize.h" 29 29 30 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) 30 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) || (PLATFORM(QT) && USE(QTKIT)) 31 31 32 32 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/cg/IntRectCG.cpp
r84101 r87312 27 27 #include "IntRect.h" 28 28 29 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) 29 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) || (PLATFORM(QT) && USE(QTKIT)) 30 30 31 31 #include <ApplicationServices/ApplicationServices.h> -
trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.h
r86588 r87312 42 42 @class WebCoreMovieObserver; 43 43 #else 44 class NSDictionary; 45 class NSMutableDictionary; 44 46 class QTMovie; 45 47 class QTMovieView; … … 86 88 87 89 PlatformMedia platformMedia() const; 88 #if USE(ACCELERATED_COMPOSITING) 90 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 89 91 PlatformLayer* platformLayer() const; 90 92 #endif … … 138 140 139 141 140 #if USE(ACCELERATED_COMPOSITING) 142 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 141 143 bool supportsAcceleratedRendering() const; 142 144 void acceleratedRenderingStateChanged(); -
trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm
r86591 r87312 39 39 #import "Frame.h" 40 40 #import "FrameView.h" 41 #import "HostWindow.h" 41 42 #import "GraphicsContext.h" 42 43 #import "KURL.h" … … 59 60 #import "RenderStyle.h" 60 61 #endif 61 62 62 63 63 SOFT_LINK_FRAMEWORK(QTKit) … … 456 456 m_qtMovieView.adoptNS([[QTMovieView alloc] init]); 457 457 setSize(m_player->size()); 458 NSView* parentView = m_player->frameView()->documentView(); 458 NSView* parentView = 0; 459 #if PLATFORM(MAC) 460 parentView = m_player->frameView()->documentView(); 459 461 [parentView addSubview:m_qtMovieView.get()]; 462 #endif 460 463 [m_qtMovieView.get() setDelegate:m_objcObserver.get()]; 461 464 [m_objcObserver.get() setView:m_qtMovieView.get()]; … … 494 497 495 498 // associate our movie with our instance of QTVideoRendererWebKitOnly 496 [(id<WebKitVideoRenderingDetails>)m_qtVideoRenderer.get() setMovie:m_qtMovie.get()]; 499 [(id<WebKitVideoRenderingDetails>)m_qtVideoRenderer.get() setMovie:m_qtMovie.get()]; 497 500 498 501 if (rendererMode == QTVideoRendererModeListensForNewImages) { … … 523 526 void MediaPlayerPrivateQTKit::createQTMovieLayer() 524 527 { 525 #if USE(ACCELERATED_COMPOSITING) 528 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 526 529 if (!m_qtMovie) 527 530 return; … … 574 577 return MediaRenderingNone; 575 578 576 #if USE(ACCELERATED_COMPOSITING) 579 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 577 580 if (supportsAcceleratedRendering() && m_player->mediaPlayerClient()->mediaPlayerRenderingCanBeAccelerated(m_player)) 578 581 return MediaRenderingMovieLayer; … … 700 703 } 701 704 702 #if USE(ACCELERATED_COMPOSITING) 705 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 703 706 PlatformLayer* MediaPlayerPrivateQTKit::platformLayer() const 704 707 { … … 1213 1216 } 1214 1217 1215 #if USE(ACCELERATED_COMPOSITING) 1218 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 1216 1219 #if defined(BUILDING_ON_SNOW_LEOPARD) 1217 1220 static bool layerIsDescendentOf(PlatformLayer* child, PlatformLayer* descendent) … … 1328 1331 [m_objcObserver.get() setDelayCallbacks:YES]; 1329 1332 BEGIN_BLOCK_OBJC_EXCEPTIONS; 1333 NSGraphicsContext* newContext; 1334 FloatSize scaleFactor(1.0f, -1.0f); 1335 IntRect paintRect(IntPoint(0, 0), IntSize(r.width(), r.height())); 1336 1337 #if PLATFORM(QT) && USE(QTKIT) 1338 // In Qt, GraphicsContext is a QPainter so every transformations applied on it won't matter because here 1339 // the video is rendered by QuickTime not by Qt. 1340 CGContextRef cgContext = static_cast<CGContextRef>([[NSGraphicsContext currentContext] graphicsPort]); 1341 CGContextSaveGState(cgContext); 1342 CGContextSetInterpolationQuality(cgContext, kCGInterpolationLow); 1343 CGContextTranslateCTM(cgContext, r.x(), r.y() + r.height()); 1344 CGContextScaleCTM(cgContext, scaleFactor.width(), scaleFactor.height()); 1345 1346 newContext = [NSGraphicsContext currentContext]; 1347 #else 1330 1348 GraphicsContextStateSaver stateSaver(*context); 1331 1349 context->translate(r.x(), r.y() + r.height()); 1332 context->scale( FloatSize(1.0f, -1.0f));1350 context->scale(scaleFactor); 1333 1351 context->setImageInterpolationQuality(InterpolationLow); 1334 IntRect paintRect(IntPoint(0, 0), IntSize(r.width(), r.height())); 1335 1336 NSGraphicsContext* newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:context->platformContext() flipped:NO]; 1337 1352 1353 newContext = [NSGraphicsContext graphicsContextWithGraphicsPort:context->platformContext() flipped:NO]; 1354 #endif 1338 1355 // draw the current video frame 1339 1356 if (qtVideoRenderer) { … … 1389 1406 } 1390 1407 #endif 1391 1408 #if PLATFORM(QT) && USE(QTKIT) 1409 CGContextRestoreGState(cgContext); 1410 #endif 1392 1411 END_BLOCK_OBJC_EXCEPTIONS; 1393 1412 [m_objcObserver.get() setDelayCallbacks:NO]; … … 1594 1613 } 1595 1614 1596 #if USE(ACCELERATED_COMPOSITING) 1615 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 1597 1616 bool MediaPlayerPrivateQTKit::supportsAcceleratedRendering() const 1598 1617 { … … 1745 1764 - (void)layerHostChanged:(NSNotification *)notification 1746 1765 { 1747 #if USE(ACCELERATED_COMPOSITING) 1766 #if USE(ACCELERATED_COMPOSITING) && !(PLATFORM(QT) && USE(QTKIT)) 1748 1767 CALayer* rootLayer = static_cast<CALayer*>([notification object]); 1749 1768 m_callback->layerHostChanged(rootLayer); -
trunk/Source/WebCore/platform/mac/KURLMac.mm
r30243 r87312 28 28 29 29 #import "FoundationExtras.h" 30 #import <CoreFoundation/CFURL.h> 30 31 31 32 namespace WebCore { -
trunk/Source/WebCore/platform/mac/SharedBufferMac.mm
r85036 r87312 48 48 { 49 49 JSC::initializeThreading(); 50 #if PLATFORM(QT) && USE(QTKIT) 51 WTF::initializeMainThread(); 52 #else 50 53 WTF::initializeMainThreadToProcessMainThread(); 54 #endif 51 55 WebCoreObjCFinalizeOnMainThread(self); 52 56 } … … 108 112 return (CFDataRef)RetainPtr<WebCoreSharedBufferData>(AdoptNS, [[WebCoreSharedBufferData alloc] initWithSharedBuffer:this]).releaseRef(); 109 113 } 110 114 #if !(PLATFORM(QT) && USE(QTKIT)) 111 115 PassRefPtr<SharedBuffer> SharedBuffer::createWithContentsOfFile(const String& filePath) 112 116 { … … 116 120 return 0; 117 121 } 118 122 #endif 119 123 } 120 124 -
trunk/Source/WebCore/platform/mac/WebCoreObjCExtras.mm
r85036 r87312 37 37 #include <objc/objc-auto.h> 38 38 #include <objc/objc-runtime.h> 39 #include <utility> 39 40 #include <wtf/Assertions.h> 40 41 #include <wtf/MainThread.h> -
trunk/Source/WebCore/platform/qt/WebCoreSystemInterface.mm
r87311 r87312 1 1 /* 2 * Copyright (C) 2003, 2006 Apple Computer, Inc. All rights reserved. 3 * Copyright (C) 2005 Nokia. All rights reserved. 2 * Copyright 2006, 2007, 2008, 2009, 2010 Apple Computer, Inc. All rights reserved. 4 3 * 5 4 * Redistribution and use in source and binary forms, with or without … … 24 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 24 */ 26 27 #include "config.h"28 #include "FloatSize.h"29 25 30 #if USE(CG) || USE(SKIA_ON_MAC_CHROME) 26 #import "config.h" 27 #import "WebCoreSystemInterface.h" 28 #import <Foundation/Foundation.h> 31 29 32 #include <ApplicationServices/ApplicationServices.h> 30 unsigned (*wkQTIncludeOnlyModernMediaFileTypes)(void); 31 int (*wkQTMovieDataRate)(QTMovie*); 32 void (*wkQTMovieDisableComponent)(uint32_t[5]); 33 float (*wkQTMovieMaxTimeLoaded)(QTMovie*); 34 NSString *(*wkQTMovieMaxTimeLoadedChangeNotification)(void); 35 float (*wkQTMovieMaxTimeSeekable)(QTMovie*); 36 int (*wkQTMovieGetType)(QTMovie*); 37 BOOL (*wkQTMovieHasClosedCaptions)(QTMovie*); 38 void (*wkQTMovieSetShowClosedCaptions)(QTMovie*, BOOL); 39 void (*wkQTMovieSelectPreferredAlternates)(QTMovie*); 40 void (*wkQTMovieViewSetDrawSynchronously)(QTMovieView*, BOOL); 41 NSArray *(*wkQTGetSitesInMediaDownloadCache)(); 42 void (*wkQTClearMediaDownloadCacheForSite)(NSString *site); 43 void (*wkQTClearMediaDownloadCache)(); 33 44 34 namespace WebCore {35 36 FloatSize::FloatSize(const CGSize& s) : m_width(s.width), m_height(s.height)37 {38 }39 40 FloatSize::operator CGSize() const41 {42 return CGSizeMake(m_width, m_height);43 }44 45 }46 47 #endif // USE(CG) -
trunk/Source/WebKit/qt/Api/qwebpage.cpp
r86537 r87312 110 110 #include "TextIterator.h" 111 111 #include "WebPlatformStrategies.h" 112 #if USE(QTKIT) 113 #include "WebSystemInterface.h" 114 #endif 112 115 #include "WindowFeatures.h" 113 116 #include "WorkerThread.h" … … 317 320 318 321 WebPlatformStrategies::initialize(); 322 323 #if USE(QTKIT) 324 InitWebCoreSystemInterface(); 325 #endif 319 326 320 327 Page::PageClients pageClients; -
trunk/Source/WebKit/qt/ChangeLog
r87311 r87312 1 2011-05-25 Alexis Menard <alexis.menard@openbossa.org> 2 3 Reviewed by Eric Carlson. 4 5 [Qt] Enable usage of QuickTime mediaplayer for the Qt port on Mac. 6 https://bugs.webkit.org/show_bug.cgi?id=61279 7 8 Enable the usage of QuickTime backend for the Qt port. It can be enabled by 9 passing DEFINES+=USE_QTKIT=1 when calling build-webkit. 10 11 * Api/qwebpage.cpp: 12 (QWebPagePrivate::QWebPagePrivate): 13 * QtWebKit.pro: 14 * WebCoreSupport/FullScreenVideoQt.cpp: 15 (WebCore::FullScreenVideoQt::enterFullScreenForNode): 16 (WebCore::FullScreenVideoQt::requiresFullScreenForVideoPlayback): 17 (WebCore::FullScreenVideoQt::isValid): 18 * WebCoreSupport/WebSystemInterface.h: Added. 19 * WebCoreSupport/WebSystemInterface.mm: Added. 20 (InitWebCoreSystemInterface): 21 1 22 2011-05-25 Qi Zhang <qi.2.zhang@nokia.com> 2 23 -
trunk/Source/WebKit/qt/QtWebKit.pro
r86949 r87312 216 216 217 217 contains(DEFINES, ENABLE_VIDEO=1) { 218 !contains(DEFINES, USE_ GSTREAMER=1):contains(MOBILITY_CONFIG, multimedia) {218 !contains(DEFINES, USE_QTKIT=1):!contains(DEFINES, USE_GSTREAMER=1):contains(MOBILITY_CONFIG, multimedia) { 219 219 HEADERS += $$PWD/WebCoreSupport/FullScreenVideoWidget.h 220 220 SOURCES += $$PWD/WebCoreSupport/FullScreenVideoWidget.cpp … … 224 224 HEADERS += $$PWD/WebCoreSupport/FullScreenVideoQt.h 225 225 SOURCES += $$PWD/WebCoreSupport/FullScreenVideoQt.cpp 226 } 227 228 contains(DEFINES, USE_QTKIT=1) { 229 INCLUDEPATH += $$SOURCE_DIR/WebCore/platform/qt/ 230 INCLUDEPATH += $$SOURCE_DIR/../WebKitLibraries/ 231 DEFINES+=NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 232 HEADERS += $$PWD/WebCoreSupport/WebSystemInterface.h 233 SOURCES += $$PWD/WebCoreSupport/WebSystemInterface.mm 234 # We can know the Mac OS version by using the Darwin major version 235 DARWIN_VERSION = $$split(QMAKE_HOST.version, ".") 236 DARWIN_MAJOR_VERSION = $$first(DARWIN_VERSION) 237 equals(DARWIN_MAJOR_VERSION, "10") { 238 LIBS+= $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceSnowLeopard.a -framework Security 239 } else { 240 equals(DARWIN_MAJOR_VERSION, "9") { 241 LIBS+= $$SOURCE_DIR/../WebKitLibraries/libWebKitSystemInterfaceLeopard.a -framework Security 242 } 243 } 226 244 } 227 245 } -
trunk/Source/WebKit/qt/WebCoreSupport/FullScreenVideoQt.cpp
r86550 r87312 163 163 { 164 164 Q_ASSERT(node); 165 m_videoElement = static_cast<HTMLVideoElement*>(node); 166 167 #if USE(QT_MULTIMEDIA) 165 168 Q_ASSERT(m_FullScreenVideoHandler); 166 167 m_videoElement = static_cast<HTMLVideoElement*>(node);168 169 #if USE(QT_MULTIMEDIA)170 169 HTMLVideoElement* videoElement = static_cast<HTMLVideoElement*>(node); 171 170 PlatformMedia platformMedia = videoElement->platformMedia(); … … 237 236 #if USE(GSTREAMER) 238 237 return false; 238 #else 239 return false; 239 240 #endif 240 241 } … … 247 248 #if USE(GSTREAMER) 248 249 return m_FullScreenVideoHandlerGStreamer; 249 #endif 250 } 251 252 } 253 250 #else 251 return 0; 252 #endif 253 } 254 255 } 256
Note: See TracChangeset
for help on using the changeset viewer.