Changeset 163657 in webkit
- Timestamp:
- Feb 7, 2014, 3:37:54 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 104 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r163655 r163657 1 2014-02-07 Dan Bernstein <mitz@apple.com> 2 3 Stop using PLATFORM(MAC) in WebCore/platform except where it means “OS X but not iOS” 4 https://bugs.webkit.org/show_bug.cgi?id=128404 5 6 Reviewed by Anders Carlsson. 7 8 * Configurations/WebCore.xcconfig: Removed KeyEventMac.mm from 9 EXCLUDED_SOURCE_FILE_NAMES_iphoneos, because that file contains !PLATFORM(IOS) guards. 10 Removed WheelEventMac.mm from the same definition, because that file no longer exists. 11 * platform/ContentFilter.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 12 * platform/ContextMenu.h: Ditto. 13 * platform/ContextMenuItem.h: Ditto. 14 * platform/Cursor.cpp: Ditto. 15 * platform/Cursor.h: Ditto. 16 * platform/DragData.cpp: Ditto. 17 * platform/DragImage.cpp: Ditto. 18 * platform/Language.cpp: 19 (WebCore::displayNameForLanguageLocale): Changed PLATFORM(MAC) to USE(CF) && !PLATFORM(WIN). 20 * platform/LocalizedStrings.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 21 (WebCore::contextMenuItemTagSearchWeb): 22 * platform/LocalizedStrings.h: Ditto. 23 * platform/MIMETypeRegistry.cpp: Ditto. 24 (WebCore::initializeSupportedImageMIMETypesForEncoding): 25 * platform/PasteboardStrategy.h: Ditto. 26 * platform/PlatformKeyboardEvent.h: Ditto. 27 * platform/PlatformMenuDescription.h: Ditto. 28 * platform/PlatformSpeechSynthesizer.h: Ditto. 29 * platform/PlatformWheelEvent.h: Ditto. 30 (WebCore::PlatformWheelEvent::PlatformWheelEvent): 31 * platform/SchemeRegistry.cpp: Ditto. 32 (WebCore::localURLSchemes): 33 (WebCore::SchemeRegistry::removeURLSchemeRegisteredAsLocal): 34 (WebCore::SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely): 35 * platform/ScrollAnimator.cpp: Ditto. 36 (WebCore::ScrollAnimator::handleWheelEvent): 37 * platform/ScrollAnimator.h: Ditto. 38 * platform/ScrollView.cpp: Ditto. 39 * platform/ScrollView.h: Ditto. 40 * platform/ScrollbarThemeComposite.h: Ditto. 41 * platform/SharedBuffer.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSData-related 42 code. 43 * platform/URL.h: Changed PLATFORM(MAC) to USE(FOUNDATION) around NSURL-related code. 44 * platform/Widget.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 45 * platform/Widget.h: Ditto. 46 * platform/audio/AudioSession.cpp: Changed !PLATFORM(MAC) && !PLATFORM(IOS) to 47 !PLATFORM(COCOA). 48 * platform/audio/HRTFElevation.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 49 * platform/audio/MediaSessionManager.cpp: Ditto. 50 * platform/audio/mac/AudioSessionMac.cpp: Updated comment. 51 * platform/audio/mac/MediaSessionManagerMac.cpp: Removed PLATFORM(MAC) from Cocoa-only file. 52 * platform/cf/SharedBufferCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION) and updated 53 comment. 54 * platform/cf/URLCF.cpp: Changed !PLATFORM(MAC) to !USE(FOUNDATION). 55 * platform/graphics/BitmapImage.h: Changed one instance of PLATFORM(MAC) to 56 USE(CG) || USE(APPKIT), and another to PLATFORM(COCOA). 57 * platform/graphics/DisplayRefreshMonitor.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 58 (WebCore::DisplayRefreshMonitor::DisplayRefreshMonitor): 59 * platform/graphics/DisplayRefreshMonitor.h: Ditto. 60 * platform/graphics/FloatPoint.h: Collapsed nested #ifs into a single #if. 61 * platform/graphics/FloatRect.h: Ditto. 62 * platform/graphics/FloatSize.h: Ditto. 63 * platform/graphics/Font.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 64 * platform/graphics/Font.h: Ditto. 65 * platform/graphics/FontCache.cpp: Ditto. 66 (WebCore::FontCache::getFontData): 67 * platform/graphics/FontCache.h: Ditto. Also removed redundant friend class declaration. 68 * platform/graphics/FontGlyphs.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 69 (WebCore::FontGlyphs::glyphDataAndPageForCharacter): 70 * platform/graphics/GlyphPage.h: Ditto. 71 * platform/graphics/GraphicsContext3D.h: Ditto. 72 * platform/graphics/Image.h: Changed PLATFORM(MAC) to USE(APPKIT) around use of NSImage. 73 Changed another PLATFORM(MAC) to PLATFORM(COCOA). 74 * platform/graphics/IntRect.h: Collapsed nested #ifs into a single #if. 75 * platform/graphics/IntSize.h: Ditto. 76 * platform/graphics/MediaPlayer.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 77 (WebCore::installedMediaEngines): 78 (WebCore::MediaPlayer::supportsType): 79 * platform/graphics/SimpleFontData.cpp: Ditto. 80 (WebCore::SimpleFontData::nonSyntheticItalicFontData): 81 (WebCore::SimpleFontData::DerivedFontData::~DerivedFontData): 82 * platform/graphics/SimpleFontData.h: Ditto. 83 * platform/graphics/TiledBacking.h: Ditto. 84 * platform/graphics/ca/GraphicsLayerCA.cpp: Ditto. 85 (WebCore::GraphicsLayerCA::filtersCanBeComposited): 86 (WebCore::GraphicsLayerCA::createPlatformCALayer): 87 * platform/graphics/ca/LayerFlushScheduler.h: Ditto. 88 * platform/graphics/ca/PlatformCAAnimation.h: Ditto. 89 * platform/graphics/ca/PlatformCAFilters.h: Ditto. 90 * platform/graphics/ca/PlatformCALayer.h: Ditto. 91 * platform/graphics/cg/BitmapImageCG.cpp: Ditto. 92 * platform/graphics/cg/GraphicsContextCG.cpp: Ditto. 93 (WebCore::GraphicsContext::setAllowsFontSmoothing): 94 * platform/graphics/cg/GraphicsContextPlatformPrivateCG.h: Ditto. 95 * platform/graphics/cg/ImageBufferCG.cpp: Ditto. 96 * platform/graphics/cg/ImageBufferDataCG.h: Ditto. 97 * platform/graphics/cg/ImageCG.cpp: Ditto. 98 * platform/graphics/cg/ImageSourceCG.cpp: Ditto. 99 (WebCore::ImageSource::setData): 100 * platform/graphics/cg/ImageSourceCG.h: Ditto. 101 * platform/graphics/cg/PathCG.cpp: Ditto. 102 (WebCore::Path::platformAddPathForRoundedRect): 103 * platform/graphics/cg/PatternCG.cpp: Ditto. 104 * platform/graphics/gpu/DrawingBuffer.h: Ditto. 105 * platform/graphics/mac/MediaPlayerPrivateQTKit.mm: 106 (WebCore::MediaPlayerPrivateQTKit::createQTMovieView): Removed PLATFORM(MAC) guards, since 107 this file is only used on Mac and iOS. 108 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 109 (WebCore::Extensions3DOpenGL::supportsExtension): Changed the GL_EXT_draw_buffers check to 110 match the implementation. 111 * platform/graphics/opengl/GraphicsContext3DOpenGL.cpp: Changed PLATFORM(MAC) to 112 PLATFORM(COCOA). 113 * platform/mac/KeyEventMac.mm: Added !PLATFORM(IOS). 114 * platform/mac/PlatformEventFactoryMac.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 115 * platform/mac/WebCoreSystemInterface.h: Ditto. Removed redundant check for PLATFORM(MAC). 116 * platform/mac/WebCoreSystemInterface.mm: Removed redundant check for PLATFORM(MAC). 117 * platform/network/Credential.h: Changed PLATFORM(IOS) || PLATFORM(MAC) to PLATFORM(COCOA). 118 * platform/network/NetworkStateNotifier.h: Changed PLATFORM(MAC) to PLATFORM(COCOA). 119 * platform/network/NetworkStorageSession.h: Ditto. 120 * platform/network/NetworkingContext.h: Ditto. 121 * platform/network/ProtectionSpace.cpp: Ditto. 122 (WebCore::ProtectionSpace::receivesCredentialSecurely): 123 * platform/network/ResourceHandle.cpp: Ditto. 124 (WebCore::ResourceHandle::clearAuthentication): 125 (WebCore::ResourceHandle::shouldContentSniffURL): 126 * platform/network/ResourceHandle.h: Ditto. 127 * platform/network/ResourceHandleClient.cpp: Ditto. 128 * platform/network/ResourceHandleClient.h: Ditto. 129 * platform/network/ResourceHandleInternal.h: Ditto. 130 (WebCore::ResourceHandleInternal::ResourceHandleInternal): 131 * platform/network/ResourceRequestBase.cpp: Ditto. 132 * platform/network/cf/AuthenticationCF.h: Ditto. 133 * platform/network/cf/CookieStorageCFNet.cpp: Ditto. 134 * platform/network/cf/CredentialStorageCFNet.cpp: Ditto. 135 * platform/network/cf/FormDataStreamCFNet.cpp: Ditto. 136 * platform/network/cf/NetworkStorageSessionCFNet.cpp: Ditto. 137 (WebCore::NetworkStorageSession::switchToNewTestingSession): 138 (WebCore::NetworkStorageSession::createPrivateBrowsingSession): 139 * platform/network/cf/ResourceError.h: Ditto. 140 * platform/network/cf/ResourceHandleCFNet.cpp: Ditto. 141 (WebCore::ResourceHandle::createCFURLConnection): 142 * platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp: 143 * platform/network/cf/ResourceRequest.h: Ditto. 144 (WebCore::ResourceRequest::ResourceRequest): 145 * platform/network/cf/ResourceRequestCFNet.cpp: Ditto. 146 (WebCore::ResourceRequest::doUpdatePlatformRequest): 147 (WebCore::ResourceRequest::doUpdatePlatformHTTPBody): 148 (WebCore::ResourceRequest::setStorageSession): 149 * platform/network/cf/ResourceResponse.h: Ditto. 150 * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp: 151 (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse): 152 * platform/network/mac/ResourceResponseMac.mm: Ditto. 153 * platform/posix/FileSystemPOSIX.cpp: Changed PLATFORM(MAC) to OS(DARWIN) && 154 !PLATFORM(EFL) && !PLATFORM(GTK). 155 * platform/text/TextBoundaries.cpp: Changed PLATFORM(MAC) to PLATFORM(COCOA). 156 1 157 2014-02-07 Ryosuke Niwa <rniwa@webkit.org> 2 158 -
trunk/Source/WebCore/Configurations/WebCore.xcconfig
r162477 r163657 113 113 114 114 EXCLUDED_SOURCE_FILE_NAMES = $(EXCLUDED_SOURCE_FILE_NAMES_$(PLATFORM_NAME)); 115 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = *.tiff *Cursor.png AccessibilityObjectMac.mm AXObjectCacheMac.mm ClipboardMac.mm ColorMac.mm Cursor.cpp CursorMac.mm EditorMac.mm EventHandlerMac.mm EventLoopMac.mm GeolocationServiceMac.mm GraphicsContext3DOpenGLES.cpp IconDatabase.cpp IconMac.mm K eyEventMac.mm KillRingMac.mm LocalCurrentGraphicsContext.mm MIMETypeRegistryMac.mm MediaPlayerPrivateQTKit.mm NSScrollerImpDetails.mm NetworkStateNotifierMac.cpp PasteboardMac.mm PlatformEventFactoryMac.mm PlatformMouseEventMac.mm PlatformPasteboardMac.mm PlatformScreenMac.mm PlatformSpeechSynthesizerMac.mm PluginMainThreadScheduler.cpp RunLoopMac.mm SSLKeyGeneratorMac.cpp ScrollingCoordinatorMac.mm ScrollingStateScrollingNodeMac.mm ScrollingTreeScrollingNodeMac.mm ScrollViewMac.mm ScrollbarThemeMac.mm SharedTimerMac.mm SoundMac.mm SystemTimeMac.cpp ThemeMac.mm ThreadCheck.mm UserAgentMac.mm WebAccessibilityObjectWrapperMac.mm WebCoreSystemInterface.mm WebCoreURLResponse.mm WebCoreView.m WebFontCache.mm WebVideoFullscreenController.mm WebVideoFullscreenHUDWindowController.mm WebWindowAnimation.mm WheelEventMac.mm WidgetMac.mm mac/LayerPool.mm DisplayRefreshMonitorMac.cpp;115 EXCLUDED_SOURCE_FILE_NAMES_iphoneos = *.tiff *Cursor.png AccessibilityObjectMac.mm AXObjectCacheMac.mm ClipboardMac.mm ColorMac.mm Cursor.cpp CursorMac.mm EditorMac.mm EventHandlerMac.mm EventLoopMac.mm GeolocationServiceMac.mm GraphicsContext3DOpenGLES.cpp IconDatabase.cpp IconMac.mm KillRingMac.mm LocalCurrentGraphicsContext.mm MIMETypeRegistryMac.mm MediaPlayerPrivateQTKit.mm NSScrollerImpDetails.mm NetworkStateNotifierMac.cpp PasteboardMac.mm PlatformEventFactoryMac.mm PlatformMouseEventMac.mm PlatformPasteboardMac.mm PlatformScreenMac.mm PlatformSpeechSynthesizerMac.mm PluginMainThreadScheduler.cpp RunLoopMac.mm SSLKeyGeneratorMac.cpp ScrollingCoordinatorMac.mm ScrollingStateScrollingNodeMac.mm ScrollingTreeScrollingNodeMac.mm ScrollViewMac.mm ScrollbarThemeMac.mm SharedTimerMac.mm SoundMac.mm SystemTimeMac.cpp ThemeMac.mm ThreadCheck.mm UserAgentMac.mm WebAccessibilityObjectWrapperMac.mm WebCoreSystemInterface.mm WebCoreURLResponse.mm WebCoreView.m WebFontCache.mm WebVideoFullscreenController.mm WebVideoFullscreenHUDWindowController.mm WebWindowAnimation.mm WidgetMac.mm mac/LayerPool.mm DisplayRefreshMonitorMac.cpp; 116 116 EXCLUDED_SOURCE_FILE_NAMES_iphonesimulator = $(EXCLUDED_SOURCE_FILE_NAMES_iphoneos); 117 117 EXCLUDED_SOURCE_FILE_NAMES_macosx = *IOS.h *IOS.cpp *IOS.mm JSTouch* JSGesture* DOMGesture* DOMTouch* KillRingNone.cpp WAKAppKitStubs.h WAKClipView.h WAKResponder.h WAKScrollView.h WAKView.h WAKViewPrivate.h WAKWindow.h WKContentObservation.h WKGraphics.h WKTypes.h WKUtilities.h WKView.h WKViewPrivate.h WebCoreThread.h WebCoreThreadMessage.h WebCoreThreadRun.h WebCoreThreadSystemInterface.h; -
trunk/Source/WebCore/platform/ContentFilter.h
r163486 r163657 37 37 #endif 38 38 39 #if PLATFORM( MAC)39 #if PLATFORM(COCOA) 40 40 OBJC_CLASS NSMutableData; 41 41 OBJC_CLASS WebFilterEvaluator; … … 75 75 explicit ContentFilter(const ResourceResponse&); 76 76 77 #if PLATFORM( MAC)77 #if PLATFORM(COCOA) 78 78 RetainPtr<WebFilterEvaluator> m_platformContentFilter; 79 79 RetainPtr<NSData> m_replacementData; -
trunk/Source/WebCore/platform/ContextMenu.h
r149186 r163657 35 35 #include <wtf/text/WTFString.h> 36 36 37 #if PLATFORM( MAC)37 #if PLATFORM(COCOA) 38 38 #include <wtf/RetainPtr.h> 39 39 #elif PLATFORM(WIN) … … 88 88 Vector<ContextMenuItem> m_items; 89 89 #else 90 #if PLATFORM( MAC)90 #if PLATFORM(COCOA) 91 91 // Keep this in sync with the PlatformMenuDescription typedef 92 92 RetainPtr<NSMutableArray> m_platformDescription; -
trunk/Source/WebCore/platform/ContextMenuItem.h
r156795 r163657 34 34 #include <wtf/text/WTFString.h> 35 35 36 #if PLATFORM( MAC)36 #if PLATFORM(COCOA) 37 37 #include <wtf/RetainPtr.h> 38 38 OBJC_CLASS NSMenuItem; … … 138 138 ContextMenuItemTagTextDirectionLeftToRight, 139 139 ContextMenuItemTagTextDirectionRightToLeft, 140 #if PLATFORM( MAC)140 #if PLATFORM(COCOA) 141 141 ContextMenuItemTagCorrectSpellingAutomatically, 142 142 ContextMenuItemTagSubstitutionsMenu, … … 178 178 179 179 #if ENABLE(CONTEXT_MENUS) 180 #if PLATFORM( MAC)180 #if PLATFORM(COCOA) 181 181 typedef NSMenuItem* PlatformMenuItemDescription; 182 182 #elif PLATFORM(GTK) … … 248 248 Vector<ContextMenuItem> m_subMenuItems; 249 249 #else 250 #if PLATFORM( MAC)250 #if PLATFORM(COCOA) 251 251 RetainPtr<NSMenuItem> m_platformDescription; 252 252 #else -
trunk/Source/WebCore/platform/Cursor.cpp
r161662 r163657 177 177 } 178 178 179 #if !PLATFORM( MAC)179 #if !PLATFORM(COCOA) 180 180 181 181 PlatformCursor Cursor::platformCursor() const -
trunk/Source/WebCore/platform/Cursor.h
r162451 r163657 37 37 #include <wtf/PassRefPtr.h> 38 38 #include <wtf/RefCounted.h> 39 #elif PLATFORM( MAC)39 #elif PLATFORM(COCOA) 40 40 #include <wtf/RetainPtr.h> 41 41 #elif PLATFORM(GTK) -
trunk/Source/WebCore/platform/DragData.cpp
r156692 r163657 32 32 namespace WebCore { 33 33 34 #if !PLATFORM( MAC)34 #if !PLATFORM(COCOA) 35 35 DragData::DragData(DragDataRef data, const IntPoint& clientPosition, const IntPoint& globalPosition, 36 36 DragOperation sourceOperationMask, DragApplicationFlags flags) -
trunk/Source/WebCore/platform/DragImage.cpp
r161825 r163657 202 202 } 203 203 204 #if !PLATFORM( MAC) && (!PLATFORM(WIN) || OS(WINCE))204 #if !PLATFORM(COCOA) && (!PLATFORM(WIN) || OS(WINCE)) 205 205 DragImageRef createDragImageForLink(URL&, const String&, FontRenderingMode) 206 206 { -
trunk/Source/WebCore/platform/Language.cpp
r149255 r163657 31 31 #include <wtf/text/WTFString.h> 32 32 33 #if PLATFORM(MAC)33 #if USE(CF) && !PLATFORM(WIN) 34 34 #include <CoreFoundation/CoreFoundation.h> 35 35 #endif … … 148 148 String displayNameForLanguageLocale(const String& localeName) 149 149 { 150 #if PLATFORM(MAC)150 #if USE(CF) && !PLATFORM(WIN) 151 151 if (!localeName.isNull() && !localeName.isEmpty()) { 152 152 RetainPtr<CFLocaleRef> currentLocale = adoptCF(CFLocaleCopyCurrent()); -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r162629 r163657 38 38 #endif 39 39 40 #if PLATFORM( MAC)40 #if PLATFORM(COCOA) 41 41 #include "WebCoreSystemInterface.h" 42 42 #endif … … 134 134 } 135 135 136 #if PLATFORM( MAC)136 #if PLATFORM(COCOA) 137 137 String copyImageUnknownFileLabel() 138 138 { … … 227 227 } 228 228 229 #if PLATFORM( MAC)229 #if PLATFORM(COCOA) 230 230 String contextMenuItemTagSearchInSpotlight() 231 231 { … … 236 236 String contextMenuItemTagSearchWeb() 237 237 { 238 #if PLATFORM( MAC)238 #if PLATFORM(COCOA) 239 239 RetainPtr<CFStringRef> searchProviderName = adoptCF(wkCopyDefaultSearchProviderDisplayName()); 240 240 return formatLocalizedString(WEB_UI_STRING("Search with %@", "Search with search provider context menu item with provider name inserted"), searchProviderName.get()); … … 296 296 } 297 297 298 #if PLATFORM( MAC)298 #if PLATFORM(COCOA) 299 299 String contextMenuItemTagShowFonts() 300 300 { … … 323 323 } 324 324 325 #if PLATFORM( MAC)325 #if PLATFORM(COCOA) 326 326 String contextMenuItemTagStyles() 327 327 { … … 375 375 } 376 376 377 #if PLATFORM( MAC)377 #if PLATFORM(COCOA) 378 378 379 379 String contextMenuItemTagCorrectSpellingAutomatically() … … 445 445 } 446 446 447 #endif // PLATFORM( MAC)447 #endif // PLATFORM(COCOA) 448 448 449 449 String contextMenuItemTagOpenVideoInNewWindow() … … 654 654 #endif // !PLATFORM(IOS) 655 655 656 #if PLATFORM( MAC) || PLATFORM(IOS)656 #if PLATFORM(COCOA) 657 657 String AXARIAContentGroupText(const String& ariaType) 658 658 { … … 701 701 return String(); 702 702 } 703 #endif // PLATFORM( MAC) || PLATFORM(IOS)703 #endif // PLATFORM(COCOA) 704 704 705 705 String missingPluginText() … … 747 747 #endif 748 748 749 #if PLATFORM( MAC)749 #if PLATFORM(COCOA) 750 750 String builtInPDFPluginName() 751 751 { -
trunk/Source/WebCore/platform/LocalizedStrings.h
r162629 r163657 44 44 String defaultDetailsSummaryText(); 45 45 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 String copyImageUnknownFileLabel(); 48 48 #endif … … 106 106 String contextMenuItemTagLeftToRight(); 107 107 String contextMenuItemTagRightToLeft(); 108 #if PLATFORM( MAC)108 #if PLATFORM(COCOA) 109 109 String contextMenuItemTagSearchInSpotlight(); 110 110 String contextMenuItemTagShowFonts(); … … 180 180 String weekFormatInLDML(); 181 181 #endif 182 #if PLATFORM( MAC) || PLATFORM(IOS)182 #if PLATFORM(COCOA) 183 183 String AXARIAContentGroupText(const String& ariaType); 184 184 #endif … … 197 197 #endif 198 198 199 #if PLATFORM( MAC)199 #if PLATFORM(COCOA) 200 200 String builtInPDFPluginName(); 201 201 String pdfDocumentTypeDescription(); … … 250 250 String textTrackAutomaticMenuItemText(); 251 251 String textTrackNoLabelText(); 252 #if PLATFORM( MAC) || PLATFORM(WIN)252 #if PLATFORM(COCOA) || PLATFORM(WIN) 253 253 String textTrackCountryAndLanguageMenuItemText(const String& title, const String& country, const String& language); 254 254 String textTrackLanguageMenuItemText(const String& title, const String& language); -
trunk/Source/WebCore/platform/MIMETypeRegistry.cpp
r163440 r163657 287 287 288 288 #if USE(CG) 289 #if PLATFORM( MAC)289 #if PLATFORM(COCOA) 290 290 RetainPtr<CFArrayRef> supportedTypes = adoptCF(CGImageDestinationCopyTypeIdentifiers()); 291 291 CFIndex count = CFArrayGetCount(supportedTypes.get()); -
trunk/Source/WebCore/platform/PasteboardStrategy.h
r156588 r163657 52 52 virtual long changeCount() = 0; 53 53 #endif // PLATFORM(IOS) 54 #if PLATFORM( MAC)54 #if PLATFORM(COCOA) 55 55 virtual void getTypes(Vector<String>& types, const String& pasteboardName) = 0; 56 56 virtual PassRefPtr<SharedBuffer> bufferForType(const String& pasteboardType, const String& pasteboardName) = 0; -
trunk/Source/WebCore/platform/PlatformKeyboardEvent.h
r161680 r163657 32 32 #include <wtf/text/WTFString.h> 33 33 34 #if PLATFORM( MAC)34 #if PLATFORM(COCOA) 35 35 #include <wtf/RetainPtr.h> 36 36 OBJC_CLASS NSEvent; … … 38 38 39 39 #if PLATFORM(IOS) 40 #ifdef __OBJC__ 41 @class WebEvent; 42 #else 43 class WebEvent; 44 #endif 40 OBCJ_CLASS WebEvent; 45 41 #endif 46 42 … … 120 116 static void getCurrentModifierState(bool& shiftKey, bool& ctrlKey, bool& altKey, bool& metaKey); 121 117 122 #if PLATFORM( MAC)118 #if PLATFORM(COCOA) 123 119 #if !PLATFORM(IOS) 124 120 NSEvent* macEvent() const { return m_macEvent.get(); } … … 159 155 bool m_isSystemKey; 160 156 161 #if PLATFORM( MAC)157 #if PLATFORM(COCOA) 162 158 #if !PLATFORM(IOS) 163 159 RetainPtr<NSEvent> m_macEvent; -
trunk/Source/WebCore/platform/PlatformMenuDescription.h
r156795 r163657 27 27 #define PlatformMenuDescription_h 28 28 29 #if PLATFORM( MAC)29 #if PLATFORM(COCOA) 30 30 OBJC_CLASS NSMutableArray; 31 31 #elif PLATFORM(WIN) … … 38 38 39 39 #if !USE(CROSS_PLATFORM_CONTEXT_MENUS) 40 #if PLATFORM( MAC)40 #if PLATFORM(COCOA) 41 41 typedef NSMutableArray* PlatformMenuDescription; 42 42 #elif PLATFORM(GTK) -
trunk/Source/WebCore/platform/PlatformSpeechSynthesizer.h
r157653 r163657 33 33 #include <wtf/Vector.h> 34 34 35 #if PLATFORM( MAC)35 #if PLATFORM(COCOA) 36 36 #include <wtf/RetainPtr.h> 37 37 OBJC_CLASS WebSpeechSynthesisWrapper; … … 87 87 PlatformSpeechSynthesizerClient* m_speechSynthesizerClient; 88 88 89 #if PLATFORM( MAC)89 #if PLATFORM(COCOA) 90 90 RetainPtr<WebSpeechSynthesisWrapper> m_platformSpeechWrapper; 91 91 #endif -
trunk/Source/WebCore/platform/PlatformWheelEvent.h
r163338 r163657 54 54 }; 55 55 56 #if PLATFORM( MAC)56 #if PLATFORM(COCOA) 57 57 enum PlatformWheelEventPhase { 58 58 PlatformWheelEventPhaseNone = 0, … … 76 76 , m_granularity(ScrollByPixelWheelEvent) 77 77 , m_directionInvertedFromDevice(false) 78 #if PLATFORM( MAC)78 #if PLATFORM(COCOA) 79 79 , m_hasPreciseScrollingDeltas(false) 80 80 , m_phase(PlatformWheelEventPhaseNone) … … 97 97 , m_granularity(granularity) 98 98 , m_directionInvertedFromDevice(false) 99 #if PLATFORM( MAC)99 #if PLATFORM(COCOA) 100 100 , m_hasPreciseScrollingDeltas(false) 101 101 , m_phase(PlatformWheelEventPhaseNone) … … 155 155 #endif 156 156 157 #if PLATFORM( MAC)157 #if PLATFORM(COCOA) 158 158 bool hasPreciseScrollingDeltas() const { return m_hasPreciseScrollingDeltas; } 159 159 void setHasPreciseScrollingDeltas(bool b) { m_hasPreciseScrollingDeltas = b; } … … 186 186 PlatformWheelEventGranularity m_granularity; 187 187 bool m_directionInvertedFromDevice; 188 #if PLATFORM( MAC)188 #if PLATFORM(COCOA) 189 189 bool m_hasPreciseScrollingDeltas; 190 190 PlatformWheelEventPhase m_phase; -
trunk/Source/WebCore/platform/SchemeRegistry.cpp
r163121 r163657 37 37 if (localSchemes.isEmpty()) { 38 38 localSchemes.add("file"); 39 #if PLATFORM( MAC)39 #if PLATFORM(COCOA) 40 40 localSchemes.add("applewebdata"); 41 41 #endif … … 123 123 if (scheme == "file") 124 124 return; 125 #if PLATFORM( MAC)125 #if PLATFORM(COCOA) 126 126 if (scheme == "applewebdata") 127 127 return; … … 326 326 bool SchemeRegistry::shouldCacheResponsesFromURLSchemeIndefinitely(const String& scheme) 327 327 { 328 #if PLATFORM( MAC)328 #if PLATFORM(COCOA) 329 329 if (equalIgnoringCase(scheme, "applewebdata")) 330 330 return true; -
trunk/Source/WebCore/platform/ScrollAnimator.cpp
r162985 r163657 82 82 bool ScrollAnimator::handleWheelEvent(const PlatformWheelEvent& e) 83 83 { 84 #if PLATFORM( MAC)84 #if PLATFORM(COCOA) 85 85 // Events in the PlatformWheelEventPhaseMayBegin phase have no deltas, and therefore never passes through the scroll handling logic below. 86 86 // This causes us to return with an 'unhandled' return state, even though this event was successfully processed. -
trunk/Source/WebCore/platform/ScrollAnimator.h
r161589 r163657 68 68 #endif 69 69 70 #if PLATFORM( MAC)70 #if PLATFORM(COCOA) 71 71 virtual void handleWheelEventPhase(PlatformWheelEventPhase) { } 72 72 #endif -
trunk/Source/WebCore/platform/ScrollView.cpp
r163079 r163657 1398 1398 } 1399 1399 1400 #if !PLATFORM( MAC)1400 #if !PLATFORM(COCOA) 1401 1401 1402 1402 void ScrollView::platformAddChild(Widget*) … … 1410 1410 #endif 1411 1411 1412 #if !PLATFORM( MAC)1412 #if !PLATFORM(COCOA) 1413 1413 1414 1414 void ScrollView::platformSetScrollbarsSuppressed(bool) … … 1426 1426 #endif 1427 1427 1428 #if !PLATFORM( MAC)1428 #if !PLATFORM(COCOA) 1429 1429 1430 1430 void ScrollView::platformSetScrollbarModes() -
trunk/Source/WebCore/platform/ScrollView.h
r162663 r163657 54 54 #endif // PLATFORM(IOS) 55 55 56 #if PLATFORM( MAC) && defined __OBJC__56 #if PLATFORM(COCOA) && defined __OBJC__ 57 57 @protocol WebCoreFrameScrollView; 58 58 #endif … … 447 447 void updateOverhangAreas(); 448 448 449 #if PLATFORM( MAC) && defined __OBJC__449 #if PLATFORM(COCOA) && defined __OBJC__ 450 450 public: 451 451 NSView* documentView() const; -
trunk/Source/WebCore/platform/ScrollbarThemeComposite.h
r157253 r163657 29 29 #include "ScrollbarTheme.h" 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 typedef id ScrollbarPainter; 33 33 #else -
trunk/Source/WebCore/platform/SharedBuffer.h
r163444 r163657 43 43 #endif 44 44 45 #if PLATFORM(MAC)45 #if USE(FOUNDATION) 46 46 OBJC_CLASS NSData; 47 47 #endif … … 68 68 ~SharedBuffer(); 69 69 70 #if PLATFORM(MAC)70 #if USE(FOUNDATION) 71 71 // FIXME: This class exists as a temporary workaround so that code that does: 72 72 // [buffer->createNSData() autorelease] will fail to compile. -
trunk/Source/WebCore/platform/URL.h
r162922 r163657 40 40 #endif 41 41 42 #if PLATFORM(MAC)42 #if USE(FOUNDATION) 43 43 OBJC_CLASS NSURL; 44 44 #endif … … 170 170 #endif 171 171 172 #if PLATFORM(MAC)172 #if USE(FOUNDATION) 173 173 URL(NSURL*); 174 174 operator NSURL*() const; -
trunk/Source/WebCore/platform/Widget.cpp
r159023 r163657 142 142 } 143 143 144 #if !PLATFORM( MAC)144 #if !PLATFORM(COCOA) 145 145 IntRect Widget::convertFromRootToContainingWindow(const Widget*, const IntRect& rect) 146 146 { -
trunk/Source/WebCore/platform/Widget.h
r162451 r163657 39 39 #include <wtf/RefCounted.h> 40 40 41 #if PLATFORM( MAC)41 #if PLATFORM(COCOA) 42 42 #include <wtf/RetainPtr.h> 43 43 #endif 44 44 45 #if PLATFORM( MAC)45 #if PLATFORM(COCOA) 46 46 OBJC_CLASS NSView; 47 47 OBJC_CLASS NSWindow; … … 185 185 virtual bool transformsAffectFrameRect() { return true; } 186 186 187 #if PLATFORM( MAC)187 #if PLATFORM(COCOA) 188 188 NSView* getOuterView() const; 189 189 … … 221 221 private: 222 222 ScrollView* m_parent; 223 #if !PLATFORM( MAC)223 #if !PLATFORM(COCOA) 224 224 PlatformWidget m_widget; 225 225 #else … … 239 239 TYPE_CASTS_BASE(ToValueTypeName, Widget, object, object->predicate, object.predicate) 240 240 241 #if !PLATFORM( MAC)241 #if !PLATFORM(COCOA) 242 242 243 243 inline PlatformWidget Widget::platformWidget() const -
trunk/Source/WebCore/platform/audio/AudioSession.cpp
r150651 r163657 62 62 } 63 63 64 #if !PLATFORM( IOS) && !PLATFORM(MAC)64 #if !PLATFORM(COCOA) 65 65 class AudioSessionPrivate { 66 66 }; … … 125 125 notImplemented(); 126 126 } 127 #endif // !PLATFORM( IOS)127 #endif // !PLATFORM(COCOA) 128 128 129 129 } -
trunk/Source/WebCore/platform/audio/HRTFElevation.cpp
r162451 r163657 59 59 const float ResponseSampleRate = 44100; 60 60 61 #if PLATFORM( MAC) || USE(WEBAUDIO_GSTREAMER)61 #if PLATFORM(COCOA) || USE(WEBAUDIO_GSTREAMER) 62 62 #define USE_CONCATENATED_IMPULSE_RESPONSES 63 63 #endif -
trunk/Source/WebCore/platform/audio/MediaSessionManager.cpp
r163390 r163657 177 177 } 178 178 179 #if !PLATFORM( MAC)179 #if !PLATFORM(COCOA) 180 180 void MediaSessionManager::updateSessionState() 181 181 { -
trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
r162368 r163657 165 165 } 166 166 167 #endif // USE(AUDIO_SESSION) && PLATFORM(MAC) 167 #endif // USE(AUDIO_SESSION) && PLATFORM(MAC) && !PLATFORM(IOS) -
trunk/Source/WebCore/platform/audio/mac/MediaSessionManagerMac.cpp
r161694 r163657 27 27 #include "MediaSessionManager.h" 28 28 29 #if USE(AUDIO_SESSION) && PLATFORM(MAC)29 #if USE(AUDIO_SESSION) 30 30 31 31 #include "AudioSession.h" … … 37 37 static const size_t kWebAudioBufferSize = 128; 38 38 39 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 109039 #if PLATFORM(IOS) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 40 40 static const size_t kLowPowerVideoBufferSize = 4096; 41 41 #endif … … 55 55 } 56 56 57 #endif // USE(AUDIO_SESSION) && PLATFORM(MAC)57 #endif // USE(AUDIO_SESSION) -
trunk/Source/WebCore/platform/cf/SharedBufferCF.cpp
r161589 r163657 50 50 } 51 51 52 // Mac is a CF platform but has an even more efficient version of this method,53 // so only use this version for non- Mac54 #if ! PLATFORM(MAC)52 // Using Foundation allows for an even more efficient implementation of this function, 53 // so only use this version for non-Foundation. 54 #if !USE(FOUNDATION) 55 55 RetainPtr<CFDataRef> SharedBuffer::createCFData() 56 56 { -
trunk/Source/WebCore/platform/cf/URLCF.cpp
r161589 r163657 51 51 } 52 52 53 #if ! PLATFORM(MAC)53 #if !USE(FOUNDATION) 54 54 RetainPtr<CFURLRef> URL::createCFURL() const 55 55 { -
trunk/Source/WebCore/platform/graphics/BitmapImage.h
r162827 r163657 35 35 #include "IntSize.h" 36 36 37 #if PLATFORM(MAC)37 #if USE(CG) || USE(APPKIT) 38 38 #include <wtf/RetainPtr.h> 39 39 #endif … … 164 164 #endif 165 165 166 #if PLATFORM( MAC)166 #if PLATFORM(COCOA) 167 167 virtual CFDataRef getTIFFRepresentation() override; 168 168 #endif -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.cpp
r161680 r163657 61 61 , m_displayID(displayID) 62 62 , m_clientsToBeNotified(nullptr) 63 #if PLATFORM( MAC)63 #if PLATFORM(COCOA) 64 64 , m_displayLink(0) 65 65 #endif -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h
r161680 r163657 36 36 #include <wtf/Threading.h> 37 37 38 #if PLATFORM( MAC)38 #if PLATFORM(COCOA) 39 39 typedef struct __CVDisplayLink *CVDisplayLinkRef; 40 40 #endif -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r163231 r163657 137 137 #endif 138 138 139 #if !PLATFORM(IOS) 140 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 139 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 141 140 FloatPoint(const NSPoint&); 142 141 operator NSPoint() const; 143 142 #endif 144 #endif // !PLATFORM(IOS)145 143 146 144 FloatPoint matrixTransform(const TransformationMatrix&) const; -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r161680 r163657 172 172 #endif 173 173 174 #if !PLATFORM(IOS) 175 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 174 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 176 175 FloatRect(const NSRect&); 177 176 operator NSRect() const; 178 177 #endif 179 #endif // !PLATFORM(IOS)180 178 181 179 #if USE(CAIRO) -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r161680 r163657 114 114 #endif 115 115 116 #if !PLATFORM(IOS) 117 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) 116 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 118 117 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy 119 118 operator NSSize() const; 120 119 #endif 121 #endif // !PLATFORM(IOS)122 120 123 121 void dump(PrintStream& out) const; -
trunk/Source/WebCore/platform/graphics/Font.cpp
r163655 r163657 410 410 } 411 411 412 #if !PLATFORM( MAC)412 #if !PLATFORM(COCOA) 413 413 PassOwnPtr<TextLayout> Font::createLayout(RenderText*, float, bool) const 414 414 { -
trunk/Source/WebCore/platform/graphics/Font.h
r161608 r163657 158 158 return glyphDataAndPageForCharacter(c, mirror, variant).first; 159 159 } 160 #if PLATFORM( MAC)160 #if PLATFORM(COCOA) 161 161 const SimpleFontData* fontDataForCombiningCharacterSequence(const UChar*, size_t length, FontDataVariant) const; 162 162 #endif -
trunk/Source/WebCore/platform/graphics/FontCache.cpp
r161598 r163657 574 574 familyIndex = cAllFamiliesScanned; 575 575 576 #if PLATFORM( MAC)576 #if PLATFORM(COCOA) 577 577 if (!result) { 578 578 // We didn't find a font. Try to find a similar font using our own specific knowledge about our platform. -
trunk/Source/WebCore/platform/graphics/FontCache.h
r163310 r163657 186 186 #endif 187 187 PassOwnPtr<FontPlatformData> createFontPlatformData(const FontDescription&, const AtomicString& family); 188 #if PLATFORM( MAC)188 #if PLATFORM(COCOA) 189 189 PassRefPtr<SimpleFontData> similarFontPlatformData(const FontDescription&); 190 190 #endif … … 195 195 int m_purgePreventCount; 196 196 197 #if PLATFORM( MAC)197 #if PLATFORM(COCOA) 198 198 friend class ComplexTextController; 199 199 #endif 200 200 friend class SimpleFontData; // For getCachedFontData(const FontPlatformData*) 201 201 friend class FontGlyphs; 202 #if PLATFORM(IOS)203 friend class ComplexTextController;204 #endif205 202 }; 206 203 -
trunk/Source/WebCore/platform/graphics/FontGlyphs.cpp
r163310 r163657 307 307 break; 308 308 } 309 #if PLATFORM( MAC)309 #if PLATFORM(COCOA) 310 310 else if (data.fontData->platformData().syntheticOblique()) 311 311 return glyphDataAndPageForCJKCharacterWithoutSyntheticItalic(c, data, page, pageNumber); -
trunk/Source/WebCore/platform/graphics/GlyphPage.h
r163310 r163657 170 170 // Implemented by the platform. 171 171 bool fill(unsigned offset, unsigned length, UChar* characterBuffer, unsigned bufferLength, const SimpleFontData*); 172 #if PLATFORM( MAC)172 #if PLATFORM(COCOA) 173 173 static bool mayUseMixedFontDataWhenFilling(const UChar* characterBuffer, unsigned bufferLength, const SimpleFontData*); 174 174 #else -
trunk/Source/WebCore/platform/graphics/GraphicsContext3D.h
r163079 r163657 51 51 #endif 52 52 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 #if PLATFORM(IOS) 55 55 #include <OpenGLES/ES2/gl.h> … … 485 485 ~GraphicsContext3D(); 486 486 487 #if PLATFORM( MAC)487 #if PLATFORM(COCOA) 488 488 PlatformGraphicsContext3D platformGraphicsContext3D() const { return m_contextObj; } 489 489 Platform3DObject platformTexture() const { return m_compositorTexture; } -
trunk/Source/WebCore/platform/graphics/Image.h
r162827 r163657 41 41 #include <wtf/text/WTFString.h> 42 42 43 #if PLATFORM(MAC)43 #if USE(APPKIT) 44 44 OBJC_CLASS NSImage; 45 45 #endif … … 149 149 #endif 150 150 151 #if PLATFORM( MAC)151 #if PLATFORM(COCOA) 152 152 virtual CFDataRef getTIFFRepresentation() { return 0; } 153 153 #endif -
trunk/Source/WebCore/platform/graphics/IntRect.h
r162273 r163657 194 194 #endif 195 195 196 #if !PLATFORM(IOS) 197 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) 196 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 198 197 operator NSRect() const; 199 198 #endif 200 #endif // !PLATFORM(IOS)201 199 202 200 void dump(PrintStream& out) const; … … 251 249 #endif 252 250 253 #if !PLATFORM(IOS) 254 #if (PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)) 251 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 255 252 IntRect enclosingIntRect(const NSRect&); 256 253 #endif 257 #endif // !PLATFORM(IOS)258 254 259 255 } // namespace WebCore -
trunk/Source/WebCore/platform/graphics/IntSize.h
r162668 r163657 130 130 #endif 131 131 132 #if !PLATFORM(IOS) 133 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 132 #if PLATFORM(MAC) && !PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 134 133 explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy 135 134 operator NSSize() const; 136 135 #endif 137 #endif // !PLATFORM(IOS)138 136 139 137 #if PLATFORM(WIN) -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r163079 r163657 54 54 #endif 55 55 56 #if PLATFORM( MAC)56 #if PLATFORM(COCOA) 57 57 #if PLATFORM(IOS) 58 58 #include "MediaPlayerPrivateIOS.h" … … 214 214 #if USE(AVFOUNDATION) 215 215 if (Settings::isAVFoundationEnabled()) { 216 #if PLATFORM( MAC)216 #if PLATFORM(COCOA) 217 217 MediaPlayerPrivateAVFoundationObjC::registerMediaEngine(addMediaEngine); 218 218 #if ENABLE(MEDIA_SOURCE) … … 770 770 return IsNotSupported; 771 771 772 #if PLATFORM( MAC)772 #if PLATFORM(COCOA) 773 773 // YouTube will ask if the HTMLMediaElement canPlayType video/webm, then 774 774 // video/x-flv, then finally video/mp4, and will then load a URL of the first type -
trunk/Source/WebCore/platform/graphics/SimpleFontData.cpp
r161589 r163657 237 237 if (!m_derivedFontData->nonSyntheticItalic) { 238 238 FontPlatformData nonSyntheticItalicFontPlatformData(m_platformData); 239 #if PLATFORM( MAC)239 #if PLATFORM(COCOA) 240 240 nonSyntheticItalicFontPlatformData.m_syntheticOblique = false; 241 241 #endif … … 277 277 if (uprightOrientation) 278 278 GlyphPageTreeNode::pruneTreeCustomFontData(uprightOrientation.get()); 279 #if PLATFORM( MAC)279 #if PLATFORM(COCOA) 280 280 if (compositeFontReferences) { 281 281 CFDictionaryRef dictionary = CFDictionaryRef(compositeFontReferences.get()); -
trunk/Source/WebCore/platform/graphics/SimpleFontData.h
r162158 r163657 41 41 #include <wtf/text/StringHash.h> 42 42 43 #if PLATFORM( MAC)43 #if PLATFORM(COCOA) 44 44 #include "WebCoreSystemInterface.h" 45 #endif46 47 #if PLATFORM(MAC)48 45 #include <wtf/RetainPtr.h> 49 46 #endif … … 190 187 bool shouldNotBeUsedForArabic() const { return m_shouldNotBeUsedForArabic; }; 191 188 #endif 192 #if PLATFORM( MAC)189 #if PLATFORM(COCOA) 193 190 CFDictionaryRef getCFStringAttributes(TypesettingFeatures, FontOrientation) const; 194 191 #endif 195 192 196 #if PLATFORM( MAC) || USE(HARFBUZZ)193 #if PLATFORM(COCOA) || USE(HARFBUZZ) 197 194 bool canRenderCombiningCharacterSequence(const UChar*, size_t) const; 198 195 #endif … … 288 285 RefPtr<SimpleFontData> uprightOrientation; 289 286 RefPtr<SimpleFontData> nonSyntheticItalic; 290 #if PLATFORM( MAC)287 #if PLATFORM(COCOA) 291 288 mutable RetainPtr<CFMutableDictionaryRef> compositeFontReferences; 292 289 #endif … … 305 302 #endif 306 303 307 #if PLATFORM( MAC)304 #if PLATFORM(COCOA) 308 305 mutable HashMap<unsigned, RetainPtr<CFDictionaryRef>> m_CFStringAttributes; 309 306 #endif 310 307 311 #if PLATFORM( MAC) || USE(HARFBUZZ)308 #if PLATFORM(COCOA) || USE(HARFBUZZ) 312 309 mutable OwnPtr<HashMap<String, bool>> m_combiningCharacterSequenceSupport; 313 310 #endif -
trunk/Source/WebCore/platform/graphics/TiledBacking.h
r163190 r163657 33 33 34 34 class IntRect; 35 #if PLATFORM( MAC)35 #if PLATFORM(COCOA) 36 36 class PlatformCALayer; 37 37 #endif … … 101 101 virtual void setScrollingModeIndication(ScrollingModeIndication) = 0; 102 102 103 #if PLATFORM( MAC)103 #if PLATFORM(COCOA) 104 104 virtual PlatformCALayer* tiledScrollingIndicatorLayer() = 0; 105 105 #endif -
trunk/Source/WebCore/platform/graphics/ca/GraphicsLayerCA.cpp
r163104 r163657 51 51 #endif 52 52 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 #include "PlatformCALayerMac.h" 55 55 #include "WebCoreSystemInterface.h" … … 316 316 bool GraphicsLayerCA::filtersCanBeComposited(const FilterOperations& filters) 317 317 { 318 #if PLATFORM( MAC)318 #if PLATFORM(COCOA) 319 319 return PlatformCALayerMac::filtersCanBeComposited(filters); 320 320 #elif PLATFORM(WIN) … … 326 326 PassRefPtr<PlatformCALayer> GraphicsLayerCA::createPlatformCALayer(PlatformCALayer::LayerType layerType, PlatformCALayerClient* owner) 327 327 { 328 #if PLATFORM( MAC)328 #if PLATFORM(COCOA) 329 329 return PlatformCALayerMac::create(layerType, owner); 330 330 #elif PLATFORM(WIN) … … 335 335 PassRefPtr<PlatformCALayer> GraphicsLayerCA::createPlatformCALayer(PlatformLayer* platformLayer, PlatformCALayerClient* owner) 336 336 { 337 #if PLATFORM( MAC)337 #if PLATFORM(COCOA) 338 338 return PlatformCALayerMac::create(platformLayer, owner); 339 339 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/graphics/ca/LayerFlushScheduler.h
r163079 r163657 51 51 LayerFlushSchedulerClient* m_client; 52 52 53 #if PLATFORM( MAC)53 #if PLATFORM(COCOA) 54 54 RetainPtr<CFRunLoopObserverRef> m_runLoopObserver; 55 55 static void runLoopObserverCallback(CFRunLoopObserverRef, CFRunLoopActivity, void* context); -
trunk/Source/WebCore/platform/graphics/ca/PlatformCAAnimation.h
r163079 r163657 35 35 #include <wtf/Vector.h> 36 36 37 #if PLATFORM( MAC)37 #if PLATFORM(COCOA) 38 38 OBJC_CLASS CAPropertyAnimation; 39 39 typedef CAPropertyAnimation* PlatformAnimationRef; … … 52 52 public: 53 53 friend class PlatformCALayer; 54 #if PLATFORM( MAC)54 #if PLATFORM(COCOA) 55 55 friend class PlatformCALayerMac; 56 56 #elif PLATFORM(WIN) … … 155 155 AnimationType m_type; 156 156 157 #if PLATFORM( MAC)157 #if PLATFORM(COCOA) 158 158 RetainPtr<CAPropertyAnimation> m_animation; 159 159 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/graphics/ca/PlatformCAFilters.h
r163079 r163657 53 53 static const char* animatedFilterPropertyName(FilterOperation::OperationType, int internalFilterPropertyIndex); 54 54 55 #if PLATFORM( MAC)55 #if PLATFORM(COCOA) 56 56 static RetainPtr<NSValue> filterValueForOperation(const FilterOperation*, int internalFilterPropertyIndex); 57 57 #endif -
trunk/Source/WebCore/platform/graphics/ca/PlatformCALayer.h
r163079 r163657 50 50 51 51 class PlatformCALayer : public RefCounted<PlatformCALayer> { 52 #if PLATFORM( MAC)52 #if PLATFORM(COCOA) 53 53 friend class PlatformCALayerMac; 54 54 #elif PLATFORM(WIN) … … 219 219 virtual PassRefPtr<PlatformCALayer> createCompatibleLayer(LayerType, PlatformCALayerClient*) const = 0; 220 220 221 #if PLATFORM( MAC)221 #if PLATFORM(COCOA) 222 222 virtual void enumerateRectsBeingDrawn(CGContextRef, void (^block)(CGRect)) = 0; 223 223 #endif -
trunk/Source/WebCore/platform/graphics/cg/BitmapImageCG.cpp
r162828 r163657 43 43 #endif 44 44 45 #if PLATFORM( MAC)45 #if PLATFORM(COCOA) 46 46 #include "WebCoreSystemInterface.h" 47 47 #endif -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextCG.cpp
r163387 r163657 44 44 #include <wtf/RetainPtr.h> 45 45 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 #include "WebCoreSystemInterface.h" 48 48 #endif … … 1616 1616 { 1617 1617 UNUSED_PARAM(allowsFontSmoothing); 1618 #if PLATFORM( MAC)1618 #if PLATFORM(COCOA) 1619 1619 CGContextRef context = platformContext(); 1620 1620 CGContextSetAllowsFontSmoothing(context, allowsFontSmoothing); -
trunk/Source/WebCore/platform/graphics/cg/GraphicsContextPlatformPrivateCG.h
r147862 r163657 52 52 } 53 53 54 #if PLATFORM( MAC)54 #if PLATFORM(COCOA) 55 55 // These methods do nothing on Mac. 56 56 void save() {} -
trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
r162827 r163657 44 44 #include <wtf/text/WTFString.h> 45 45 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 #include "WebCoreSystemInterface.h" 48 48 #endif -
trunk/Source/WebCore/platform/graphics/cg/ImageBufferDataCG.h
r161589 r163657 31 31 #include <wtf/RetainPtr.h> 32 32 33 #if PLATFORM( MAC) && USE(CA)33 #if PLATFORM(COCOA) && USE(CA) 34 34 #if !PLATFORM(IOS_SIMULATOR) 35 35 #define WTF_USE_IOSURFACE_CANVAS_BACKING_STORE 1 -
trunk/Source/WebCore/platform/graphics/cg/ImageCG.cpp
r162827 r163657 36 36 #include <wtf/RetainPtr.h> 37 37 38 #if PLATFORM( MAC)38 #if PLATFORM(COCOA) 39 39 #include "WebCoreSystemInterface.h" 40 40 #endif -
trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp
r162778 r163657 58 58 #endif 59 59 60 #if !PLATFORM( MAC)60 #if !PLATFORM(COCOA) 61 61 size_t sharedBufferGetBytesAtPosition(void* info, void* buffer, off_t position, size_t count) 62 62 { … … 152 152 void ImageSource::setData(SharedBuffer* data, bool allDataReceived) 153 153 { 154 #if PLATFORM( MAC)154 #if PLATFORM(COCOA) 155 155 if (!m_decoder) 156 156 m_decoder = CGImageSourceCreateIncremental(0); -
trunk/Source/WebCore/platform/graphics/cg/ImageSourceCG.h
r95901 r163657 36 36 String MIMETypeForImageSourceType(const String& type); 37 37 38 #if !PLATFORM( MAC)38 #if !PLATFORM(COCOA) 39 39 size_t sharedBufferGetBytesAtPosition(void* info, void* buffer, off_t position, size_t count); 40 40 #endif -
trunk/Source/WebCore/platform/graphics/cg/PathCG.cpp
r162827 r163657 40 40 #include <wtf/text/WTFString.h> 41 41 42 #if PLATFORM( MAC)42 #if PLATFORM(COCOA) 43 43 #include "WebCoreSystemInterface.h" 44 44 #endif … … 256 256 void Path::platformAddPathForRoundedRect(const FloatRect& rect, const FloatSize& topLeftRadius, const FloatSize& topRightRadius, const FloatSize& bottomLeftRadius, const FloatSize& bottomRightRadius) 257 257 { 258 #if PLATFORM( MAC)258 #if PLATFORM(COCOA) 259 259 bool equalWidths = (topLeftRadius.width() == topRightRadius.width() && topRightRadius.width() == bottomLeftRadius.width() && bottomLeftRadius.width() == bottomRightRadius.width()); 260 260 bool equalHeights = (topLeftRadius.height() == bottomLeftRadius.height() && bottomLeftRadius.height() == topRightRadius.height() && topRightRadius.height() == bottomRightRadius.height()); -
trunk/Source/WebCore/platform/graphics/cg/PatternCG.cpp
r162827 r163657 34 34 #include <wtf/MainThread.h> 35 35 36 #if PLATFORM( MAC)36 #if PLATFORM(COCOA) 37 37 #include "WebCoreSystemInterface.h" 38 38 #endif -
trunk/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h
r163079 r163657 40 40 #include <wtf/OwnPtr.h> 41 41 #include <wtf/PassOwnPtr.h> 42 #if PLATFORM( MAC)42 #if PLATFORM(COCOA) 43 43 #include <wtf/RetainPtr.h> 44 44 #endif … … 162 162 bool m_contentsChanged; 163 163 164 #if PLATFORM( MAC)164 #if PLATFORM(COCOA) 165 165 RetainPtr<WebGLLayer> m_platformLayer; 166 166 #endif -
trunk/Source/WebCore/platform/graphics/mac/MediaPlayerPrivateQTKit.mm
r163079 r163657 433 433 setSize(m_player->size()); 434 434 NSView* parentView = 0; 435 #if PLATFORM(MAC)436 435 parentView = m_player->frameView()->documentView(); 437 436 [parentView addSubview:m_qtMovieView.get()]; 438 #endif439 437 [m_qtMovieView.get() setDelegate:m_objcObserver.get()]; 440 438 [m_objcObserver.get() setView:m_qtMovieView.get()]; -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r162451 r163657 205 205 206 206 if (name == "GL_EXT_draw_buffers") { 207 #if PLATFORM(MAC) 207 #if PLATFORM(MAC) && !PLATFORM(IOS) 208 208 return m_availableExtensions.contains("GL_ARB_draw_buffers"); 209 209 #else -
trunk/Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp
r162565 r163657 352 352 } 353 353 354 #if !PLATFORM( MAC)354 #if !PLATFORM(COCOA) 355 355 void GraphicsContext3D::drawArraysInstanced(GC3Denum mode, GC3Dint first, GC3Dsizei count, GC3Dsizei primcount) 356 356 { -
trunk/Source/WebCore/platform/mac/KeyEventMac.mm
r103643 r163657 27 27 #import "PlatformKeyboardEvent.h" 28 28 29 #if PLATFORM(MAC) 29 #if PLATFORM(MAC) && !PLATFORM(IOS) 30 30 31 31 #import "KeyEventCocoa.h" … … 79 79 } // namespace WebCore 80 80 81 #endif // PLATFORM(MAC) 81 #endif // PLATFORM(MAC) && !PLATFORM(IOS) -
trunk/Source/WebCore/platform/mac/PlatformEventFactoryMac.h
r157316 r163657 40 40 }; 41 41 42 #if PLATFORM( MAC) && defined(__OBJC__)42 #if PLATFORM(COCOA) && defined(__OBJC__) 43 43 // FIXME: This doesn't really belong here. 44 44 IntPoint globalPoint(const NSPoint& windowPoint, NSWindow *); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.h
r162166 r163657 66 66 #endif 67 67 68 #if PLATFORM( MAC) && USE(CA)68 #if PLATFORM(COCOA) && USE(CA) 69 69 #if !PLATFORM(IOS_SIMULATOR) 70 70 typedef struct __IOSurface *IOSurfaceRef; … … 262 262 extern CGSize (*wkCTRunGetInitialAdvance)(CTRunRef); 263 263 264 #if PLATFORM( MAC) && USE(CA) && !PLATFORM(IOS_SIMULATOR)264 #if PLATFORM(COCOA) && USE(CA) && !PLATFORM(IOS_SIMULATOR) 265 265 extern CGContextRef (*wkIOSurfaceContextCreate)(IOSurfaceRef surface, unsigned width, unsigned height, CGColorSpaceRef colorSpace); 266 266 extern CGImageRef (*wkIOSurfaceContextCreateImage)(CGContextRef context); … … 281 281 282 282 #if !PLATFORM(IOS) 283 #if PLATFORM(MAC)284 283 extern NSArray *(*wkSpeechSynthesisGetVoiceIdentifiers)(void); 285 284 extern NSString *(*wkSpeechSynthesisGetDefaultVoiceIdentifierForLocale)(NSLocale *); 286 #endif287 285 288 286 extern void (*wkUnregisterUniqueIdForElement)(id element); -
trunk/Source/WebCore/platform/mac/WebCoreSystemInterface.mm
r162166 r163657 152 152 NSCursor *(*wkCursor)(const char*); 153 153 154 #if PLATFORM(MAC)155 154 NSArray *(*wkSpeechSynthesisGetVoiceIdentifiers)(void); 156 155 NSString *(*wkSpeechSynthesisGetDefaultVoiceIdentifierForLocale)(NSLocale *); 157 #endif158 156 159 157 void (*wkUnregisterUniqueIdForElement)(id element); -
trunk/Source/WebCore/platform/network/Credential.h
r161589 r163657 28 28 #include <wtf/text/WTFString.h> 29 29 30 #define CERTIFICATE_CREDENTIALS_SUPPORTED (PLATFORM( IOS) || PLATFORM(MAC))30 #define CERTIFICATE_CREDENTIALS_SUPPORTED (PLATFORM(COCOA)) 31 31 32 32 #if CERTIFICATE_CREDENTIALS_SUPPORTED -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.h
r161833 r163657 101 101 }; 102 102 103 #if !PLATFORM( MAC) && !PLATFORM(WIN) && !PLATFORM(EFL)103 #if !PLATFORM(COCOA) && !PLATFORM(WIN) && !PLATFORM(EFL) 104 104 105 105 inline NetworkStateNotifier::NetworkStateNotifier() -
trunk/Source/WebCore/platform/network/NetworkStorageSession.h
r161890 r163657 30 30 #include <wtf/text/WTFString.h> 31 31 32 #if PLATFORM( MAC) || USE(CFNETWORK)32 #if PLATFORM(COCOA) || USE(CFNETWORK) 33 33 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; 34 34 typedef struct OpaqueCFHTTPCookieStorage* CFHTTPCookieStorageRef; … … 48 48 static void switchToNewTestingSession(); 49 49 50 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)50 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 51 51 bool isPrivateBrowsingSession() const { return m_isPrivate; } 52 52 #endif 53 53 54 #if PLATFORM( MAC) || USE(CFNETWORK)54 #if PLATFORM(COCOA) || USE(CFNETWORK) 55 55 NetworkStorageSession(RetainPtr<CFURLStorageSessionRef>); 56 56 // May be null, in which case a Foundation default should be used. … … 69 69 70 70 private: 71 #if PLATFORM( MAC) || USE(CFNETWORK)71 #if PLATFORM(COCOA) || USE(CFNETWORK) 72 72 NetworkStorageSession(); 73 73 RetainPtr<CFURLStorageSessionRef> m_platformSession; … … 78 78 #endif 79 79 80 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)80 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 81 81 bool m_isPrivate; 82 82 #endif -
trunk/Source/WebCore/platform/network/NetworkingContext.h
r162920 r163657 25 25 #include <wtf/RetainPtr.h> 26 26 27 #if PLATFORM( MAC)27 #if PLATFORM(COCOA) 28 28 #include <wtf/SchedulePair.h> 29 29 #endif 30 30 31 #if PLATFORM( MAC)31 #if PLATFORM(COCOA) 32 32 OBJC_CLASS NSOperationQueue; 33 33 #endif … … 50 50 virtual bool shouldClearReferrerOnHTTPSToHTTPRedirect() const = 0; 51 51 52 #if PLATFORM( MAC)52 #if PLATFORM(COCOA) 53 53 virtual bool needsSiteSpecificQuirks() const = 0; 54 54 virtual bool localFileContentSniffingEnabled() const = 0; // FIXME: Reconcile with ResourceHandle::forceContentSniffing(). … … 58 58 #endif 59 59 60 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(SOUP)60 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(SOUP) 61 61 virtual NetworkStorageSession& storageSession() const = 0; 62 62 #endif -
trunk/Source/WebCore/platform/network/ProtectionSpace.cpp
r149255 r163657 26 26 #include "ProtectionSpace.h" 27 27 28 #if USE(CFNETWORK) && !PLATFORM( MAC)28 #if USE(CFNETWORK) && !PLATFORM(COCOA) 29 29 #include "AuthenticationCF.h" 30 30 #include <CFNetwork/CFURLProtectionSpacePriv.h> … … 93 93 bool ProtectionSpace::receivesCredentialSecurely() const 94 94 { 95 #if USE(CFNETWORK) && !PLATFORM( MAC)95 #if USE(CFNETWORK) && !PLATFORM(COCOA) 96 96 RetainPtr<CFURLProtectionSpaceRef> cfSpace = adoptCF(createCF(*this)); 97 97 return cfSpace && CFURLProtectionSpaceReceivesCredentialSecurely(cfSpace.get()); -
trunk/Source/WebCore/platform/network/ResourceHandle.cpp
r161768 r163657 153 153 } 154 154 155 #if !PLATFORM( MAC) && !USE(CFNETWORK) && !USE(SOUP)155 #if !PLATFORM(COCOA) && !USE(CFNETWORK) && !USE(SOUP) 156 156 // ResourceHandle never uses async client calls on these platforms yet. 157 157 void ResourceHandle::continueWillSendRequest(const ResourceRequest&) … … 200 200 void ResourceHandle::clearAuthentication() 201 201 { 202 #if PLATFORM( MAC)202 #if PLATFORM(COCOA) 203 203 d->m_currentMacChallenge = nil; 204 204 #endif … … 213 213 bool ResourceHandle::shouldContentSniffURL(const URL& url) 214 214 { 215 #if PLATFORM( MAC)215 #if PLATFORM(COCOA) 216 216 if (shouldForceContentSniffing) 217 217 return true; -
trunk/Source/WebCore/platform/network/ResourceHandle.h
r162920 r163657 55 55 #endif 56 56 57 #if PLATFORM( MAC) || USE(CFNETWORK)57 #if PLATFORM(COCOA) || USE(CFNETWORK) 58 58 #include <wtf/RetainPtr.h> 59 59 #endif 60 60 61 #if PLATFORM( MAC)61 #if PLATFORM(COCOA) 62 62 OBJC_CLASS NSCachedURLResponse; 63 63 OBJC_CLASS NSData; … … 76 76 #endif 77 77 78 #if PLATFORM( MAC) || USE(CFNETWORK)78 #if PLATFORM(COCOA) || USE(CFNETWORK) 79 79 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; 80 80 #endif … … 101 101 102 102 class ResourceHandle : public RefCounted<ResourceHandle> 103 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP)103 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) 104 104 , public AuthenticationClient 105 105 #endif … … 111 111 virtual ~ResourceHandle(); 112 112 113 #if PLATFORM( MAC) || USE(CFNETWORK)113 #if PLATFORM(COCOA) || USE(CFNETWORK) 114 114 void willSendRequest(ResourceRequest&, const ResourceResponse& redirectResponse); 115 115 #endif 116 #if PLATFORM( MAC) || USE(CFNETWORK) || USE(CURL) || USE(SOUP)116 #if PLATFORM(COCOA) || USE(CFNETWORK) || USE(CURL) || USE(SOUP) 117 117 bool shouldUseCredentialStorage(); 118 118 void didReceiveAuthenticationChallenge(const AuthenticationChallenge&); … … 122 122 #endif 123 123 124 #if PLATFORM( MAC)124 #if PLATFORM(COCOA) 125 125 #if USE(PROTECTION_SPACE_AUTH_CALLBACK) 126 126 bool canAuthenticateAgainstProtectionSpace(const ProtectionSpace&); … … 216 216 #if USE(CFNETWORK) 217 217 void continueWillCacheResponse(CFCachedURLResponseRef); 218 #elif PLATFORM( MAC)218 #elif PLATFORM(COCOA) 219 219 void continueWillCacheResponse(NSCachedURLResponse *); 220 220 #endif … … 234 234 using RefCounted<ResourceHandle>::deref; 235 235 236 #if PLATFORM( MAC) || USE(CFNETWORK)236 #if PLATFORM(COCOA) || USE(CFNETWORK) 237 237 static CFStringRef synchronousLoadRunLoopMode(); 238 238 #endif … … 271 271 virtual void derefAuthenticationClient() override { deref(); } 272 272 273 #if PLATFORM( MAC) || USE(CFNETWORK)273 #if PLATFORM(COCOA) || USE(CFNETWORK) 274 274 enum class SchedulingBehavior { 275 275 Asynchronous, -
trunk/Source/WebCore/platform/network/ResourceHandleClient.cpp
r160467 r163657 67 67 handle->continueWillCacheResponse(response); 68 68 } 69 #elif PLATFORM( MAC)69 #elif PLATFORM(COCOA) 70 70 void ResourceHandleClient::willCacheResponseAsync(ResourceHandle* handle, NSCachedURLResponse *response) 71 71 { -
trunk/Source/WebCore/platform/network/ResourceHandleClient.h
r161338 r163657 36 36 #endif 37 37 38 #if PLATFORM( MAC)38 #if PLATFORM(COCOA) 39 39 OBJC_CLASS NSCachedURLResponse; 40 40 #endif … … 93 93 #if USE(CFNETWORK) 94 94 virtual void willCacheResponseAsync(ResourceHandle*, CFCachedURLResponseRef); 95 #elif PLATFORM( MAC)95 #elif PLATFORM(COCOA) 96 96 virtual void willCacheResponseAsync(ResourceHandle*, NSCachedURLResponse *); 97 97 #endif … … 121 121 #endif // PLATFORM(WIN) 122 122 123 #elif PLATFORM( MAC)123 #elif PLATFORM(COCOA) 124 124 virtual NSCachedURLResponse *willCacheResponse(ResourceHandle*, NSCachedURLResponse *response) { return response; } 125 125 virtual void willStopBufferingData(ResourceHandle*, const char*, unsigned) { } -
trunk/Source/WebCore/platform/network/ResourceHandleInternal.h
r162599 r163657 56 56 #endif 57 57 58 #if PLATFORM( MAC)58 #if PLATFORM(COCOA) 59 59 OBJC_CLASS NSURLAuthenticationChallenge; 60 60 OBJC_CLASS NSURLConnection; 61 61 #endif 62 62 63 #if PLATFORM( MAC) || USE(CFNETWORK)63 #if PLATFORM(COCOA) || USE(CFNETWORK) 64 64 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; 65 65 #endif … … 113 113 , m_previousPosition(0) 114 114 #endif 115 #if PLATFORM( MAC)115 #if PLATFORM(COCOA) 116 116 , m_startWhenScheduled(false) 117 117 , m_needsSiteSpecificQuirks(false) … … 151 151 RefPtr<ResourceHandleCFURLConnectionDelegate> m_connectionDelegate; 152 152 #endif 153 #if PLATFORM( MAC) && !USE(CFNETWORK)153 #if PLATFORM(COCOA) && !USE(CFNETWORK) 154 154 RetainPtr<NSURLConnection> m_connection; 155 155 RetainPtr<id> m_delegate; 156 156 #endif 157 #if PLATFORM( MAC)157 #if PLATFORM(COCOA) 158 158 bool m_startWhenScheduled; 159 159 bool m_needsSiteSpecificQuirks; 160 160 #endif 161 #if PLATFORM( MAC) || USE(CFNETWORK)161 #if PLATFORM(COCOA) || USE(CFNETWORK) 162 162 RetainPtr<CFURLStorageSessionRef> m_storageSession; 163 163 #endif … … 212 212 #endif 213 213 214 #if PLATFORM( MAC)214 #if PLATFORM(COCOA) 215 215 // We need to keep a reference to the original challenge to be able to cancel it. 216 216 // It is almost identical to m_currentWebChallenge.nsURLAuthenticationChallenge(), but has a different sender. -
trunk/Source/WebCore/platform/network/ResourceRequestBase.cpp
r163089 r163657 31 31 namespace WebCore { 32 32 33 #if !USE(SOUP) && (!PLATFORM( MAC) || USE(CFNETWORK))33 #if !USE(SOUP) && (!PLATFORM(COCOA) || USE(CFNETWORK)) 34 34 double ResourceRequestBase::s_defaultTimeoutInterval = INT_MAX; 35 35 #else … … 523 523 } 524 524 525 #if !PLATFORM( MAC) && !USE(CFNETWORK) && !USE(SOUP)525 #if !PLATFORM(COCOA) && !USE(CFNETWORK) && !USE(SOUP) 526 526 unsigned initializeMaximumHTTPConnectionCountPerHost() 527 527 { -
trunk/Source/WebCore/platform/network/cf/AuthenticationCF.h
r91084 r163657 44 44 CFURLProtectionSpaceRef createCF(const ProtectionSpace&); 45 45 46 #if PLATFORM( MAC)46 #if PLATFORM(COCOA) 47 47 AuthenticationChallenge core(CFURLAuthChallengeRef); 48 48 #endif -
trunk/Source/WebCore/platform/network/cf/CookieStorageCFNet.cpp
r138427 r163657 30 30 #include <wtf/MainThread.h> 31 31 32 #if PLATFORM( MAC)32 #if PLATFORM(COCOA) 33 33 #include "WebCoreSystemInterface.h" 34 34 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/network/cf/CredentialStorageCFNet.cpp
r161589 r163657 34 34 #include <wtf/RetainPtr.h> 35 35 36 #if PLATFORM( MAC)36 #if PLATFORM(COCOA) 37 37 #include "WebCoreSystemInterface.h" 38 38 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/network/cf/FormDataStreamCFNet.cpp
r155242 r163657 49 49 #endif 50 50 51 #if PLATFORM( MAC)51 #if PLATFORM(COCOA) 52 52 extern "C" void CFURLRequestSetHTTPRequestBody(CFMutableURLRequestRef mutableHTTPRequest, CFDataRef httpBody); 53 53 extern "C" void CFURLRequestSetHTTPHeaderFieldValue(CFMutableURLRequestRef mutableHTTPRequest, CFStringRef httpHeaderField, CFStringRef httpHeaderFieldValue); -
trunk/Source/WebCore/platform/network/cf/NetworkStorageSessionCFNet.cpp
r157337 r163657 31 31 #include <wtf/PassOwnPtr.h> 32 32 33 #if PLATFORM( MAC)33 #if PLATFORM(COCOA) 34 34 #include "WebCoreSystemInterface.h" 35 35 #else … … 56 56 // Set a private session for testing to avoid interfering with global cookies. This should be different from private browsing session. 57 57 // FIXME: It looks like creating a new session with the same identifier may be just creating a reference to the same storage. See <rdar://problem/11571450> and <rdar://problem/12384380>. 58 #if PLATFORM( MAC)58 #if PLATFORM(COCOA) 59 59 defaultNetworkStorageSession() = adoptPtr(new NetworkStorageSession(adoptCF(wkCreatePrivateStorageSession(CFSTR("Private WebKit Session"))))); 60 60 #else … … 94 94 RetainPtr<CFStringRef> cfIdentifier = String(identifierBase + ".PrivateBrowsing").createCFString(); 95 95 96 #if PLATFORM( MAC)96 #if PLATFORM(COCOA) 97 97 auto session = std::make_unique<NetworkStorageSession>(adoptCF(wkCreatePrivateStorageSession(cfIdentifier.get()))); 98 98 #else -
trunk/Source/WebCore/platform/network/cf/ResourceError.h
r131168 r163657 38 38 #endif 39 39 40 #if PLATFORM( MAC)40 #if PLATFORM(COCOA) 41 41 OBJC_CLASS NSError; 42 42 #endif … … 73 73 #endif 74 74 75 #if PLATFORM( MAC)75 #if PLATFORM(COCOA) 76 76 ResourceError(NSError *); 77 77 NSError *nsError() const; … … 89 89 #if USE(CFNETWORK) 90 90 mutable RetainPtr<CFErrorRef> m_platformError; 91 #if PLATFORM( MAC)91 #if PLATFORM(COCOA) 92 92 mutable RetainPtr<NSError> m_platformNSError; 93 93 #endif -
trunk/Source/WebCore/platform/network/cf/ResourceHandleCFNet.cpp
r161796 r163657 52 52 #include <wtf/text/CString.h> 53 53 54 #if PLATFORM( MAC)54 #if PLATFORM(COCOA) 55 55 #include "ResourceHandleCFURLConnectionDelegateWithOperationQueue.h" 56 56 #include "WebCoreSystemInterface.h" … … 218 218 CFRelease(streamProperties); 219 219 220 #if PLATFORM( MAC)220 #if PLATFORM(COCOA) 221 221 if (client() && client()->usesAsyncCallbacks()) 222 222 d->m_connectionDelegate = adoptRef(new ResourceHandleCFURLConnectionDelegateWithOperationQueue(this)); … … 547 547 } 548 548 549 #if PLATFORM( MAC)549 #if PLATFORM(COCOA) 550 550 void ResourceHandle::schedule(SchedulePair* pair) 551 551 { -
trunk/Source/WebCore/platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp
r160467 r163657 33 33 #include "ResourceHandle.h" 34 34 35 #if PLATFORM( MAC)35 #if PLATFORM(COCOA) 36 36 #include "WebCoreSystemInterface.h" 37 37 #endif -
trunk/Source/WebCore/platform/network/cf/ResourceRequest.h
r161602 r163657 33 33 OBJC_CLASS NSURLRequest; 34 34 35 #if PLATFORM( MAC) || USE(CFNETWORK)35 #if PLATFORM(COCOA) || USE(CFNETWORK) 36 36 typedef const struct _CFURLRequest* CFURLRequestRef; 37 37 typedef const struct __CFURLStorageSession* CFURLStorageSessionRef; … … 76 76 77 77 #if USE(CFNETWORK) 78 #if PLATFORM( MAC)78 #if PLATFORM(COCOA) 79 79 ResourceRequest(NSURLRequest *); 80 80 void updateNSURLRequest(); … … 88 88 , m_cfRequest(cfRequest) 89 89 { 90 #if PLATFORM( MAC)90 #if PLATFORM(COCOA) 91 91 updateNSURLRequest(); 92 92 #endif … … 105 105 void updateFromDelegatePreservingOldHTTPBody(const ResourceRequest&); 106 106 107 #if PLATFORM( MAC)107 #if PLATFORM(COCOA) 108 108 void applyWebArchiveHackForMail(); 109 109 NSURLRequest *nsURLRequest(HTTPBodyUpdatePolicy) const; … … 116 116 #endif 117 117 118 #if PLATFORM( MAC) || USE(CFNETWORK)118 #if PLATFORM(COCOA) || USE(CFNETWORK) 119 119 CFURLRequestRef cfURLRequest(HTTPBodyUpdatePolicy) const; 120 120 void setStorageSession(CFURLStorageSessionRef); … … 124 124 static void setHTTPPipeliningEnabled(bool); 125 125 126 #if PLATFORM( MAC)126 #if PLATFORM(COCOA) 127 127 static bool useQuickLookResourceCachingQuirks(); 128 128 #endif … … 150 150 RetainPtr<CFURLRequestRef> m_cfRequest; 151 151 #endif 152 #if PLATFORM( MAC)152 #if PLATFORM(COCOA) 153 153 RetainPtr<NSURLRequest> m_nsRequest; 154 154 #endif -
trunk/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp
r163089 r163657 42 42 #endif 43 43 44 #if PLATFORM( MAC)44 #if PLATFORM(COCOA) 45 45 #include "ResourceLoadPriority.h" 46 46 #include "WebCoreSystemInterface.h" … … 85 85 return reinterpret_cast<CFURLRequestCopyContentDispositionEncodingFallbackArrayFunction>(GetProcAddress(findCFNetworkModule(), "_CFURLRequestCopyContentDispositionEncodingFallbackArray")); 86 86 } 87 #elif PLATFORM( MAC)87 #elif PLATFORM(COCOA) 88 88 static CFURLRequestSetContentDispositionEncodingFallbackArrayFunction findCFURLRequestSetContentDispositionEncodingFallbackArrayFunction() 89 89 { … … 193 193 194 194 m_cfRequest = adoptCF(cfRequest); 195 #if PLATFORM( MAC)195 #if PLATFORM(COCOA) 196 196 updateNSURLRequest(); 197 197 #endif … … 229 229 230 230 m_cfRequest = adoptCF(cfRequest); 231 #if PLATFORM( MAC)231 #if PLATFORM(COCOA) 232 232 updateNSURLRequest(); 233 233 #endif … … 333 333 wkSetRequestStorageSession(storageSession, cfRequest); 334 334 m_cfRequest = adoptCF(cfRequest); 335 #if PLATFORM( MAC)335 #if PLATFORM(COCOA) 336 336 updateNSURLRequest(); 337 337 #endif 338 338 } 339 339 340 #if PLATFORM( MAC)340 #if PLATFORM(COCOA) 341 341 void ResourceRequest::applyWebArchiveHackForMail() 342 342 { -
trunk/Source/WebCore/platform/network/cf/ResourceResponse.h
r162052 r163657 54 54 m_isNull = !cfResponse; 55 55 } 56 #if PLATFORM( MAC)56 #if PLATFORM(COCOA) 57 57 ResourceResponse(NSURLResponse *); 58 58 #endif … … 89 89 CFURLResponseRef cfURLResponse() const; 90 90 #endif 91 #if PLATFORM( MAC)91 #if PLATFORM(COCOA) 92 92 NSURLResponse *nsURLResponse() const; 93 93 #endif 94 94 95 #if PLATFORM( MAC) || USE(CFNETWORK)95 #if PLATFORM(COCOA) || USE(CFNETWORK) 96 96 void setCertificateChain(CFArrayRef); 97 97 RetainPtr<CFArrayRef> certificateChain() const; … … 106 106 PassOwnPtr<CrossThreadResourceResponseData> doPlatformCopyData(PassOwnPtr<CrossThreadResourceResponseData> data) const { return data; } 107 107 void doPlatformAdopt(PassOwnPtr<CrossThreadResourceResponseData>) { } 108 #if PLATFORM( MAC)108 #if PLATFORM(COCOA) 109 109 void initNSURLResponse() const; 110 110 #endif … … 118 118 mutable RetainPtr<CFURLResponseRef> m_cfResponse; 119 119 #endif 120 #if PLATFORM( MAC)120 #if PLATFORM(COCOA) 121 121 mutable RetainPtr<NSURLResponse> m_nsResponse; 122 122 #endif 123 #if PLATFORM( MAC) || USE(CFNETWORK)123 #if PLATFORM(COCOA) || USE(CFNETWORK) 124 124 // Certificate chain is normally part of NS/CFURLResponse, but there is no way to re-add it to a deserialized response after IPC. 125 125 RetainPtr<CFArrayRef> m_externalCertificateChain; -
trunk/Source/WebCore/platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp
r160467 r163657 41 41 #include <wtf/text/WTFString.h> 42 42 43 #if PLATFORM( MAC)43 #if PLATFORM(COCOA) 44 44 #include "WebCoreSystemInterface.h" 45 45 #include "WebCoreURLResponse.h" 46 #endif // PLATFORM( MAC)46 #endif // PLATFORM(COCOA) 47 47 48 48 #if PLATFORM(IOS) … … 103 103 } 104 104 105 #if !PLATFORM( MAC)105 #if !PLATFORM(COCOA) 106 106 static void setDefaultMIMEType(CFURLResponseRef response) 107 107 { … … 110 110 CFURLResponseSetMIMEType(response, defaultMIMETypeString); 111 111 } 112 #endif // !PLATFORM( MAC)112 #endif // !PLATFORM(COCOA) 113 113 114 114 void SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse(CFURLResponseRef cfResponse) … … 119 119 return; 120 120 121 #if PLATFORM( MAC)121 #if PLATFORM(COCOA) 122 122 // Avoid MIME type sniffing if the response comes back as 304 Not Modified. 123 123 CFHTTPMessageRef msg = wkGetCFURLResponseHTTPResponse(cfResponse); -
trunk/Source/WebCore/platform/network/mac/ResourceResponseMac.mm
r162079 r163657 175 175 #endif // USE(CFNETWORK) 176 176 177 #if PLATFORM( MAC) || USE(CFNETWORK)177 #if PLATFORM(COCOA) || USE(CFNETWORK) 178 178 179 179 void ResourceResponse::setCertificateChain(CFArrayRef certificateChain) … … 191 191 } 192 192 193 #endif // PLATFORM( MAC) || USE(CFNETWORK)193 #endif // PLATFORM(COCOA) || USE(CFNETWORK) 194 194 195 195 } // namespace WebCore -
trunk/Source/WebCore/platform/posix/FileSystemPOSIX.cpp
r162943 r163657 313 313 #endif 314 314 315 #if ! PLATFORM(MAC)315 #if !OS(DARWIN) || PLATFORM(EFL) || PLATFORM(GTK) 316 316 String openTemporaryFile(const String& prefix, PlatformFileHandle& handle) 317 317 { -
trunk/Source/WebCore/platform/text/TextBoundaries.cpp
r163310 r163657 57 57 } 58 58 59 #if !PLATFORM( MAC)59 #if !PLATFORM(COCOA) 60 60 61 61 int findNextWordFromIndex(const UChar* chars, int len, int position, bool forward) … … 105 105 } 106 106 107 #endif // !PLATFORM( MAC)107 #endif // !PLATFORM(COCOA) 108 108 109 109 } // namespace WebCore
Note:
See TracChangeset
for help on using the changeset viewer.