haikuwebkit/Source/WebCore/PlatformMac.cmake

946 lines
40 KiB
CMake
Raw Permalink Normal View History

find_library(ACCELERATE_LIBRARY Accelerate)
find_library(APPLICATIONSERVICES_LIBRARY ApplicationServices)
find_library(AVFOUNDATION_LIBRARY AVFoundation)
find_library(AUDIOTOOLBOX_LIBRARY AudioToolbox)
find_library(AUDIOUNIT_LIBRARY AudioUnit)
find_library(CARBON_LIBRARY Carbon)
find_library(CFNETWORK_LIBRARY CFNetwork)
find_library(COCOA_LIBRARY Cocoa)
find_library(COMPRESSION_LIBRARY Compression)
find_library(COREAUDIO_LIBRARY CoreAudio)
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
find_library(COREMEDIA_LIBRARY CoreMedia)
find_library(CORESERVICES_LIBRARY CoreServices)
find_library(DISKARBITRATION_LIBRARY DiskArbitration)
find_library(IOKIT_LIBRARY IOKit)
find_library(IOSURFACE_LIBRARY IOSurface)
find_library(METAL_LIBRARY Metal)
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
find_library(NETWORKEXTENSION_LIBRARY NetworkExtension)
find_library(OPENGL_LIBRARY OpenGL)
find_library(QUARTZ_LIBRARY Quartz)
find_library(QUARTZCORE_LIBRARY QuartzCore)
find_library(SECURITY_LIBRARY Security)
find_library(SYSTEMCONFIGURATION_LIBRARY SystemConfiguration)
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
find_library(VIDEOTOOLBOX_LIBRARY VideoToolbox)
find_library(XML2_LIBRARY XML2)
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
find_package(SQLite3 REQUIRED)
find_package(ZLIB REQUIRED)
Setup WebCore build to start using unified sources. https://bugs.webkit.org/show_bug.cgi?id=178362 Reviewed by Tim Horton. .: Pass features to the unified source bundler script. * Source/cmake/WebKitCommon.cmake: * Source/cmake/WebKitFeatures.cmake: * Source/cmake/WebKitMacros.cmake: Source/JavaScriptCore: Change comments in source list files. Also, pass explicit names for build files. * CMakeLists.txt: * PlatformGTK.cmake: * PlatformMac.cmake: * Sources.txt: * SourcesGTK.txt: * SourcesMac.txt: Source/WebCore: This patch adds all the long tooling needed to start adding unified sources to WebCore. Most of the source list files are empty to start but will be filled over the next few days. I started by moving all the non-derived bindings code to unified sources to make sure everything worked correctly. * CMakeLists.txt: * Configurations/GenerateUnifiedSources.xcconfig: Added. * Configurations/WebCore.xcconfig: * PlatformMac.cmake: * Sources.txt: Added. * SourcesCocoa.txt: Added. * SourcesIOS.txt: Added. * SourcesMac.txt: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSMediaStreamCapabilitiesCustom.cpp: Removed. No one seems to use this... Source/WTF: There are a number of changes to the bundler script. First, it is now possible to enable or disable building files based on if the associated feature flag is enabled or not. The syntax for this is similar to how we do #ifs in C++ code. e.g. #if ENABLE_APPLE_PAY myApplePayFile.cpp #endif would enable myApplePayFile.cpp if and only if the APPLE_PAY feature define is set. I also changed comments from # to // to make it less likely they would be confused with a #if. Finally, this patch enables bundling files in the same relative directory across source list files. Previously, if SourcesCocoa.txt had platform/cf/foo.cpp and SourcesMac.txt had platform/cf/bar.cpp those files would not be put in the same unified source bundle. Now, those files will be put into the same bundle but bar.cpp will always follow foo.cpp. The idea is that by putting more specific files after more general files we can avoid random build failures. * Scripts/generate-unified-source-bundles.rb: Canonical link: https://commits.webkit.org/194673@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@223621 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-10-18 19:14:51 +00:00
list(APPEND WebCore_UNIFIED_SOURCE_LIST_FILES
"SourcesCocoa.txt"
)
list(APPEND WebCore_LIBRARIES
${ACCELERATE_LIBRARY}
${AUDIOTOOLBOX_LIBRARY}
${AUDIOUNIT_LIBRARY}
${AVFOUNDATION_LIBRARY}
${CARBON_LIBRARY}
${CFNETWORK_LIBRARY}
${COCOA_LIBRARY}
${COMPRESSION_LIBRARY}
${COREAUDIO_LIBRARY}
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
${COREMEDIA_LIBRARY}
${CORESERVICES_LIBRARY}
${DISKARBITRATION_LIBRARY}
${IOKIT_LIBRARY}
${IOSURFACE_LIBRARY}
${METAL_LIBRARY}
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
${NETWORKEXTENSION_LIBRARY}
${OPENGL_LIBRARY}
${QUARTZ_LIBRARY}
${QUARTZCORE_LIBRARY}
${SECURITY_LIBRARY}
${SQLITE3_LIBRARIES}
${SYSTEMCONFIGURATION_LIBRARY}
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
${VIDEOTOOLBOX_LIBRARY}
${XML2_LIBRARY}
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
opus
usrsctp
vpx
webm
yuv
)
add_definitions(-iframework ${APPLICATIONSERVICES_LIBRARY}/Versions/Current/Frameworks)
add_definitions(-iframework ${AVFOUNDATION_LIBRARY}/Versions/Current/Frameworks)
add_definitions(-iframework ${CARBON_LIBRARY}/Versions/Current/Frameworks)
add_definitions(-iframework ${CORESERVICES_LIBRARY}/Versions/Current/Frameworks)
add_definitions(-iframework ${QUARTZ_LIBRARY}/Frameworks)
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
find_library(COREUI_FRAMEWORK CoreUI HINTS ${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks)
if (NOT COREUI_FRAMEWORK-NOTFOUND)
list(APPEND WebCore_LIBRARIES ${COREUI_FRAMEWORK})
endif ()
find_library(DATADETECTORSCORE_FRAMEWORK DataDetectorsCore HINTS ${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks)
if (NOT DATADETECTORSCORE_FRAMEWORK-NOTFOUND)
list(APPEND WebCore_LIBRARIES ${DATADETECTORSCORE_FRAMEWORK})
endif ()
find_library(LOOKUP_FRAMEWORK Lookup HINTS ${CMAKE_OSX_SYSROOT}/System/Library/PrivateFrameworks)
if (NOT LOOKUP_FRAMEWORK-NOTFOUND)
list(APPEND WebCore_LIBRARIES ${LOOKUP_FRAMEWORK})
endif ()
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${CMAKE_BINARY_DIR}/libwebrtc/PrivateHeaders"
"${CMAKE_SOURCE_DIR}/Source/ThirdParty/libwebrtc/Source"
"${WEBCORE_DIR}/Modules/webauthn/apdu"
"${WEBCORE_DIR}/Modules/webgpu/WHLSL/Metal"
Crash in AXIsolatedObject destruction. https://bugs.webkit.org/show_bug.cgi?id=206828 Reviewed by Chris Fleizach. - The previous AXCoreObject::detach method became detachRemoteParts, since this method detaches all references to and from other objects. - The new AXCoreObject::detach method performs three distinctive operations: 1. Detaches the platform wrapper. 2. Detaches all remote references to and from other objects. 3. Sets the object ID to InvalidAXID. - The detachPlatformWrapper method allows for platform-specific customizations. - Added accessibility/isolatedtree/mac/AXIsolatedobject.mm. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::~AXObjectCache): (WebCore::AXObjectCache::remove): * accessibility/AXObjectCache.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::detachRemoteParts): (WebCore::AccessibilityNodeObject::detach): Became detachRemoteParts. * accessibility/AccessibilityNodeObject.h: * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::detachRemoteParts): (WebCore::AccessibilityObject::detach): Became detachRemoteParts. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: (WebCore::AXCoreObject::detachWrapper): (WebCore::AXCoreObject::detach): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::detachRemoteParts): (WebCore::AccessibilityRenderObject::detach): Became detachRemoteParts. * accessibility/AccessibilityRenderObject.h: * accessibility/AccessibilityScrollView.cpp: (WebCore::AccessibilityScrollView::detachRemoteParts): (WebCore::AccessibilityScrollView::detach): Became detachRemoteParts. * accessibility/AccessibilityScrollView.h: * accessibility/atk/AccessibilityObjectAtk.cpp: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/ios/AXObjectCacheIOS.mm: (WebCore::AXObjectCache::detachWrapper): Deleted, no longer used in COCOA platforms. * accessibility/ios/AccessibilityObjectIOS.mm: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::detachRemoteParts): (WebCore::AXIsolatedObject::detach): Became detachRemoteParts. (WebCore::AXIsolatedObject::disconnect): Replaced with AXCoreObject::detach. * accessibility/isolatedtree/AXIsolatedObject.h: * accessibility/isolatedtree/AXIsolatedTree.cpp: (WebCore::AXIsolatedTree::removeTreeForPageID): (WebCore::AXIsolatedTree::applyPendingChanges): * accessibility/isolatedtree/mac/AXIsolatedObjectMac.mm: (WebCore::AXIsolatedObject::detachPlatformWrapper): * accessibility/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::detachWrapper): Deleted, no longer used in COCOA platforms. * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/win/AccessibilityObjectWin.cpp: (WebCore::AccessibilityObject::detachPlatformWrapper): Canonical link: https://commits.webkit.org/219831@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-27 21:31:01 +00:00
"${WEBCORE_DIR}/accessibility/isolatedtree/mac"
"${WEBCORE_DIR}/accessibility/mac"
"${WEBCORE_DIR}/bridge/objc"
"${WEBCORE_DIR}/crypto/mac"
"${WEBCORE_DIR}/editing/cocoa"
"${WEBCORE_DIR}/editing/ios"
"${WEBCORE_DIR}/editing/mac"
"${WEBCORE_DIR}/html/shadow/cocoa"
"${WEBCORE_DIR}/layout/tableformatting"
"${WEBCORE_DIR}/loader/archive/cf"
"${WEBCORE_DIR}/loader/cf"
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=135819 Reviewed by Laszlo Gombos. .: * Source/cmake/OptionsMac.cmake: Disable some more features temporarily to get CMake working. * Source/cmake/WebKitMacros.cmake: Added an extension parameter to GENERATE_BINDINGS to allow ObjC bindings to generate .mm files. Source/JavaScriptCore: * CMakeLists.txt: Add the remote inspector headers to the forwarding headers list. Source/WebCore: * CMakeLists.txt: Include derived sources directory, which is needed by Apple ports. Separated svg and non-svg idls for ObjC bindings. Don't build the new gamepad API right now. It's causing naming conflicts and it's not done. Process CSSUnknownRule.idl. * PlatformGTK.cmake: Added cpp as the extension of the generated bindings. * PlatformMac.cmake: Include more directories and sources. Add forwarding headers. Generate ObjC bindings. * bindings/objc/DOMUIKitExtensions.mm: Moved config.h to recognize the PLATFORM macro. * bindings/scripts/CodeGeneratorObjC.pm: (ReadPublicInterfaces): (GenerateInterface): Added some workarounds for CMake. * bindings/scripts/IDLAttributes.txt: Added missing attribute names. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: Added PLATFORM(IOS) to protect IOS_AIRPLAY code. * platform/mac/PasteboardMac.mm: Added necessary DRAG_SUPPORT protection. * platform/text/mac/TextCodecMac.cpp: Moved config.h to recognize the PLATFORM macro. Tools: * WebKitTestRunner/CMakeLists.txt: Added new cpp parameter for the extension of the generated files. Canonical link: https://commits.webkit.org/153773@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-08-13 22:53:12 +00:00
"${WEBCORE_DIR}/loader/mac"
"${WEBCORE_DIR}/page/cocoa"
"${WEBCORE_DIR}/page/mac"
"${WEBCORE_DIR}/page/scrolling/cocoa"
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
"${WEBCORE_DIR}/page/scrolling/mac"
"${WEBCORE_DIR}/platform/audio/cocoa"
"${WEBCORE_DIR}/platform/audio/mac"
"${WEBCORE_DIR}/platform/cf"
"${WEBCORE_DIR}/platform/cocoa"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/platform/gamepad/cocoa"
"${WEBCORE_DIR}/platform/graphics/angle"
"${WEBCORE_DIR}/platform/graphics/avfoundation"
"${WEBCORE_DIR}/platform/graphics/avfoundation/cf"
"${WEBCORE_DIR}/platform/graphics/avfoundation/objc"
"${WEBCORE_DIR}/platform/graphics/ca"
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
"${WEBCORE_DIR}/platform/graphics/ca/cocoa"
"${WEBCORE_DIR}/platform/graphics/cocoa"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/platform/graphics/coreimage"
"${WEBCORE_DIR}/platform/graphics/cg"
"${WEBCORE_DIR}/platform/graphics/cv"
Add GPUDevice implementation and WebGPULayer https://bugs.webkit.org/show_bug.cgi?id=169219 <rdar://problem/30879048> Reviewed by Sam Weinig. Source/WebCore: Add a basic implementation of a GPUDevice object, which references a MTLDevice. Also add a WebGPULayer that will ultimately be used to host WebGPU content. WebKit API Test: WebCore/mac/GPUDevice.mm * Configurations/WebCore.xcconfig: Link to Metal. * PlatformMac.cmake: New files. * WebCore.xcodeproj/project.pbxproj: * platform/Logging.h: Add a WebGPU logging channel. * platform/graphics/cocoa/GPUDeviceMetal.mm: Added. (WebCore::GPUDevice::GPUDevice): Cocoa implementation. (WebCore::GPUDevice::reshape): * platform/graphics/cocoa/WebGPULayer.h: Added. * platform/graphics/cocoa/WebGPULayer.mm: Added. (-[WebGPULayer initWithGPUDevice:]): (-[WebGPULayer copyImageSnapshotWithColorSpace:]): (-[WebGPULayer display]): * platform/graphics/gpu/GPUDevice.cpp: Added. (WebCore::GPUDevice::create): (WebCore::GPUDevice::~GPUDevice): (WebCore::GPUDevice::GPUDevice): Implementation for platforms other than Mac and iOS hardware. (WebCore::GPUDevice::reshape): * platform/graphics/gpu/GPUDevice.h: Added. (WebCore::GPUDevice::platformLayer): (WebCore::GPUDevice::platformDevice): (WebCore::GPUDevice::layer): Tools: Test for WebCore's GPUDevice class. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebCore/mac/GPUDevice.mm: Added. (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/186301@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@213541 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-03-07 22:23:33 +00:00
"${WEBCORE_DIR}/platform/graphics/gpu"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/platform/graphics/gpu/cocoa"
"${WEBCORE_DIR}/platform/graphics/gpu/legacy"
"${WEBCORE_DIR}/platform/graphics/egl"
"${WEBCORE_DIR}/platform/graphics/opentype"
"${WEBCORE_DIR}/platform/graphics/opengl"
"${WEBCORE_DIR}/platform/graphics/mac"
"${WEBCORE_DIR}/platform/mac"
[MediaCapabilities] Platform integration https://bugs.webkit.org/show_bug.cgi?id=187850 Reviewed by Eric Carlson. Source/WebCore: Mock platform support for the MediaCapabilities specification. Test: media/mediacapabilities/mock-decodingInfo.html media/mediacapabilities/mock-encodingInfo.html * Modules/mediacapabilities/MediaCapabilities.cpp: (WebCore::MediaCapabilities::decodingInfo): (WebCore::MediaCapabilities::encodingInfo): * Modules/mediacapabilities/MediaCapabilitiesInfo.h: (WebCore::MediaCapabilitiesInfo::create): * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWPE.cmake: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mediacapabilities/MediaEngineConfiguration.cpp: Added. (WebCore::MediaEngineVideoConfiguration::MediaEngineVideoConfiguration): (WebCore::MediaEngineAudioConfiguration::MediaEngineAudioConfiguration): (WebCore::MediaEngineConfiguration::MediaEngineConfiguration): * platform/mediacapabilities/MediaEngineConfiguration.h: Added. (WebCore::MediaEngineVideoConfiguration::create): (WebCore::MediaEngineVideoConfiguration::contentType const): (WebCore::MediaEngineVideoConfiguration::size const): (WebCore::MediaEngineVideoConfiguration::bitrate const): (WebCore::MediaEngineVideoConfiguration::framerate const): (WebCore::MediaEngineAudioConfiguration::create): (WebCore::MediaEngineAudioConfiguration::contentType const): (WebCore::MediaEngineAudioConfiguration::channels const): (WebCore::MediaEngineAudioConfiguration::bitrate const): (WebCore::MediaEngineAudioConfiguration::samplerate const): (WebCore::MediaEngineConfiguration::audioConfiguration const): (WebCore::MediaEngineConfiguration::videoConfiguration const): * platform/mediacapabilities/MediaEngineConfigurationFactory.cpp: Added. (WebCore::mockEnabled): (WebCore::MediaEngineConfigurationFactory::createDecodingConfiguration): (WebCore::MediaEngineConfigurationFactory::createEncodingConfiguration): (WebCore::MediaEngineConfigurationFactory::enableMock): (WebCore::MediaEngineConfigurationFactory::disableMock): * platform/mediacapabilities/MediaEngineConfigurationFactory.h: Added. * platform/mediacapabilities/MediaEngineDecodingConfiguration.h: Added. (WebCore::MediaEngineDecodingConfiguration::MediaEngineDecodingConfiguration): (WebCore::MediaEngineDecodingConfiguration::canDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::canSmoothlyDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::canPowerEfficientlyDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::decodingType const): * platform/mediacapabilities/MediaEngineEncodingConfiguration.h: Added. (WebCore::MediaEngineEncodingConfiguration::MediaEngineEncodingConfiguration): (WebCore::MediaEngineEncodingConfiguration::canEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::canSmoothlyEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::canPowerEfficientlyEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::encodingType const): * platform/mock/MediaEngineDecodingConfigurationMock.cpp: Added. (WebCore::MediaEngineDecodingConfigurationMock::canDecodeMedia): (WebCore::MediaEngineDecodingConfigurationMock::canSmoothlyDecodeMedia): (WebCore::MediaEngineDecodingConfigurationMock::canPowerEfficientlyDecodeMedia): * platform/mock/MediaEngineDecodingConfigurationMock.h: Added. * platform/mock/MediaEngineEncodingConfigurationMock.cpp: Added. (WebCore::MediaEngineEncodingConfigurationMock::canEncodeMedia): (WebCore::MediaEngineEncodingConfigurationMock::canSmoothlyEncodeMedia): (WebCore::MediaEngineEncodingConfigurationMock::canPowerEfficientlyEncodeMedia): * platform/mock/MediaEngineEncodingConfigurationMock.h: Added. * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): (WebCore::Internals::enableMockMediaCapabilities): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Mock tests for the MediaCapabilities specification. * media/mediacapabilities/mock-decodingInfo-expected.txt: Added. * media/mediacapabilities/mock-decodingInfo.html: Added. * media/mediacapabilities/mock-encodingInfo-expected.txt: Added. * media/mediacapabilities/mock-encodingInfo.html: Added. * media/video-test.js: (checkMediaCapabilitiesInfo): Canonical link: https://commits.webkit.org/203431@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-05 09:26:00 +00:00
"${WEBCORE_DIR}/platform/mediacapabilities"
"${WEBCORE_DIR}/platform/mediarecorder/cocoa"
[MediaStream] Add mock audio and video sources https://bugs.webkit.org/show_bug.cgi?id=150997 <rdar://problem/23453358> Reviewed by Jer Noble. Create basic mock audio and video realtime media source classes so we can test MediaStream API without requiring test machines to have audio/video input hardware. No new tests added yet, thoe will follow. No new tests, these changes will allow us to write MediaStream tests. * CMakeLists.txt: Add MockRealtimeAudioSource.cpp, MockRealtimeMediaSource.cpp, and MockRealtimeVideoSource.cpp * PlatformMac.cmake: Add MockRealtimeVideoSourceMac.mm * WebCore.xcodeproj/project.pbxproj: Add new files. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::createPreviewLayers): Don't set autoresizingMask, it isn't necessary. * platform/mediastream/mac/AVCaptureDeviceManager.mm: (WebCore::refreshCaptureDeviceList): AVCaptureDevice -> getAVCaptureDeviceClass() (WebCore::AVCaptureDeviceManager::bestDeviceForFacingMode): Ditto. (WebCore::AVCaptureDeviceManager::sourceWithUID): Ditto. Mac class implements RealtimeVideoSource::platformLayer, returns a CALayer which uses the GraphicsContext as contents. * platform/mediastream/mac/MockRealtimeVideoSourceMac.h: Added. * platform/mediastream/mac/MockRealtimeVideoSourceMac.mm: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSourceMac::MockRealtimeVideoSourceMac): (WebCore::MockRealtimeVideoSourceMac::platformLayer): (WebCore::MockRealtimeVideoSourceMac::updatePlatformLayer): Mock audio source. Doesn't provide data yet, only provides states and capabilities. * platform/mock/MockRealtimeAudioSource.cpp: Added. (WebCore::MockRealtimeAudioSource::create): (WebCore::MockRealtimeAudioSource::MockRealtimeAudioSource): (WebCore::MockRealtimeAudioSource::updateStates): (WebCore::MockRealtimeAudioSource::initializeCapabilities): * platform/mock/MockRealtimeAudioSource.h: Added. (WebCore::MockRealtimeAudioSource::~MockRealtimeAudioSource): Mock source base class, sets persistent ID and updates states and capabilities. * platform/mock/MockRealtimeMediaSource.cpp: Added. (WebCore::MockRealtimeMediaSource::mockAudioPersistentID): (WebCore::MockRealtimeMediaSource::mockVideoPersistentID): (WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::capabilities): (WebCore::MockRealtimeMediaSource::states): * platform/mock/MockRealtimeMediaSource.h: Added. (WebCore::MockRealtimeMediaSource::mockAudioSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockAudioSourceName): (WebCore::MockRealtimeMediaSource::mockVideoSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockVideoSourceName): (WebCore::MockRealtimeMediaSource::trackSourceWithUID): (WebCore::MockRealtimeMediaSource::~MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::currentStates): (WebCore::MockRealtimeMediaSource::constraints): Use new mock source classes. Create a new source instance for each request instead of reusing the same sources each time. * platform/mock/MockRealtimeMediaSourceCenter.cpp: (WebCore::mockSourceMap): (WebCore::MockRealtimeMediaSourceCenter::registerMockRealtimeMediaSourceCenter): (WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints): (WebCore::MockRealtimeMediaSourceCenter::createMediaStream): (WebCore::MockRealtimeMediaSourceCenter::getMediaStreamTrackSources): (WebCore::MockSource::MockSource): Deleted. (WebCore::MockSource::~MockSource): Deleted. (WebCore::MockSource::capabilities): Deleted. (WebCore::MockSource::states): Deleted. (WebCore::mockAudioSourceID): Deleted. (WebCore::mockVideoSourceID): Deleted. (WebCore::initializeMockSources): Deleted. Mock video source. Generate bip-bop inspired frames with burned in state information. * platform/mock/MockRealtimeVideoSource.cpp: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::startProducingData): (WebCore::MockRealtimeVideoSource::stopProducingData): (WebCore::MockRealtimeVideoSource::elapsedTime): (WebCore::MockRealtimeVideoSource::updateStates): (WebCore::MockRealtimeVideoSource::initializeCapabilities): (WebCore::MockRealtimeVideoSource::setFacingMode): (WebCore::MockRealtimeVideoSource::setFrameRate): (WebCore::MockRealtimeVideoSource::setSize): (WebCore::MockRealtimeVideoSource::drawAnimation): (WebCore::MockRealtimeVideoSource::drawBoxes): (WebCore::MockRealtimeVideoSource::drawText): (WebCore::MockRealtimeVideoSource::generateFrame): (WebCore::MockRealtimeVideoSource::imageBuffer): (WebCore::MockRealtimeVideoSource::paintCurrentFrameInContext): (WebCore::MockRealtimeVideoSource::currentFrameImage): * platform/mock/MockRealtimeVideoSource.h: Added. (WebCore::MockRealtimeVideoSource::~MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::size): (WebCore::MockRealtimeVideoSource::updatePlatformLayer): Canonical link: https://commits.webkit.org/169251@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-11-09 21:20:08 +00:00
"${WEBCORE_DIR}/platform/mediastream/mac"
"${WEBCORE_DIR}/platform/network/cocoa"
"${WEBCORE_DIR}/platform/network/cf"
"${WEBCORE_DIR}/platform/network/ios"
"${WEBCORE_DIR}/platform/network/mac"
"${WEBCORE_DIR}/platform/text/cf"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/platform/text/cocoa"
"${WEBCORE_DIR}/platform/text/mac"
"${WEBCORE_DIR}/platform/spi/cf"
"${WEBCORE_DIR}/platform/spi/cg"
"${WEBCORE_DIR}/platform/spi/cocoa"
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
"${WEBCORE_DIR}/platform/spi/ios"
"${WEBCORE_DIR}/platform/spi/mac"
"${WEBCORE_DIR}/plugins/mac"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WebCore_PRIVATE_FRAMEWORK_HEADERS_DIR}"
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
)
list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.css
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.css
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
)
set(WebCore_USER_AGENT_SCRIPTS
${WEBCORE_DIR}/Modules/plugins/QuickTimePluginReplacement.js
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.js
)
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
[CMake] Ignore warnings in system headers https://bugs.webkit.org/show_bug.cgi?id=144747 Reviewed by Darin Adler. .: Require CMake 2.8.12 when compiling the GTK+ port. This is because we use the target_include_directories command (added in 2.8.11) in GTK-specific cmake files, and also use the SYSTEM argument to the command (added in 2.8.12). * CMakeLists.txt: Source/JavaScriptCore: Separate include directories into WebKit project includes and system includes. Suppress all warnings from headers in system include directories using the SYSTEM argument to the include_directories command. * CMakeLists.txt: * PlatformGTK.cmake: Source/WebCore: Separate include directories into WebKit project includes and system includes. Suppress all warnings from headers in system include directories using the SYSTEM argument to the include_directories command. * CMakeLists.txt: * PlatformEfl.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: Source/WebKit: Separate include directories into WebKit project includes and system includes. Suppress all warnings from headers in system include directories using the SYSTEM argument to the include_directories command. * CMakeLists.txt: * PlatformMac.cmake: Source/WebKit2: Separate include directories into WebKit project includes and system includes. Suppress all warnings from headers in system include directories using the SYSTEM argument to the include_directories command. * CMakeLists.txt: * PlatformEfl.cmake: * PlatformGTK.cmake: Source/WTF: Separate include directories into WebKit project includes and system includes. Suppress all warnings from headers in system include directories using the SYSTEM argument to the include_directories command. * wtf/CMakeLists.txt: * wtf/PlatformEfl.cmake: * wtf/PlatformGTK.cmake: Canonical link: https://commits.webkit.org/163155@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@184536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-05-19 01:35:57 +00:00
list(APPEND WebCore_SYSTEM_INCLUDE_DIRECTORIES
"${CMAKE_OSX_SYSROOT}/usr/include/libxslt"
"${CMAKE_OSX_SYSROOT}/usr/include/libxml2"
)
list(APPEND WebCore_SOURCES
Modules/paymentrequest/MerchantValidationEvent.cpp
Modules/webaudio/MediaStreamAudioSourceCocoa.cpp
Crash in AXIsolatedObject destruction. https://bugs.webkit.org/show_bug.cgi?id=206828 Reviewed by Chris Fleizach. - The previous AXCoreObject::detach method became detachRemoteParts, since this method detaches all references to and from other objects. - The new AXCoreObject::detach method performs three distinctive operations: 1. Detaches the platform wrapper. 2. Detaches all remote references to and from other objects. 3. Sets the object ID to InvalidAXID. - The detachPlatformWrapper method allows for platform-specific customizations. - Added accessibility/isolatedtree/mac/AXIsolatedobject.mm. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * accessibility/AXObjectCache.cpp: (WebCore::AXObjectCache::~AXObjectCache): (WebCore::AXObjectCache::remove): * accessibility/AXObjectCache.h: * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::detachRemoteParts): (WebCore::AccessibilityNodeObject::detach): Became detachRemoteParts. * accessibility/AccessibilityNodeObject.h: * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::detachRemoteParts): (WebCore::AccessibilityObject::detach): Became detachRemoteParts. * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: (WebCore::AXCoreObject::detachWrapper): (WebCore::AXCoreObject::detach): * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::detachRemoteParts): (WebCore::AccessibilityRenderObject::detach): Became detachRemoteParts. * accessibility/AccessibilityRenderObject.h: * accessibility/AccessibilityScrollView.cpp: (WebCore::AccessibilityScrollView::detachRemoteParts): (WebCore::AccessibilityScrollView::detach): Became detachRemoteParts. * accessibility/AccessibilityScrollView.h: * accessibility/atk/AccessibilityObjectAtk.cpp: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/ios/AXObjectCacheIOS.mm: (WebCore::AXObjectCache::detachWrapper): Deleted, no longer used in COCOA platforms. * accessibility/ios/AccessibilityObjectIOS.mm: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/isolatedtree/AXIsolatedObject.cpp: (WebCore::AXIsolatedObject::detachRemoteParts): (WebCore::AXIsolatedObject::detach): Became detachRemoteParts. (WebCore::AXIsolatedObject::disconnect): Replaced with AXCoreObject::detach. * accessibility/isolatedtree/AXIsolatedObject.h: * accessibility/isolatedtree/AXIsolatedTree.cpp: (WebCore::AXIsolatedTree::removeTreeForPageID): (WebCore::AXIsolatedTree::applyPendingChanges): * accessibility/isolatedtree/mac/AXIsolatedObjectMac.mm: (WebCore::AXIsolatedObject::detachPlatformWrapper): * accessibility/mac/AXObjectCacheMac.mm: (WebCore::AXObjectCache::detachWrapper): Deleted, no longer used in COCOA platforms. * accessibility/mac/AccessibilityObjectMac.mm: (WebCore::AccessibilityObject::detachPlatformWrapper): * accessibility/win/AccessibilityObjectWin.cpp: (WebCore::AccessibilityObject::detachPlatformWrapper): Canonical link: https://commits.webkit.org/219831@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@255167 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-27 21:31:01 +00:00
accessibility/isolatedtree/mac/AXIsolatedObjectMac.mm
accessibility/mac/AXObjectCacheMac.mm
accessibility/mac/AccessibilityObjectMac.mm
accessibility/mac/WebAccessibilityObjectWrapperMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
dom/DataTransferMac.mm
dom/SlotAssignment.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
editing/cocoa/AlternativeTextUIController.mm
editing/cocoa/AutofillElements.cpp
editing/mac/EditorMac.mm
editing/mac/TextAlternativeWithRange.mm
editing/mac/TextUndoInsertionMarkupMac.mm
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
editing/mac/UniversalAccessZoom.mm
html/HTMLSlotElement.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
page/PageDebuggable.cpp
page/mac/EventHandlerMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
page/mac/ServicesOverlayController.mm
page/mac/TextIndicatorWindow.mm
page/mac/WheelEventDeltaFilterMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
page/scrolling/mac/ScrollingCoordinatorMac.mm
page/scrolling/mac/ScrollingMomentumCalculatorMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.mm
page/scrolling/mac/ScrollingTreeMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/CPUMonitor.cpp
platform/LocalizedStrings.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/ScrollableArea.cpp
platform/audio/AudioSession.cpp
platform/audio/cocoa/WebAudioBufferList.cpp
platform/audio/mac/AudioBusMac.mm
platform/audio/mac/AudioHardwareListenerMac.cpp
platform/audio/mac/FFTFrameMac.cpp
platform/cf/KeyedDecoderCF.cpp
platform/cf/KeyedEncoderCF.cpp
Make every port implement MainThreadSharedTimer instead of using global functions https://bugs.webkit.org/show_bug.cgi?id=150498 Reviewed by Darin Adler. Move MainThreadSharedTimer to its own files and add the common implementation there. * CMakeLists.txt: Add MainThreadSharedTimer.cpp. * PlatformEfl.cmake: Update filenames. * PlatformGTK.cmake: Ditto. * PlatformMac.cmake: Ditto. * PlatformWin.cmake: Ditto. * platform/MainThreadSharedTimer.cpp: Copied from Source/WebCore/platform/efl/SharedTimerEfl.cpp. (WebCore::MainThreadSharedTimer::singleton): (WebCore::MainThreadSharedTimer::MainThreadSharedTimer): (WebCore::MainThreadSharedTimer::setFiredFunction): (WebCore::MainThreadSharedTimer::fired): * platform/MainThreadSharedTimer.h: Copied from Source/WebCore/platform/gtk/SharedTimerGtk.cpp. * platform/SharedTimer.h: Remove MainThreadSharedTimer implementation and reindent the code. (WebCore::SharedTimer::SharedTimer): (WebCore::SharedTimer::~SharedTimer): (WebCore::SharedTimer::invalidate): * platform/ThreadTimers.cpp: (WebCore::ThreadTimers::ThreadTimers): Use MainThreadSharedTimer::singleton(). (WebCore::ThreadTimers::setSharedTimer): Use a lambda function instead of a pointer to a static method. (WebCore::ThreadTimers::sharedTimerFired): Deleted. * platform/ThreadTimers.h: Removed unsused static method sharedTimerFired. * platform/cf/MainThreadSharedTimerCF.cpp: Renamed from Source/WebCore/platform/cf/SharedTimerCF.cpp. (WebCore::applicationDidBecomeActive): (WebCore::setupPowerObserver): (WebCore::timerFired): (WebCore::restartSharedTimer): (WebCore::MainThreadSharedTimer::invalidate): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): * platform/efl/MainThreadSharedTimerEfl.cpp: Renamed from Source/WebCore/platform/efl/SharedTimerEfl.cpp. (WebCore::timerEvent): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::invalidate): * platform/gtk/MainThreadSharedTimerGtk.cpp: Renamed from Source/WebCore/platform/gtk/SharedTimerGtk.cpp. (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::invalidate): * platform/win/MainThreadSharedTimerWin.cpp: Renamed from Source/WebCore/platform/win/SharedTimerWin.cpp. (WebCore::TimerWindowWndProc): (WebCore::initializeOffScreenTimerWindow): (WebCore::queueTimerProc): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::invalidate): * workers/WorkerRunLoop.cpp: Update WorkerSharedTimer implementation to use std::function instead of a pointer. Also mark the class as final and the virtual implementations as override. Canonical link: https://commits.webkit.org/168889@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-30 13:25:26 +00:00
platform/cf/MainThreadSharedTimerCF.cpp
platform/cf/MediaAccessibilitySoftLink.cpp
platform/cf/RunLoopObserver.cpp
platform/cf/SharedBufferCF.cpp
platform/cocoa/ContentFilterUnblockHandlerCocoa.mm
platform/cocoa/CoreVideoSoftLink.cpp
platform/cocoa/FileMonitorCocoa.mm
platform/cocoa/KeyEventCocoa.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/cocoa/LocalizedStringsCocoa.mm
platform/cocoa/MIMETypeRegistryCocoa.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/cocoa/NetworkExtensionContentFilter.mm
platform/cocoa/ParentalControlsContentFilter.mm
Image pasting is not working on tineye.com / gmail.com / GitHub.com due to lack of support for DataTransfer.items https://bugs.webkit.org/show_bug.cgi?id=170449 <rdar://problem/31432525> Reviewed by Wenson Hsieh. Source/WebCore: The bug was caused by image types in NSPasteboard or UIPasteboard not being treated as file items in dataTransfer. Because there is no Web API to get binary data out of dataTransfer unlike text data, we need to treat any image data as files even if they're entirely in the memory. This patch introduces the notion of pasteboard types to be treated as files and expose them on dataTransfer.files as well as dataTransfer.items of type "file". Because in-memory images are stored as TIFF in macOS and websites don't typically support image/tiff, we convert all such in-memory TIFF images into PNG images ourselves for a better web compatibility. This is done inside read(PasteboardFileReader&) in PasteboardCocoa.mm. Note that PasteboardFileReader cannot directly have RefPtr<File> as a member variable as code in WebCore/platform including Pasteboard code is not supposed to depend on WebCore types. WebCorePasteboardFileReader, a subclass of PasteboardFileReader was introduced to resolve this reverse dependency. In addition, this patch removes the restriction on dataTransfer.items that it only includes files of the supported MIME types. This was unwarranted since 1. we don't have any restriction on what an user can drag & drop into a web page via input element so there is no security benefit in this, and 2. the user should be able to copy & paste whatever file he/she desires regardless of the MIME type on websites like Google Drive. Tests: PasteImage * CMakeLists.txt: * WebCore.xcodeproj/project.pbxproj: * WebCore/PlatformMac.cmake: * dom/DataTransfer.cpp: (WebCore::DataTransfer::types const): Now excludes image/gif, image/png, image/jpeg, and image/tiff. (WebCore::DataTransfer::files const): Add fake files we create for in-memory images but only when there are no real files in the pasteboard since it's expensive to copy image data across UI/Web processes to create a blob URL. * dom/DataTransferItemList.cpp: (WebCore::DataTransferItemList::ensureItems const): Just expose every file type. If the user had decided to paste a file, it's okay for the page to access that file regardless of whether it's a zip file, JPEG image, etc... * editing/WebCorePasteboardFileReader.cpp: (WebCorePasteboardFileReader::~WebCorePasteboardFileReader): (WebCorePasteboardFileReader::read): * editing/WebCorePasteboardFileReader.h: (WebCorePasteboardFileReader): * platform/Pasteboard.cpp: (WebCore::PasteboardImage::PasteboardImage): Moved from platform specific translation units. (WebCore::PasteboardImage::~PasteboardImage): Ditto. * platform/Pasteboard.h: (PasteboardFileReader): Added. (* platform/StaticPasteboard.h: (StaticPasteboard::typesForBindings): Added. (StaticPasteboard::typesTreatedAsFiles): Added. Returns an empty list we don't support the web content writing image files into pasteboard at the moment. * platform/cocoa/PasteboardCocoa.mm: Added. (WebCore::PasteboardWebContent::PasteboardWebContent): Moved from PasteboardMac.mm and PasteboardIOS.mm. (WebCore::PasteboardWebContent::~PasteboardWebContent): (WebCore::cocoaTypeToImageType): Added. (WebCore::imageTypeToMIMEType): Added. Pretends to have image/png when the Cocoa type is image/tiff since most of websites don't support image/tiff. (WebCore::imageTypeToFakeFilename): Added. (WebCore::mimeTypeToImageType): Added. (WebCore::Pasteboard::shouldTreatCocoaTypeAsFile): Added. Pasteboard::typesForBindings excludes the type for which this function returns true. (WebCore::Pasteboard::typesTreatedAsFiles): Returns the list of all in-memory image types in the pasteboard. (WebCore::Pasteboard::read): Added. On macOS, we convert TIFF to PNG for web compatibility. We don't do this rather memory intensive coercion on iOS where most of apps like Photos put PNG file into the pasteboard in the first place. * platform/gtk/PasteboardGtk.cpp: (WebCore::PasteboardImage::PasteboardImage): Deleted. (WebCore::PasteboardImage::~PasteboardImage): Deleted. (WebCore::Pasteboard::read): (WebCore::Pasteboard::typesForBindings): Renamed from types. (WebCore::Pasteboard::typesTreatedAsFiles): * platform/ios/PasteboardIOS.mm: (WebCore::addHTMLClipboardTypesForCocoaType): (WebCore::Pasteboard::typesForBindings): (WebCore::PasteboardWebContent::PasteboardWebContent): Deleted. (WebCore::PasteboardWebContent::~PasteboardWebContent): Deleted. (WebCore::PasteboardImage::PasteboardImage): Deleted. (WebCore::PasteboardImage::~PasteboardImage): Deleted. (WebCore::Pasteboard::types): Deleted. * platform/ios/PlatformPasteboardIOS.mm: (WebCore::safeTypeForDOMToReadAndWriteForPlatformType): Add "Files" to dataTransfer.types when there is an in-memory image type in the pasteboard. * platform/mac/PasteboardMac.mm: (WebCore::PasteboardWebContent::PasteboardWebContent): Deleted. (WebCore::PasteboardWebContent::~PasteboardWebContent): Deleted. (WebCore::PasteboardImage::PasteboardImage): Deleted. (WebCore::PasteboardImage::~PasteboardImage): Deleted. (WebCore::addHTMLClipboardTypesForCocoaType): Moved the check for the legacy NeXT plain text check here. Also add "Files" to dataTransfer.types when there is an in-memory image type in the pasteboard. (WebCore::Pasteboard::typesForBindings): Renamed from types. * platform/mac/PlatformPasteboardMac.mm: (WebCore::safeTypeForDOMToReadAndWriteForPlatformType): Ditto to add "Files". * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::typesForBindings): Renamed from types. (WebCore::Pasteboard::typesTreatedAsFiles): (WebCore::Pasteboard::read): * platform/wpe/PasteboardWPE.cpp: (WebCore::Pasteboard::typesForBindings): Renamed from types. (WebCore::Pasteboard::typesTreatedAsFiles): (WebCore::Pasteboard::read): Source/WebKit: Add sandbox extensions for files in the pasteboard to make copying & pasting image files work. This is what we do for drag & drop but we should consider adding a mechanism to rekoke the extension in the future. * UIProcess/Cocoa/WebPasteboardProxyCocoa.mm: (WebKit::WebPasteboardProxy::getPasteboardPathnamesForType): Add sandbox extensions to the pasted files. * UIProcess/WebPasteboardProxy.h: * UIProcess/WebPasteboardProxy.messages.in: * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: (WebKit::WebPlatformStrategies::getPathnamesForType): Consume the sandbox tokens sent by the UI process permanently since WebCore will now create File objects for these pasted files. Tools: Added an API test to paste an image from pasteboard. The test is shared between iOS and macOS. The tests to paste image files are only enabled on macOS since putting files into pasteboard isn't a thing on iOS. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: Added. (writeImageDataToPasteboard): (writeBundleFileToPasteboard): * TestWebKitAPI/Tests/WebKitCocoa/paste-image.html: Added. * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-100px.tiff: Added. * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-200px.png: Added. * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-400px.gif: Added. * TestWebKitAPI/Tests/WebKitCocoa/sunset-in-cupertino-600px.jpg: Added. * TestWebKitAPI/Tests/ios/DataInteractionTests.mm: Rebaselined the test now that types contain "Files". Canonical link: https://commits.webkit.org/193940@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@222656 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-09-29 18:46:51 +00:00
platform/cocoa/PasteboardCocoa.mm
Make the application PID available to WebCore https://bugs.webkit.org/show_bug.cgi?id=172133 Reviewed by Andreas Kling. Source/WebCore: * CMakeLists.txt: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * platform/RuntimeApplicationChecks.cpp: Added. (WebCore::presentingApplicationPIDOverride): (WebCore::presentingApplicationPID): Returns the override PID if set, or getCurrentProcessID() otherwise. (WebCore::setPresentingApplicationPID): * platform/RuntimeApplicationChecks.h: * platform/cocoa/RuntimeApplicationChecksCocoa.mm: Renamed from Source/WebCore/platform/RuntimeApplicationChecks.mm. Source/WebKit2: Added uiProcessPID to Web and Networking process creation parameters. The UI process initializes these to getpid(), and the child processes call WebCore::setPresentingApplicationPID() at initialization time. This replaces presenterApplicationPid. * NetworkProcess/NetworkProcess.cpp: (WebKit::NetworkProcess::initializeNetworkProcess): * NetworkProcess/NetworkProcessCreationParameters.cpp: (WebKit::NetworkProcessCreationParameters::encode): (WebKit::NetworkProcessCreationParameters::decode): * NetworkProcess/NetworkProcessCreationParameters.h: * Shared/WebProcessCreationParameters.cpp: (WebKit::WebProcessCreationParameters::encode): (WebKit::WebProcessCreationParameters::decode): * Shared/WebProcessCreationParameters.h: * UIProcess/Cocoa/WebProcessPoolCocoa.mm: (WebKit::WebProcessPool::platformInitializeWebProcess): * UIProcess/WebProcessPool.cpp: (WebKit::WebProcessPool::ensureNetworkProcess): (WebKit::WebProcessPool::createNewWebProcess): * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::platformInitialize): * WebProcess/WebProcess.cpp: (WebKit::WebProcess::initializeWebProcess): * WebProcess/WebProcess.h: (WebKit::WebProcess::presenterApplicationPid): Deleted. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::platformInitializeWebProcess): Canonical link: https://commits.webkit.org/189079@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@216903 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-05-16 06:06:58 +00:00
platform/cocoa/RuntimeApplicationChecksCocoa.mm
platform/cocoa/SearchPopupMenuCocoa.mm
platform/cocoa/SharedBufferCocoa.mm
platform/cocoa/SystemBattery.mm
platform/cocoa/SystemVersion.mm
platform/cocoa/TelephoneNumberDetectorCocoa.cpp
platform/cocoa/ThemeCocoa.mm
platform/cocoa/VideoToolboxSoftLink.cpp
platform/cocoa/WebCoreNSErrorExtras.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/gamepad/cocoa/GameControllerSoftLink.mm
platform/gamepad/mac/HIDGamepad.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/graphics/DisplayRefreshMonitor.cpp
platform/graphics/DisplayRefreshMonitorManager.cpp
platform/graphics/FourCC.cpp
platform/graphics/avfoundation/AVTrackPrivateAVFObjCImpl.mm
platform/graphics/avfoundation/AudioSourceProviderAVFObjC.mm
platform/graphics/avfoundation/CDMFairPlayStreaming.cpp
platform/graphics/avfoundation/CDMPrivateMediaSourceAVFObjC.mm
platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp
platform/graphics/avfoundation/InbandTextTrackPrivateAVF.cpp
[iPad] YouTube does not automatically AirPlay when a route is selected from Control Center https://bugs.webkit.org/show_bug.cgi?id=206539 Source/WebCore: Patch by Jer Noble <jer.noble@apple.com> on 2020-01-21 Reviewed by Eric Carlson. No new tests; change affects an interaction with two platform features (local AirPlay route picking and actual remote playback over AirPlay routes) that is not testable in an automated fashion. The underlying source of the bug is the difference in how the platform communitcates that an AirPlay route was picked between iOS and macOS. On iOS, route changes are global and are generally pushed up from AVPlayer notifications. On macOS, route changes are local to the app and are pushed down from the UIProcess. But when MSE playback was enabled on iPadOS, there was now a limbo where media playback was no longer using an AVPlayer, but at the same time, route changes could be initiated globally. The end result is that MSE-based media elements are never notified that they "should play to playback target", and no remote playback events are ever fired. To re-create the same macOS behavior when MSE-backed media elements are used on iPadOS, re-use the existing route change detection logic in MediaSessionManageriOS to query whether the newly established route supports AirPlay Video, and if so, send a message to the "now playing" media element that it should begin AirPlaying, which will fail, but will trigger the YouTube player to switch to a HLS-backed media element. This requires renaming MediaPlaybackTargetMac -> MediaPlaybackTargetCocoa. * SourcesCocoa.txt: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange): (-[WebMediaSessionHelper activeAudioRouteDidChange:]): * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.h: Renamed from Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetMac.h. (WebCore::MediaPlaybackTargetCocoa::outputContext const): * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm: Renamed from Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetMac.mm. (WebCore::MediaPlaybackTargetCocoa::create): (WebCore::MediaPlaybackTargetCocoa::MediaPlaybackTargetCocoa): (WebCore::MediaPlaybackTargetCocoa::~MediaPlaybackTargetCocoa): (WebCore::MediaPlaybackTargetCocoa::targetContext const): (WebCore::MediaPlaybackTargetCocoa::hasActiveRoute const): (WebCore::MediaPlaybackTargetCocoa::deviceName const): (WebCore::toMediaPlaybackTargetCocoa): * platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm: (WebCore::MediaPlaybackTargetPickerMac::playbackTarget): * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::setWirelessPlaybackTarget): Source/WebKit: <rdar://problem/54173689> Patch by Jer Noble <jer.noble@apple.com> on 2020-01-21 Reviewed by Eric Carlson. * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::playbackTargetSelected const): Canonical link: https://commits.webkit.org/219613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-21 21:44:00 +00:00
platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm
platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp
platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm
platform/graphics/avfoundation/objc/AVAssetTrackUtilities.mm
platform/graphics/avfoundation/objc/AudioTrackPrivateAVFObjC.mm
platform/graphics/avfoundation/objc/AudioTrackPrivateMediaSourceAVFObjC.cpp
platform/graphics/avfoundation/objc/CDMInstanceFairPlayStreamingAVFObjC.mm
platform/graphics/avfoundation/objc/CDMSessionAVContentKeySession.mm
platform/graphics/avfoundation/objc/CDMSessionAVFoundationObjC.mm
platform/graphics/avfoundation/objc/CDMSessionAVStreamSession.mm
platform/graphics/avfoundation/objc/CDMSessionMediaSourceAVFObjC.mm
platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.mm
platform/graphics/avfoundation/objc/InbandTextTrackPrivateAVFObjC.mm
platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm
platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm
platform/graphics/avfoundation/objc/MediaSampleAVFObjC.mm
platform/graphics/avfoundation/objc/MediaSourcePrivateAVFObjC.mm
platform/graphics/avfoundation/objc/SourceBufferPrivateAVFObjC.mm
platform/graphics/avfoundation/objc/VideoTrackPrivateAVFObjC.cpp
platform/graphics/avfoundation/objc/VideoTrackPrivateMediaSourceAVFObjC.mm
platform/graphics/avfoundation/objc/WebCoreAVFResourceLoader.mm
platform/graphics/ca/GraphicsLayerCA.cpp
platform/graphics/ca/LayerPool.cpp
platform/graphics/ca/PlatformCAAnimation.cpp
platform/graphics/ca/PlatformCALayer.cpp
platform/graphics/ca/TileController.cpp
platform/graphics/ca/TileCoverageMap.cpp
platform/graphics/ca/TileGrid.cpp
platform/graphics/ca/TransformationMatrixCA.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm
platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm
platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm
platform/graphics/ca/cocoa/WebSystemBackdropLayer.mm
platform/graphics/ca/cocoa/WebTiledBackingLayer.mm
platform/graphics/cg/ColorCG.cpp
Simplify adding new color spaces to WebCore https://bugs.webkit.org/show_bug.cgi?id=220146 Reviewed by Dean Jackson. Reduce the number of places one needs to touch when adding new color types to: - ColorTypes.h - ColorConversion.h/cpp - ColorSpace.h/cpp (only needed if support in Color is required). - ColorSerialization.h (only needed if support in Color is required). - ColorSpaceCG.h/cpp (only needed if support in Color is required). * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Add ColorSpace.cpp, ColorSpaceCG.h and ColorSpaceCG.cpp. * platform/graphics/Color.cpp: * platform/graphics/Color.h: (WebCore::Color::Color): (WebCore::Color::setColor): Replace specific overloads of the contructor and setColor with template functions that do the same things. These are safe to make as if a non-supported color type (one that doesn't have a colorSpace member) is passed it will fail to compile due to use beneath ExtendedColor::create(). Also moves WTF::TextStream operator<< overload for ColorSpace out and into ColorSpace.cpp where it makes more sense. * platform/graphics/ColorConversion.cpp: * platform/graphics/ColorConversion.h: Re-order and explicitly comment conversion functions to be more clear. As the comment indicates, all color types must implement at least the following conversions: XYZA<float> toXYZA(const ColorType<float>&); ColorType<float> toColorType(const XYZA<float>&); This allows generic fallback code, inline at the bottom of the header, to support conversion to and from any set of colors. Additional conversion functions are useful for the cases where the optimal or base conversion is not through XYZ such as from SRGBA to LinearSRGBA. To allow this to work a few additional conversion functions were added which just combine existing conversions together and one was added for SRGBA to CMYKA which was missing, though currently unused. * platform/graphics/ColorSpace.cpp: Added. (WebCore::operator<<): * platform/graphics/ColorSpace.h: Moved from Color.h * platform/graphics/ColorTypes.h: (WebCore::callWithColorType): This is a generalization of ExtendedColor::callOnUnderlyingType() that also has the benefit of now being in the same file as the color type definitions, reducing the number of files people need to touch. * platform/graphics/ColorUtilities.h: (WebCore::colorByModifingEachNonAlphaComponent): Update to not assume that colors use the names red/green/blue for non-alpha components. This makes it work generically for all four component color types. * platform/graphics/ExtendedColor.h: (WebCore::ExtendedColor::callOnUnderlyingType const): Use generalized form, callWithColorType to avoid requiring modiftying this when new color types are added. * platform/graphics/cg/ColorCG.cpp: (WebCore::leakCGColor): When going to generalize this (we could have simply called `return CGColorCreate(cachedCGColorSpace(colorSpace), cgFloatComponents))` I noticed this was not doing the right thing for CG ports that don't support all the color spaces WebCore requires (such as Windows). For instance, displayP3ColorSpaceRef() just returns sRGBColorSpaceRef() on windows, meaning we would be taking some DisplayP3 components and having CG interpret them as sRGB. To avoid this, we now check if the color space returned is the fallback color space, sRGB, and do our own conversion to sRGB using ColorConversion before creating the color. This also resolves a long standing bug / FIXME around LinearRGB where we were using sRGBColorSpaceRef() for them. In practice, we don't actually ever create LinearRGB CGColorRefs right now, but if we ever do in the future, makes sense to use the right color space. * platform/graphics/cg/ColorSpaceCG.cpp: Added. (WebCore::sRGBColorSpaceRef): (WebCore::linearRGBColorSpaceRef): (WebCore::displayP3ColorSpaceRef): (WebCore::extendedSRGBColorSpaceRef): * platform/graphics/cg/ColorSpaceCG.h: Added. (WebCore::cachedCGColorSpace): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::sRGBColorSpaceRef): Deleted. (WebCore::linearRGBColorSpaceRef): Deleted. (WebCore::extendedSRGBColorSpaceRef): Deleted. (WebCore::displayP3ColorSpaceRef): Deleted. * platform/graphics/cg/GraphicsContextCG.h: (WebCore::cachedCGColorSpace): Deleted. Moved color space specific CG code to its own files to make it more clear where to find them. Canonical link: https://commits.webkit.org/232686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-26 17:42:33 +00:00
platform/graphics/cg/ColorSpaceCG.cpp
platform/graphics/cg/FloatPointCG.cpp
platform/graphics/cg/FloatRectCG.cpp
platform/graphics/cg/FloatSizeCG.cpp
platform/graphics/cg/GradientCG.cpp
Rename GraphicsContext3D to GraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=205778 <rdar://problem/58327597> Reviewed by Sam Weinig. Rename all the GraphicsContext3D things to GraphicsContextGL (includes Extensions3D and GRAPHICS_CONTEXT_3D). GraphicsContext3DBase now becomes GraphicsContextGL. GraphicsContext3D is now GraphicsContextGLOpenGL (since it represents the OpenGL implementation of the API). .: * Source/CMakeLists.txt: * Source/cmake/OptionsFTW.cmake: * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsMac.cmake: * Source/cmake/OptionsPlayStation.cmake: * Source/cmake/OptionsWPE.cmake: * Source/cmake/OptionsWinCairo.cmake: PerformanceTests: * StitchMarker/wtf/FeatureDefines.h: * StitchMarker/wtf/Platform.h: Source/WebCore: * CMakeLists.txt: * Headers.cmake: * PlatformAppleWin.cmake: * PlatformFTW.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * SourcesGTK.txt: * SourcesWPE.txt: * WebCore.xcodeproj/project.pbxproj: * html/HTMLVideoElement.cpp: * html/HTMLVideoElement.h: * html/OffscreenCanvas.cpp: * html/canvas/ANGLEInstancedArrays.cpp: * html/canvas/OESVertexArrayObject.cpp: * html/canvas/WebGL2RenderingContext.cpp: * html/canvas/WebGL2RenderingContext.h: * html/canvas/WebGLActiveInfo.h: * html/canvas/WebGLBuffer.cpp: * html/canvas/WebGLBuffer.h: * html/canvas/WebGLCompressedTextureASTC.cpp: * html/canvas/WebGLCompressedTextureATC.cpp: * html/canvas/WebGLCompressedTextureETC.cpp: * html/canvas/WebGLCompressedTextureETC1.cpp: * html/canvas/WebGLCompressedTexturePVRTC.cpp: * html/canvas/WebGLCompressedTextureS3TC.cpp: * html/canvas/WebGLContextAttributes.h: * html/canvas/WebGLContextGroup.cpp: * html/canvas/WebGLContextGroup.h: * html/canvas/WebGLContextObject.cpp: * html/canvas/WebGLContextObject.h: * html/canvas/WebGLDebugShaders.cpp: * html/canvas/WebGLDepthTexture.cpp: * html/canvas/WebGLDepthTexture.h: * html/canvas/WebGLDrawBuffers.cpp: * html/canvas/WebGLFramebuffer.cpp: * html/canvas/WebGLFramebuffer.h: * html/canvas/WebGLObject.cpp: * html/canvas/WebGLObject.h: * html/canvas/WebGLProgram.cpp: * html/canvas/WebGLProgram.h: * html/canvas/WebGLQuery.cpp: * html/canvas/WebGLQuery.h: * html/canvas/WebGLRenderbuffer.cpp: * html/canvas/WebGLRenderbuffer.h: * html/canvas/WebGLRenderingContext.cpp: * html/canvas/WebGLRenderingContext.h: * html/canvas/WebGLRenderingContextBase.cpp: * html/canvas/WebGLRenderingContextBase.h: * html/canvas/WebGLSampler.cpp: * html/canvas/WebGLSampler.h: * html/canvas/WebGLShader.cpp: * html/canvas/WebGLShader.h: * html/canvas/WebGLShaderPrecisionFormat.h: * html/canvas/WebGLSharedObject.cpp: * html/canvas/WebGLSharedObject.h: * html/canvas/WebGLSync.cpp: * html/canvas/WebGLSync.h: * html/canvas/WebGLTexture.cpp: * html/canvas/WebGLTexture.h: * html/canvas/WebGLTransformFeedback.cpp: * html/canvas/WebGLTransformFeedback.h: * html/canvas/WebGLVertexArrayObject.cpp: * html/canvas/WebGLVertexArrayObject.h: * html/canvas/WebGLVertexArrayObjectBase.cpp: * html/canvas/WebGLVertexArrayObjectBase.h: * html/canvas/WebGLVertexArrayObjectOES.cpp: * html/canvas/WebGLVertexArrayObjectOES.h: * inspector/InspectorShaderProgram.cpp: * loader/FrameLoaderClient.h: * page/Chrome.cpp: * platform/SourcesCairo.txt: * platform/TextureMapper.cmake: * platform/WebGLStateTracker.cpp: * platform/WebGLStateTracker.h: * platform/graphics/ANGLEWebKitBridge.cpp: * platform/graphics/ExtensionsGL.h: Renamed from Source/WebCore/platform/graphics/Extensions3D.h. * platform/graphics/FormatConverter.cpp: * platform/graphics/FormatConverter.h: * platform/graphics/GLContext.cpp: * platform/graphics/GLContext.h: * platform/graphics/GraphicsContext.h: * platform/graphics/GraphicsContext3D.cpp: Removed. * platform/graphics/GraphicsContext3DBase.cpp: Removed. * platform/graphics/GraphicsContextGL.cpp: Added. * platform/graphics/GraphicsContextGL.h: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DBase.h. * platform/graphics/GraphicsContextGLAttributes.h: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DAttributes.h. * platform/graphics/ImageBuffer.cpp: * platform/graphics/ImageBuffer.h: * platform/graphics/MediaPlayer.cpp: * platform/graphics/MediaPlayer.h: * platform/graphics/MediaPlayerPrivate.h: * platform/graphics/OpenGLShims.cpp: * platform/graphics/angle/ExtensionsGLANGLE.cpp: Renamed from Source/WebCore/platform/graphics/angle/Extensions3DANGLE.cpp. * platform/graphics/angle/ExtensionsGLANGLE.h: Renamed from Source/WebCore/platform/graphics/angle/Extensions3DANGLE.h. * platform/graphics/angle/GraphicsContextGLANGLE.cpp: Renamed from Source/WebCore/platform/graphics/angle/GraphicsContext3DANGLE.cpp. * platform/graphics/angle/TemporaryANGLESetting.cpp: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: * platform/graphics/cairo/GraphicsContextGLCairo.cpp: Renamed from Source/WebCore/platform/graphics/cairo/GraphicsContext3DCairo.cpp. * platform/graphics/cairo/ImageBufferCairo.cpp: * platform/graphics/cg/GraphicsContextGLCG.cpp: Renamed from Source/WebCore/platform/graphics/cg/GraphicsContext3DCG.cpp. * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: Renamed from Source/WebCore/platform/graphics/cocoa/GraphicsContext3DCocoa.mm. * platform/graphics/cocoa/IOSurface.mm: * platform/graphics/cocoa/WebGLLayer.h: * platform/graphics/cocoa/WebGLLayer.mm: * platform/graphics/cpu/arm/GraphicsContextGLNEON.h: Renamed from Source/WebCore/platform/graphics/cpu/arm/GraphicsContext3DNEON.h. * platform/graphics/cv/TextureCacheCV.h: * platform/graphics/cv/TextureCacheCV.mm: * platform/graphics/cv/VideoTextureCopierCV.cpp: * platform/graphics/cv/VideoTextureCopierCV.h: * platform/graphics/egl/GLContextEGL.cpp: * platform/graphics/egl/GLContextEGL.h: * platform/graphics/glx/GLContextGLX.cpp: * platform/graphics/glx/GLContextGLX.h: * platform/graphics/gpu/Texture.cpp: * platform/graphics/gpu/Texture.h: * platform/graphics/gstreamer/GLVideoSinkGStreamer.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.cpp: * platform/graphics/gstreamer/MediaPlayerPrivateGStreamer.h: * platform/graphics/ios/GraphicsContextGLOpenGLESIOS.h: Renamed from Source/WebCore/platform/graphics/ios/GraphicsContext3DIOS.h. * platform/graphics/nicosia/texmap/NicosiaGC3DANGLELayer.cpp: * platform/graphics/nicosia/texmap/NicosiaGC3DANGLELayer.h: * platform/graphics/nicosia/texmap/NicosiaGC3DLayer.cpp: * platform/graphics/nicosia/texmap/NicosiaGC3DLayer.h: * platform/graphics/opengl/ExtensionsGLOpenGL.cpp: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp. * platform/graphics/opengl/ExtensionsGLOpenGL.h: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.h. * platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLCommon.cpp. * platform/graphics/opengl/ExtensionsGLOpenGLCommon.h: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLCommon.h. * platform/graphics/opengl/ExtensionsGLOpenGLES.cpp: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.cpp. * platform/graphics/opengl/ExtensionsGLOpenGLES.h: Renamed from Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLES.h. * platform/graphics/opengl/GraphicsContextGLOpenGL.cpp: Added. * platform/graphics/opengl/GraphicsContextGLOpenGL.h: Renamed from Source/WebCore/platform/graphics/GraphicsContext3D.h. * platform/graphics/opengl/GraphicsContextGLOpenGLBase.cpp: Renamed from Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGL.cpp. * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: Renamed from Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp. * platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp: Renamed from Source/WebCore/platform/graphics/opengl/GraphicsContext3DOpenGLES.cpp. * platform/graphics/opengl/GraphicsContextGLOpenGLManager.cpp: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DManager.cpp. * platform/graphics/opengl/GraphicsContextGLOpenGLManager.h: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DManager.h. * platform/graphics/opengl/GraphicsContextGLOpenGLPrivate.cpp: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DPrivate.cpp. * platform/graphics/opengl/GraphicsContextGLOpenGLPrivate.h: Renamed from Source/WebCore/platform/graphics/GraphicsContext3DPrivate.h. * platform/graphics/opengl/TemporaryOpenGLSetting.cpp: * platform/graphics/opengl/TemporaryOpenGLSetting.h: * platform/graphics/texmap/BitmapTextureGL.cpp: * platform/graphics/texmap/GraphicsContextGLTextureMapper.cpp: Renamed from Source/WebCore/platform/graphics/texmap/GraphicsContext3DTextureMapper.cpp. * platform/graphics/texmap/TextureMapperGC3DPlatformLayer.cpp: * platform/graphics/texmap/TextureMapperGC3DPlatformLayer.h: * platform/graphics/texmap/TextureMapperGL.cpp: * platform/graphics/win/GraphicsContextGLDirect2D.cpp: Renamed from Source/WebCore/platform/graphics/win/GraphicsContext3DDirect2D.cpp. * testing/Internals.cpp: Source/WebKit: * CMakeLists.txt: * UIProcess/gtk/WaylandCompositor.cpp: (WebKit::WaylandCompositor::initializeEGL): * UIProcess/mac/HighPerformanceGPUManager.cpp: * WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp: (WebKit::MediaPlayerPrivateRemote::copyVideoTextureToPlatformTexture): * WebProcess/GPU/media/MediaPlayerPrivateRemote.h: * WebProcess/WebPage/WebPage.cpp: * WebProcess/WebPage/mac/WebPageMac.mm: * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::displayConfigurationChanged): Source/WTF: * wtf/FeatureDefines.h: * wtf/Platform.h: Tools: * Scripts/webkitpy/common/config/watchlist: Canonical link: https://commits.webkit.org/218939@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254064 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-06 18:52:42 +00:00
platform/graphics/cg/GraphicsContextGLCG.cpp
platform/graphics/cg/GraphicsContextCG.cpp
platform/graphics/cg/IOSurfacePool.cpp
Allow different back-ends for ImageBuffer https://bugs.webkit.org/show_bug.cgi?id=207048 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2020-02-18 Reviewed by Tim Horton. Source/WebCore: ImageBuffer will be re-factored to decouple the platform specifics and the back-end details from the interface "ImageBuffer". A class hierarchy for the ImageBufferBackend will added to allow code sharing and to split the code according to the platform and the back-end details. ImageBuffer will be kept interface with the rest of the code but different back-ends will be created. ConcreteImageBuffer is a template class which inherits ImageBuffer and will act as a bridge to the concrete ImageBufferBackend. Based on the RenderingMode, a ConcreteImageBuffer<BackendType> will be created. Instead of checking the renderingMode in many places of the code and instead of and using preprocessor directives, all these decisions will be made in the concrete ImageBufferBackend. This re-factoring will allow creating new types of ImageBuffers backed by new ImageBufferBackends. These new ImageBufferBackends will implement DisplayList drawing and synchronize remote rendering. * Headers.cmake: * PlatformAppleWin.cmake: * PlatformFTW.cmake: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/CanvasBase.cpp: (WebCore::CanvasBase::setImageBuffer const): * platform/Cairo.cmake: * platform/SourcesCairo.txt: * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::nativeImageForCurrentFrameRespectingOrientation): * platform/graphics/ConcreteImageBuffer.h: Added. (WebCore::ConcreteImageBuffer::create): (WebCore::ConcreteImageBuffer::ConcreteImageBuffer): (WebCore::ConcreteImageBuffer::ensureBackend const): (WebCore::ConcreteImageBuffer::putImageData): * platform/graphics/ImageBuffer.cpp: (WebCore::ImageBuffer::create): (WebCore::ImageBuffer::createCompatibleBuffer): (WebCore::ImageBuffer::sizeNeedsClamping): (WebCore::ImageBuffer::compatibleBufferSize): (WebCore::ImageBuffer::sinkIntoNativeImage): (WebCore::ImageBuffer::sinkIntoImage): (WebCore::ImageBuffer::drawConsuming): (WebCore::ImageBuffer::toBGRAData const): Deleted. (WebCore::ImageBuffer::transformColorSpace): Deleted. (WebCore::ImageBuffer::genericConvertToLuminanceMask): Deleted. (WebCore::ImageBuffer::convertToLuminanceMask): Deleted. (WebCore::ImageBuffer::platformLayer const): Deleted. (WebCore::ImageBuffer::copyToPlatformTexture): Deleted. (WebCore::ImageBuffer::memoryCost const): Deleted. (WebCore::ImageBuffer::externalMemoryCost const): Deleted. * platform/graphics/ImageBuffer.h: (WebCore::ImageBuffer::draw): (WebCore::ImageBuffer::drawPattern): (WebCore::ImageBuffer::drawConsuming): (WebCore::ImageBuffer::putImageData): (): Deleted. (WebCore::ImageBuffer::internalSize const): Deleted. (WebCore::ImageBuffer::logicalSize const): Deleted. (WebCore::ImageBuffer::resolutionScale const): Deleted. (WebCore::ImageBuffer::baseTransform const): Deleted. * platform/graphics/ImageBufferBackend.cpp: Added. (WebCore::ImageBufferBackend::ImageBufferBackend): (WebCore::ImageBufferBackend::calculateBackendSize): (WebCore::ImageBufferBackend::sinkIntoNativeImage): (WebCore::ImageBufferBackend::sinkIntoImage): (WebCore::ImageBufferBackend::drawConsuming): (WebCore::ImageBufferBackend::convertToLuminanceMask): (WebCore::ImageBufferBackend::toBGRAData const): (WebCore::copyPremultipliedToPremultiplied): (WebCore::copyPremultipliedToUnpremultiplied): (WebCore::copyUnpremultipliedToPremultiplied): (WebCore::copyFunctor): (WebCore::ImageBufferBackend::copyImagePixels const): (WebCore::ImageBufferBackend::getImageData const): (WebCore::ImageBufferBackend::putImageData): * platform/graphics/ImageBufferBackend.h: Added. (WebCore::ImageBufferBackend::flushContext): (WebCore::ImageBufferBackend::logicalSize const): (WebCore::ImageBufferBackend::backendSize const): (WebCore::ImageBufferBackend::resolutionScale const): (WebCore::ImageBufferBackend::colorSpace const): (WebCore::ImageBufferBackend::baseTransform const): (WebCore::ImageBufferBackend::memoryCost const): (WebCore::ImageBufferBackend::externalMemoryCost const): (WebCore::ImageBufferBackend::transformColorSpace): (WebCore::ImageBufferBackend::platformLayer const): (WebCore::ImageBufferBackend::copyToPlatformTexture const): (WebCore::ImageBufferBackend::bytesPerRow const): (WebCore::ImageBufferBackend::backendColorFormat const): (WebCore::ImageBufferBackend::toBackendCoordinates const): (WebCore::ImageBufferBackend::logicalRect const): (WebCore::ImageBufferBackend::backendRect const): * platform/graphics/PlatformImageBuffer.h: Added. * platform/graphics/ShadowBlur.cpp: (WebCore::ShadowBlur::drawShadowBuffer): * platform/graphics/cairo/CairoOperations.cpp: (WebCore::Cairo::drawShadowLayerBuffer): (WebCore::Cairo::drawShadowImage): (WebCore::Cairo::fillShadowBuffer): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::clipToImageBuffer): * platform/graphics/cairo/GraphicsContextImplCairo.cpp: (WebCore::GraphicsContextImplCairo::clipToImageBuffer): * platform/graphics/cairo/ImageBufferCairo.cpp: Removed. * platform/graphics/cairo/ImageBufferCairoBackend.cpp: Added. (WebCore::ImageBufferCairoBackend::copyImage const): (WebCore::ImageBufferCairoBackend::draw): (WebCore::ImageBufferCairoBackend::drawPattern): (WebCore::ImageBufferCairoBackend::transformColorSpace): (WebCore::ImageBufferCairoBackend::toDataURL const): (WebCore::ImageBufferCairoBackend::toData const): * platform/graphics/cairo/ImageBufferCairoBackend.h: Added. (WebCore::ImageBufferCairoBackend::platformTransformColorSpace): * platform/graphics/cairo/ImageBufferCairoGLSurfaceBackend.cpp: Added. (WebCore::clearSurface): (WebCore::ImageBufferCairoGLSurfaceBackend::create): (WebCore::ImageBufferCairoGLSurfaceBackend::ImageBufferCairoGLSurfaceBackend): (WebCore::ImageBufferCairoGLSurfaceBackend::~ImageBufferCairoGLSurfaceBackend): (WebCore::ImageBuffer::platformLayer const): (WebCore::ImageBufferCairoGLSurfaceBackend::copyToPlatformTexture): (WebCore::ImageBufferCairoGLSurfaceBackend::createCompositorBuffer): (WebCore::ImageBufferCairoGLSurfaceBackend::swapBuffersIfNeeded): (WebCore::ImageBufferCairoGLSurfaceBackend::paintToTextureMapper): * platform/graphics/cairo/ImageBufferCairoGLSurfaceBackend.h: Added. * platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp: Added. (WebCore::ImageBufferCairoImageSurfaceBackend::create): (WebCore::ImageBufferCairoImageSurfaceBackend::ImageBufferCairoImageSurfaceBackend): (WebCore::ImageBufferCairoImageSurfaceBackend::platformTransformColorSpace): * platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.h: Added. * platform/graphics/cairo/ImageBufferCairoSurfaceBackend.cpp: Added. (WebCore::ImageBufferCairoSurfaceBackend::ImageBufferCairoSurfaceBackend): (WebCore::ImageBufferCairoSurfaceBackend::context const): (WebCore::ImageBufferCairoSurfaceBackend::bytesPerRow const): (WebCore::ImageBufferCairoSurfaceBackend::copyNativeImage const): (WebCore::ImageBufferCairoSurfaceBackend::cairoSurfaceCoerceToImage const): (WebCore::ImageBufferCairoSurfaceBackend::toBGRAData const): (WebCore::ImageBufferCairoSurfaceBackend::getImageData const): (WebCore::ImageBufferCairoSurfaceBackend::putImageData): * platform/graphics/cairo/ImageBufferCairoSurfaceBackend.h: Added. * platform/graphics/cg/ImageBufferCG.cpp: Removed. * platform/graphics/cg/ImageBufferCGBackend.cpp: Added. (WebCore::ImageBufferCGBackend::contextColorSpace): (WebCore::ImageBufferCGBackend::setupContext): (WebCore::createCroppedImageIfNecessary): (WebCore::createBitmapImageAfterScalingIfNeeded): (WebCore::ImageBufferCGBackend::copyImage const): (WebCore::ImageBufferCGBackend::sinkIntoImage): (WebCore::ImageBufferCGBackend::draw): (WebCore::ImageBufferCGBackend::drawPattern): (WebCore::ImageBufferCGBackend::baseTransform const): (WebCore::ImageBufferCGBackend::toCFData const): (WebCore::ImageBufferCGBackend::toData const): (WebCore::ImageBufferCGBackend::toDataURL const): (WebCore::makeVImageBuffer): (WebCore::copyImagePixelsAccelerated): (WebCore::ImageBufferCGBackend::copyImagePixels const): * platform/graphics/cg/ImageBufferCGBackend.h: Added. * platform/graphics/cg/ImageBufferCGBitmapBackend.cpp: Added. (WebCore::ImageBufferCGBitmapBackend::create): (WebCore::ImageBufferCGBitmapBackend::ImageBufferCGBitmapBackend): (WebCore::ImageBufferCGBitmapBackend::context const): (WebCore::ImageBufferCGBitmapBackend::copyNativeImage const): (WebCore::ImageBufferCGBitmapBackend::toBGRAData const): (WebCore::ImageBufferCGBitmapBackend::getImageData const): (WebCore::ImageBufferCGBitmapBackend::putImageData): * platform/graphics/cg/ImageBufferCGBitmapBackend.h: Added. * platform/graphics/cg/ImageBufferDataCG.cpp: Removed. * platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp: Added. (WebCore::ImageBufferIOSurfaceBackend::calculateBackendSize): (WebCore::ImageBufferIOSurfaceBackend::contextColorSpace): (WebCore::ImageBufferIOSurfaceBackend::create): (WebCore::ImageBufferIOSurfaceBackend::ImageBufferIOSurfaceBackend): (WebCore::ImageBufferIOSurfaceBackend::context const): (WebCore::ImageBufferIOSurfaceBackend::flushContext): (WebCore::ImageBufferIOSurfaceBackend::memoryCost const): (WebCore::ImageBufferIOSurfaceBackend::externalMemoryCost const): (WebCore::ImageBufferIOSurfaceBackend::bytesPerRow const): (WebCore::ImageBufferIOSurfaceBackend::backendColorFormat const): (WebCore::ImageBufferIOSurfaceBackend::copyNativeImage const): (WebCore::ImageBufferIOSurfaceBackend::sinkIntoNativeImage): (WebCore::ImageBufferIOSurfaceBackend::drawConsuming): (WebCore::ImageBufferIOSurfaceBackend::toBGRAData const): (WebCore::ImageBufferIOSurfaceBackend::getImageData const): (WebCore::ImageBufferIOSurfaceBackend::putImageData): * platform/graphics/cg/ImageBufferIOSurfaceBackend.h: Added. * platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::updateCachedImageIfNeeded): * platform/graphics/cocoa/IOSurface.mm: (WebCore::IOSurface::createFromImageBuffer): Deleted. * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: (WebCore::GraphicsContextGLOpenGL::paintRenderingResultsToCanvas): * platform/graphics/win/ImageBufferDataDirect2D.cpp: Removed. * platform/graphics/win/ImageBufferDataDirect2D.h: Removed. * platform/graphics/win/ImageBufferDirect2D.cpp: Removed. * platform/graphics/win/ImageBufferDirect2DBackend.cpp: Added. (WebCore::ImageBufferDirect2DBackend::create): (WebCore::ImageBufferDirect2DBackend::ImageBufferDirect2DBackend): (WebCore::ImageBufferDirect2DBackend::context const): (WebCore::ImageBufferDirect2DBackend::flushContext): (WebCore::ImageBufferDirect2DBackend::copyNativeImage const): (WebCore::createCroppedImageIfNecessary): (WebCore::createBitmapImageAfterScalingIfNeeded): (WebCore::ImageBufferDirect2DBackend::copyImage const): (WebCore::ImageBufferDirect2DBackend::sinkIntoImage): (WebCore::ImageBufferDirect2DBackend::compatibleBitmap): (WebCore::ImageBufferDirect2DBackend::draw): (WebCore::ImageBufferDirect2DBackend::drawPattern): (WebCore::ImageBufferDirect2DBackend::toDataURL const): (WebCore::ImageBufferDirect2DBackend::toData const): (WebCore::ImageBufferDirect2DBackend::toBGRAData const): (WebCore::ImageBufferDirect2DBackend::getImageData const): (WebCore::ImageBufferDirect2DBackend::putImageData): * platform/graphics/win/ImageBufferDirect2DBackend.h: Added. * platform/mediastream/gstreamer/MockGStreamerVideoCaptureSource.cpp: (WebCore::WrappedMockRealtimeVideoSource::updateSampleBuffer): * rendering/svg/SVGRenderingContext.cpp: (WebCore::SVGRenderingContext::bufferForeground): Source/WebKit: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::createSelectionSnapshot const): Canonical link: https://commits.webkit.org/220895@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-19 01:12:47 +00:00
platform/graphics/cg/ImageBufferCGBackend.cpp
platform/graphics/cg/ImageBufferCGBitmapBackend.cpp
platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp
platform/graphics/cg/ImageBufferUtilitiesCG.cpp
Move the CG ImageDecoder class from ImageSourceCG.cpp to ImageDecoderCG.h and .cpp https://bugs.webkit.org/show_bug.cgi?id=155980 Patch by Said Abou-Hallawa <sabouhallawa@apple,com> on 2016-03-30 Reviewed by Simon Fraser. After this step, ImageSource.cpp and ImageSourceCG.cpp look very similar so they can be merged in one file. All the redundant code in these two files can be removed. * PlatformAppleWin.cmake: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * platform/graphics/cg/ImageDecoderCG.cpp: Copied from Source/WebCore/platform/graphics/cg/ImageSourceCG.cpp. (WebCore::createImageSourceOptions): (WebCore::imageSourceOptions): (WebCore::orientationFromProperties): (WebCore::sharedBufferGetBytesAtPosition): (WebCore::sharedBufferRelease): (WebCore::ImageDecoder::ImageDecoder): (WebCore::ImageDecoder::subsamplingLevelForScale): (WebCore::ImageDecoder::bytesDecodedToDetermineProperties): (WebCore::ImageDecoder::filenameExtension): (WebCore::ImageDecoder::isSizeAvailable): (WebCore::ImageDecoder::size): (WebCore::ImageDecoder::frameCount): (WebCore::ImageDecoder::repetitionCount): (WebCore::ImageDecoder::hotSpot): (WebCore::ImageDecoder::frameSizeAtIndex): (WebCore::ImageDecoder::frameIsCompleteAtIndex): (WebCore::ImageDecoder::orientationAtIndex): (WebCore::ImageDecoder::frameDurationAtIndex): (WebCore::ImageDecoder::allowSubsamplingOfFrameAtIndex): (WebCore::ImageDecoder::frameHasAlphaAtIndex): (WebCore::ImageDecoder::frameBytesAtIndex): (WebCore::ImageDecoder::createFrameImageAtIndex): (WebCore::ImageDecoder::setData): * platform/graphics/cg/ImageDecoderCG.h: Added. (WebCore::ImageDecoder::create): * platform/graphics/cg/ImageSourceCG.cpp: (WebCore::ImageDecoder::create): Deleted. (WebCore::createImageSourceOptions): Deleted. (WebCore::imageSourceOptions): Deleted. (WebCore::orientationFromProperties): Deleted. (WebCore::sharedBufferGetBytesAtPosition): Deleted. (WebCore::sharedBufferRelease): Deleted. (WebCore::ImageDecoder::ImageDecoder): Deleted. (WebCore::ImageDecoder::subsamplingLevelForScale): Deleted. (WebCore::ImageDecoder::bytesDecodedToDetermineProperties): Deleted. (WebCore::ImageDecoder::filenameExtension): Deleted. (WebCore::ImageDecoder::isSizeAvailable): Deleted. (WebCore::ImageDecoder::size): Deleted. (WebCore::ImageDecoder::frameCount): Deleted. (WebCore::ImageDecoder::repetitionCount): Deleted. (WebCore::ImageDecoder::hotSpot): Deleted. (WebCore::ImageDecoder::frameSizeAtIndex): Deleted. (WebCore::ImageDecoder::frameIsCompleteAtIndex): Deleted. (WebCore::ImageDecoder::orientationAtIndex): Deleted. (WebCore::ImageDecoder::frameDurationAtIndex): Deleted. (WebCore::ImageDecoder::allowSubsamplingOfFrameAtIndex): Deleted. (WebCore::ImageDecoder::frameHasAlphaAtIndex): Deleted. (WebCore::ImageDecoder::frameBytesAtIndex): Deleted. (WebCore::ImageDecoder::createFrameImageAtIndex): Deleted. (WebCore::ImageDecoder::setData): Deleted. Canonical link: https://commits.webkit.org/174147@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@198849 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-03-30 19:10:18 +00:00
platform/graphics/cg/ImageDecoderCG.cpp
platform/graphics/cg/ImageSourceCGMac.mm
platform/graphics/cg/IntPointCG.cpp
platform/graphics/cg/IntRectCG.cpp
platform/graphics/cg/IntSizeCG.cpp
Move the BitmapImage platform dependent code to a new file named NativeImage[CG|Cairo].cpp https://bugs.webkit.org/show_bug.cgi?id=158684 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2016-09-08 Reviewed by Simon Fraser. Source/WebCore: This is a refactoring patch. It moves the BitmapImage platform dependent code from BitmapImage to NativeImage[CG|Cairo].cpp. The new APIs are responsible of drawing a NativeImagePtr and answering some metadata queries. No new tests -- Code refactoring, no behavior change. * PlatformAppleWin.cmake: * PlatformEfl.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWinCairo.cmake: * WebCore.xcodeproj/project.pbxproj: * loader/cache/MemoryCache.h: * loader/icon/IconDatabaseBase.h: * page/mac/TextIndicatorWindow.mm: (-[WebTextIndicatorView initWithFrame:textIndicator:margin:offset:]): (createContentCrossfadeAnimation): * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::BitmapImage): (WebCore::BitmapImage::destroyDecodedData): (WebCore::BitmapImage::destroyDecodedDataIfNecessary): (WebCore::BitmapImage::dataChanged): (WebCore::BitmapImage::ensureFrameAtIndexIsCached): (WebCore::BitmapImage::frameImageAtIndex): (WebCore::BitmapImage::nativeImage): (WebCore::BitmapImage::nativeImageForCurrentFrame): (WebCore::BitmapImage::nativeImageOfSize): (WebCore::BitmapImage::framesNativeImages): (WebCore::BitmapImage::frameIsCompleteAtIndex): (WebCore::BitmapImage::frameDurationAtIndex): (WebCore::BitmapImage::frameHasAlphaAtIndex): (WebCore::BitmapImage::frameOrientationAtIndex): (WebCore::BitmapImage::singlePixelSolidColor): (WebCore::BitmapImage::draw): (WebCore::BitmapImage::drawPattern): (WebCore::BitmapImage::canAnimate): (WebCore::BitmapImage::clearTimer): (WebCore::BitmapImage::startTimer): (WebCore::BitmapImage::stopAnimation): (WebCore::BitmapImage::resetAnimation): (WebCore::BitmapImage::hasSingleSecurityOrigin): Deleted. (WebCore::BitmapImage::filenameExtension): Deleted. (WebCore::BitmapImage::ensureFrameIsCached): Deleted. * platform/graphics/BitmapImage.h: (WebCore::FrameData::FrameData): m_hasAlpha can be initialized with false because it is accessed only in BitmapImage::frameHasAlphaAtIndex() and it is guarded by m_haveMetadata. Both m_haveMetadata and m_hasAlpha are set in BitmapImage constructor and in BitmapImage::cacheFrame(). (WebCore::FrameData::~FrameData): (WebCore::FrameData::clear): * platform/graphics/Icon.h: * platform/graphics/Image.h: (WebCore::Image::nativeImage): (WebCore::Image::nativeImageOfSize): (WebCore::Image::framesNativeImages): (WebCore::Image::orientationForCurrentFrame): Deleted. (WebCore::Image::getCGImageRef): Deleted. (WebCore::Image::getFirstCGImageRefOfSize): Deleted. (WebCore::Image::getCGImageArray): Deleted. * platform/graphics/ImageSource.cpp: (WebCore::ImageSource::calculateMaximumSubsamplingLevel): (WebCore::ImageSource::size): (WebCore::ImageSource::sizeRespectingOrientation): * platform/graphics/ImageSource.h: * platform/graphics/MediaPlayer.h: * platform/graphics/NativeImage.h: Added. * platform/graphics/NativeImagePtr.h: Removed. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::updatePausedImage): * platform/graphics/cairo/BitmapImageCairo.cpp: Removed. * platform/graphics/cairo/NativeImageCairo.cpp: Added. (WebCore::nativeImageSize): (WebCore::nativeImageHasAlpha): (WebCore::nativeImageSinglePixelSolidColor): (WebCore::subsamplingScale): (WebCore::drawNativeImage): (WebCore::clearNativeImageSubImages): * platform/graphics/cg/BitmapImageCG.cpp: Removed. * platform/graphics/cg/ImageDecoderCG.cpp: (WebCore::ImageDecoder::size): * platform/graphics/cg/ImageDecoderCG.h: * platform/graphics/cg/NativeImageCG.cpp: Added. (WebCore::nativeImageSize): (WebCore::nativeImageHasAlpha): (WebCore::nativeImageSinglePixelSolidColor): (WebCore::subsamplingScale): (WebCore::drawNativeImage): (WebCore::clearNativeImageSubImages): * platform/graphics/cg/PatternCG.cpp: (WebCore::Pattern::createPlatformPattern): * platform/graphics/cocoa/TextTrackRepresentationCocoa.mm: (TextTrackRepresentationCocoa::update): * platform/graphics/mac/ImageMac.mm: (WebCore::BitmapImage::getTIFFRepresentation): * platform/mediastream/mac/MockRealtimeVideoSourceMac.mm: (WebCore::MockRealtimeVideoSourceMac::updatePlatformLayer): (WebCore::MockRealtimeVideoSourceMac::updateSampleBuffer): * platform/win/DragImageCGWin.cpp: (WebCore::createDragImageFromImage): Source/WebKit/mac: * DOM/DOM.mm: (-[DOMNode getPreviewSnapshotImage:andRects:]): * Misc/WebCache.mm: (+[WebCache imageForURL:]): Replace BitmapImage::getCGImageRef() with BitmapImage::nativeImage(). Source/WebKit2: * UIProcess/API/C/cg/WKIconDatabaseCG.cpp: (WKIconDatabaseTryGetCGImageForURL): (WKIconDatabaseTryCopyCGImageArrayForURL): It was the only place in the code which uses BitmapImage::getCGImageArray(). Call BitmapImage::framesNativeImages() instead and form the returned Vector<NativeImagePtr> build the CFArrayRef. * UIProcess/WebIconDatabase.h: Include "NativeImage.h" instead of "NativeImagePtr.h". * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView _presentationSnapshotForPreviewItemController:]): * WebProcess/Plugins/PluginView.cpp: (WebKit::isAlmostSolidColor): Call BitmapImage::getCGImageRef() instead of calling BitmapImage::nativeImage(). Canonical link: https://commits.webkit.org/179941@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205682 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-09 01:06:47 +00:00
platform/graphics/cg/NativeImageCG.cpp
platform/graphics/cg/PDFDocumentImage.cpp
platform/graphics/cg/PathCG.cpp
platform/graphics/cg/PatternCG.cpp
platform/graphics/cg/SubimageCacheWithTimer.cpp
platform/graphics/cg/TransformationMatrixCG.cpp
platform/graphics/cg/UTIRegistry.cpp
[Cocoa] Simplify NSArray, NSDictionary, and NSNumber idioms throughout WebKit https://bugs.webkit.org/show_bug.cgi?id=210138 Reviewed by Alex Christensen. Source/JavaScriptCore: * API/JSValue.mm: (valueToObjectWithoutCopy): Use @(). (valueToNumber): Ditto. * API/tests/testapi.mm: (-[TestObject callback:]): Use @[], @(), and @{}. (-[TextXYZ click]): Ditto. (testObjectiveCAPIMain): Ditto. Source/WebCore: - Added createNSArray and makeVector. - Use createNSArray and makeVector<String> in many places where we convert between NSArray and Vector, replacing multiple existing functions that were doing the same job before; later can use them even more. - Use @[] many places where we create an autoreleased NSArray. - Use @{} many places where we create an autoreleased NSDictionary. - Use @() many places where we create an autoreleased NSNumber. * PlatformMac.cmake: Moved Float/IntRectMac.mm to Float/IntRectCocoa.mm. * SourcesCocoa.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper textMarkerRangeForSelection]): Use @[]. (-[WebAccessibilityObjectWrapper _stringFromStartMarker:toEndMarker:attributed:]): Use @[]. (-[WebAccessibilityObjectWrapper elementsForRange:]): Use @[]. (-[WebAccessibilityObjectWrapper textMarkersForRange:]): Use @[]. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::textReplacementChangeDictionary): Use @(). * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (makeVectorElement): Aded overload for AccessibilitySearchKey. (accessibilitySearchCriteriaForSearchPredicateParameterizedAttribute): Use makeVector<AccessibilitySearchKey>. * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (accessibilityTextCriteriaForParameterizedAttribute): Use makeVector<String>. (accessibilitySearchTextCriteriaForParameterizedAttribute): Use makeVector<String>. (AXAttributeStringSetStyle): Use @(). (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper accessibilityActionNames]): Use @[]. (convertStringsToNSArray): Deleted. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Use @(), @[], and createNSArray. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): Ditto. * bridge/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]): Use @(). * editing/cocoa/AlternativeTextUIController.mm: (WebCore::AlternativeTextUIController::alternativesForContext): Use makeVector<String>. * editing/cocoa/HTMLConverter.mm: (defaultParagraphStyle): Use @[]. (HTMLConverter::computedAttributesForElement): Use @(). (HTMLConverter::_processMetaElementWithName): Use @(). (HTMLConverter::_addTableForElement): Use @(). * page/ios/FrameIOS.mm: (WebCore::Frame::interpretationsForCurrentRoot const): Use @[]. * platform/cocoa/MIMETypeRegistryCocoa.mm: (WebCore::MIMETypeRegistry::getExtensionsForMIMEType): Use makeVector<String>. * platform/graphics/FloatRect.h: Added makeNSArrayElement overload so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/IntRect.h: Similarly for IntRect. * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm: (WebCore::MediaSelectionGroupAVFObjC::updateOptions): Use createNSArray. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::mediaDescriptionForKind): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::checkPlayability): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Use @{} and @(). * platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm: (WebCore::PlatformCAAnimationCocoa::valueFunction const): (WebCore::PlatformCAAnimationCocoa::setFromValue): (WebCore::PlatformCAAnimationCocoa::copyFromValueFrom): (WebCore::PlatformCAAnimationCocoa::setToValue): (WebCore::PlatformCAAnimationCocoa::copyToValueFrom): (WebCore::PlatformCAAnimationCocoa::setValues): (WebCore::PlatformCAAnimationCocoa::copyValuesFrom): (WebCore::PlatformCAAnimationCocoa::setKeyTimes): (WebCore::PlatformCAAnimationCocoa::copyKeyTimesFrom): (WebCore::PlatformCAAnimationCocoa::setTimingFunctions): (WebCore::PlatformCAAnimationCocoa::copyTimingFunctionsFrom): Use @(), @[], modern for loops, auto, and allocate with capacity. * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm: (WebCore::PlatformCAFilters::filterValueForOperation): Use @(). * platform/graphics/cocoa/FloatRectCocoa.mm: Moved from mac/FloatRectMac.mm. (WebCore::makeNSArrayElement): Added so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/cocoa/IntRectCocoa.mm: Moved from mac/IntRectMac.mm. (WebCore::makeNSArrayElement): Similarly for IntRect. (WebCore::enclosingIntRect): Use clampTo to be consistent with what enclosingIntRect(FloatRect) does (while fixing check-webkit-style complaint). * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer display]): Add WebCore namespace prefix; needed depending on how sources get unified (and was affecting my local build when it temporarily had an additional source file). (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]): Ditto. (-[WebGLLayer bindFramebufferToNextAvailableSurface]): Ditto. * platform/graphics/ios/FontCacheIOS.mm: (WebCore::systemFontModificationAttributes): Use @(). * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::createItemProviderRegistrationList): Use createNSArray. (WebCore::PlatformPasteboard::updateSupportedTypeIdentifiers): Use createNSArray. * platform/ios/WebItemProviderPasteboard.mm: (-[WebItemProviderPasteboard setItemProviders:]): Use @[]. * platform/ios/wak/WAKView.mm: (-[WAKView subviews]): Dittto. * platform/mac/PlatformPasteboardMac.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::getPathnamesForType const): Use makeVector<String>. (WebCore::PlatformPasteboard::addTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::setTypes): Use makeVector<String>. * platform/mac/StringUtilities.h: Removed webCoreStringVectorFromNSStringArray, replaced by makeVector<String> * platform/mac/StringUtilities.mm: (WebCore::webCoreStringVectorFromNSStringArray): Deleted. * platform/mac/WebCoreNSURLExtras.mm: Removed unneeded include. * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: (WebCore::MediaRecorderPrivateWriter::setVideoInput): Use @(). * platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::setupCaptureSession): Use @(). * platform/network/cocoa/CookieCocoa.mm: (WebCore::Cookie::operator NSHTTPCookie * _Nullable const): Use @(). * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::setCookiesFromDOM const): Use @{}. * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest): Use @YES/@NO. Source/WebKit: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: Remove uneeded include. * Platform/mac/StringUtilities.mm: Ditto. * PluginProcess/mac/PluginProcessMac.mm: (WebKit::replacedNSConcreteTask_launch): Use makeVector<String>. (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): Ditto. * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toSupportedNetworks): Deleted. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): Use createNSArray. * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forEditing): Use @[]. (WebKit::PasteboardTypes::forURL): Ditto. (WebKit::PasteboardTypes::forImages): Ditto. (WebKit::PasteboardTypes::forImagesWithArchive): Ditto. (WebKit::PasteboardTypes::forSelection): Ditto. * UIProcess/API/Cocoa/WKContentRuleListStore.mm: (-[WKContentRuleListStore getAvailableContentRuleListIdentifiers:]): Use createNSArray. * UIProcess/API/Cocoa/WKProcessPool.mm: (-[WKProcessPool _getActivePagesOriginsInWebProcessForTesting:completionHandler:]): Ditto. * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:deferRunningUntilNotification:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setupPageConfiguration:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration _corsDisablingPatterns]): Use createNSArray. (-[WKWebViewConfiguration _setCORSDisablingPatterns:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewTesting.mm: (-[WKWebView _contentsOfUserInterfaceItem:]): Use @(). * UIProcess/API/Cocoa/_WKContentRuleListAction.mm: (-[_WKContentRuleListAction notifications]): Use createNSArray. * UIProcess/API/Cocoa/_WKCustomHeaderFields.mm: (-[_WKCustomHeaderFields thirdPartyDomains]): Use createNSArray. (-[_WKCustomHeaderFields setThirdPartyDomains:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration cachePartitionedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]): Use makeVector<String>. (-[_WKProcessPoolConfiguration alwaysRevalidatedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setAlwaysRevalidatedURLSchemes:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKUserContentWorldInternal.h: (API::toStringVector): Deleted. * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): Use makeVector<String>. * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::accessibilityAttributeValue): Use @[]. (WebKit::WebViewImpl::performDragOperation): Use makeVector<String>. (WebKit::WebViewImpl::namesOfPromisedFilesDroppedAtDestination): Use @[]. (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent): Use @[]. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: (WebKit::PluginProcessProxy::launchProcess): Use createNSArray. (WebKit::isJavaUpdaterURL): Use @[]. (WebKit::PluginProcessProxy::launchApplicationAtURL): Use @{} and createNSArray. (WebKit::isSilverlightPreferencesURL): Use @[]. * UIProcess/WebAuthentication/Cocoa/HidService.mm: (WebKit::HidService::HidService): Use @() and fixed an over-release mistake. This code was doing adoptNS on the result of +[NSNumberWithInt:], which is incorrect. * UIProcess/WebAuthentication/Mock/MockLocalConnection.mm: (WebKit::MockLocalConnection::getAttestation const): Use @[]. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView textStylingAtPosition:inDirection:]): Use @(). (-[WKContentView requestRectsToEvadeForSelectionCommandsWithCompletionHandler:]): Use createNSArray. (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationLists:stagedDragSource:]): Fixed a wasteful call to autorelease where we are adding an item to a dictionary. Calling get is more efficient and still correct. * UIProcess/ios/forms/WKFileUploadPanel.mm: (-[WKFileUploadPanel imagePickerController:didFinishPickingMediaWithInfo:]): Use @[]. * UIProcess/ios/forms/WKFormColorPicker.mm: (-[WKColorMatrixView initWithFrame:colorMatrix:]): Removed uneeded RetainPtr local variable. * UIProcess/mac/CorrectionPanel.mm: (WebKit::CorrectionPanel::show): Use createNSArray. * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::updateSpellingUIWithGrammarString): Use createNSArray. (WebKit::TextChecker::getGuessesForWord): Use makeVector<String>. * UIProcess/mac/WKPrintingView.mm: (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]): Use @(). * UIProcess/mac/WKTextFinderClient.mm: (arrayFromRects): Deleted. (-[WKTextFinderClient didFindStringMatchesWithRects:didWrapAround:]): Use createNSArray. * UIProcess/mac/WebDataListSuggestionsDropdownMac.mm: (-[WKDataListSuggestionsController notifyAccessibilityClients:]): Use @{} and fix a bug where this was creating a backwards dictionary. So this never could have been working before, making me wonder how we test it. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::searchTheWeb): Use @[]. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.h: Removed toNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: (WebKit::toNSArray): Deleted. * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: (-[WKDOMNode textRects]): Use createNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: (-[WKDOMRange textRects]): Ditto. * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm: (WebKit::InjectedBundle::setBundleParameter): Use @{}. * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm: (WebKit::makeRenderLayer): Use @[]. * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::writeItemsToPasteboard): Use makeVector<String>. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::applicationDidEnterBackground): Use @(). * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::suspendPainting): Use @{}. (WebKit::TiledCoreAnimationDrawingArea::resumePainting): Use @{}. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: Removed an unneeded include. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm: Ditto. (-[WKAccessibilityWebPageObject accessibilityActionNames]): Use @[]. (-[WKAccessibilityWebPageObject accessibilityChildren]): Use @[]. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::getActivePagesOriginsForTesting): Use makeVector<String>. Source/WebKitLegacy/ios: * WebCoreSupport/WebChromeClientIOS.mm: (WebChromeClientIOS::runOpenPanel): Use createNSArray. * WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): Use createNSArray. * WebCoreSupport/WebVisiblePositionInternal.h: Added #if so that this correctly doesn't compile anything on Mac. * WebView/WebPDFViewIOS.mm: (+[WebPDFView supportedMIMETypes]): Use @[]. Source/WebKitLegacy/mac: * DOM/DOM.mm: (kit): Deleted overload that takes Vector<IntRect>. (-[DOMNode textRects]): Use createNSArray. (-[DOMRange textRects]): Ditto. * DOM/ExceptionHandlers.mm: (raiseDOMErrorException): Use @(). * History/WebBackForwardList.mm: (-[WebBackForwardList dictionaryRepresentation]): Use @{}. * History/WebHistory.mm: (+[WebHistoryPrivate initialize]): Use @{}. (-[WebHistory _sendNotification:entries:]): Use @{}. * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): Use makeVector<String>. (-[WebHistoryItem dictionaryRepresentation:]): Use createNSArray and @(). * History/WebURLsWithTitles.m: (+[WebURLsWithTitles arrayWithIFURLsWithTitlesPboardType]): Use @[]. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use @[]. * Misc/WebCache.mm: (+[WebCache statistics]): Use @[], @{}, and @(). * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): Ditto. * Misc/WebKitErrors.m: (-[NSError _webkit_initWithDomain:code:URL:]): Use @(). (+[NSError _registerWebKitErrors]): Use @(). (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): Use @(). * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): Use @{}. (-[NSString _web_widthWithFont:]): Use @{}. * Misc/WebNSFileManagerExtras.mm: Removed unneeded include. * Misc/WebNSPasteboardExtras.mm: (+[NSPasteboard _web_dragTypesForURL]): Use @[]. (-[NSPasteboard _web_writeURL:andTitle:types:]): Use @[]. (+[NSPasteboard _web_setFindPasteboardString:withOwner:]): Use @[]. * Misc/WebNSURLExtras.mm: Removed unneeded include. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Use @{}. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCIdentifierInfo): Use @(). * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use @(). * Plugins/Hosted/WebHostedNetscapePluginView.mm: Removed unneeded include. * Plugins/WebBasePluginPackage.mm: Ditto. * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _actionInformationWithURL:]): Use @{}. * Plugins/WebPluginDatabase.mm: (+[WebPluginDatabase _defaultPlugInPaths]): Use @[]. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager databasesWithOrigin:]): Use createNSArray. * WebCoreSupport/CorrectionPanel.mm: (CorrectionPanel::show): Use createNSArray. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): Use @(). * WebCoreSupport/WebEditorClient.mm: (attributesForAttributedStringConversion): Use @(). (WebEditorClient::getGuessesForWord): Use makeVector<String>. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary const): Use @(). (kit): Deleted overload that takes Vector<String>. (pluginView): Use @{}. (WebFrameLoaderClient::createPlugin): Use createNSArray, @{}, and @(). (WebFrameLoaderClient::createJavaAppletWidget): Use createNSArray. * WebCoreSupport/WebOpenPanelResultListener.mm: (-[WebOpenPanelResultListener chooseFilenames:]): Use makeVector<String>. (-[WebOpenPanelResultListener chooseFilename:displayString:iconImage:]): Use @[]. (-[WebOpenPanelResultListener chooseFilenames:displayString:iconImage:]): Use makeVector<String>. * WebCoreSupport/WebSelectionServiceController.mm: (WebSelectionServiceController::handleSelectionServiceClick): Comment out an unused argument. * WebView/WebFrame.mm: (-[WebFrame _rectsForRange:]): Use createNSArrray. (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Use createNSArray and @[]. (-[WebFrame childFrames]): Use @[]. * WebView/WebHTMLView.mm: (+[WebHTMLView _selectionPasteboardTypes]): Use @[]. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use @[]. (-[WebHTMLView knowsPageRange:]): Use @[]. (-[WebHTMLView accessibilityAttributeValue:]): Use @[]. (-[WebHTMLView copyFont:]): Use @[]. (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Use @[]. (-[WebHTMLView selectionTextRects]): Use createNSArray. (-[WebHTMLView rectsForTextMatches]): Use createNSArray and @[]. * WebView/WebPDFRepresentation.mm: Removed unneeded include. (+[WebPDFRepresentation postScriptMIMETypes]): Use @[]. (+[WebPDFRepresentation supportedMIMETypes]): Use @[]. * WebView/WebPDFView.mm: (-[WebPDFView elementAtPoint:]): Use @{} and @(). (-[WebPDFView viewState]): Use @(). (-[WebPDFView selectionTextRects]): Use @[]. (-[WebPDFView pasteboardTypesForSelection]): Use @[]. (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Use @(). (-[WebPDFView _openWithFinder:]): Use @{} and @(). * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Use @(). (-[WebPreferences _setUnsignedIntValue:forKey:]): Use @(). (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Use @(). (-[WebPreferences setStorageBlockingPolicy:]): Use @{} and @(). * WebView/WebScriptDebugger.mm: (WebScriptDebugger::sourceParsed): Use @(). * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): Use @{}. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Use makeVector<String>. (-[WebView _contentsOfUserInterfaceItem:]): Use @(). (toStringVector): Deleted. (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]): Use makeVector<String>. (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]): Use makeVector<String>. (-[WebView _elementAtWindowPoint:]): Use @{}. (-[WebView pasteboardTypesForSelection]): Use @[]. (-[WebView pasteboardTypesForElement:]): Use @[]. (-[WebView rectsForTextMatches]): Use @[]. (-[WebView _searchWithGoogleFromMenu:]): Use @[]. (-[WebView _setFontWhitelist:]): Use makeVector<String>. Source/WTF: * WTF.xcodeproj/project.pbxproj: Added VectorCocoa.h. * wtf/PlatformMac.cmake: Ditto. * wtf/cocoa/NSURLExtras.mm: Removed unneeded include. * wtf/cocoa/URLCocoa.mm: Ditto. * wtf/cocoa/VectorCocoa.h: Added. Contains createNSArray and makeVector function templates for converting NSArray to and from Vector. * wtf/text/WTFString.h: Added makeNSArrayElement and makeVectorElement functions, making createNSArray and makeVector compatible with String. * wtf/text/cocoa/StringCocoa.mm: (WTF::makeNSArrayElement): Added. (WTF::makeVectorElement): Added. Tools: * DumpRenderTree/AccessibilityController.h: Remove use of NotificationHandler type; it's just "id". * DumpRenderTree/AccessibilityUIElement.cpp: (convertElementsToObjectArray): Moved this up in the file, removed unneeded use of JSValueToObject and unused exception argument. (elementsForRangeCallback): Use convertElementsToObjectArray. (columnHeadersCallback): Updated for removed exception argument. (rowHeadersCallback): Ditto. (uiElementArrayAttributeValueCallback): Ditto. * DumpRenderTree/AccessibilityUIElement.h: Changed to use RetainPtr. * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: (createCoreAnimationLayer): Use @{}. * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (AccessibilityUIElement::~AccessibilityUIElement): Deleted. (AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): Use @[]. * DumpRenderTree/ios/TextInputControllerIOS.m: (-[TextInputController markedRange]): Use @[]. * DumpRenderTree/mac/AccessibilityCommonMac.mm: (searchPredicateParameterizedAttributeForSearchCriteria): Tweak a little. * DumpRenderTree/mac/AccessibilityNotificationHandler.mm: (-[NSString createJSStringRef]): Deleted. Duplicate of a method already implemented in anothe file. * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (makeVectorElement): Added overloads to make both makeVector<AccessibilityTextMarkerRange> and makeVector<AccessibilityUIElement> work. (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (convertVectorToObjectArray): Removed unneeded use of JSValueToObject and unneeded exception argument. (convertNSArrayToVector): Deleted. (AccessibilityUIElement::getLinkedUIElements): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::getDocumentLinks): Ditto. (AccessibilityUIElement::getChildren): Ditto. (AccessibilityUIElement::getChildrenWithRange): Ditto. (AccessibilityUIElement::rowHeaders const): Ditto. (AccessibilityUIElement::columnHeaders const): Ditto. (AccessibilityUIElement::uiElementArrayAttributeValue const): Ditto. (AccessibilityUIElement::role): Updated since m_element is a RetainPtr. (AccessibilityUIElement::subrole): Ditto. (AccessibilityUIElement::roleDescription): Ditto. (AccessibilityUIElement::computedRoleString): Ditto. (AccessibilityUIElement::title): Ditto. (AccessibilityUIElement::description): Ditto. (AccessibilityUIElement::orientation const): Ditto. (AccessibilityUIElement::stringValue): Ditto. (AccessibilityUIElement::language): Ditto. (AccessibilityUIElement::helpText const): Ditto. (AccessibilityUIElement::lineForIndex): Use @(). (AccessibilityUIElement::rangeForLine): Use @(). (AccessibilityUIElement::searchTextWithCriteria): Use makeVector<AccessibilityTextMarkerRange>. (AccessibilityUIElement::attributesOfColumnHeaders): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::attributesOfRowHeaders): Ditto. (AccessibilityUIElement::attributesOfColumns): Ditto. (AccessibilityUIElement::attributesOfRows): Ditto. (AccessibilityUIElement::attributesOfVisibleCells): Ditto. (AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (AccessibilityUIElement::setSelectedChild const): Use @[]. (AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions): Use @{}, @YES, and @NO. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * DumpRenderTree/mac/DumpRenderTree.mm: (addTestPluginsToPluginSearchPath): Use @[]. (resetWebViewToConsistentStateBeforeTesting): Use @[]. * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (-[DumpRenderTreePasteboard declareType:owner:]): Use @[]. * DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController beginDragWithFiles:]): Use @(). (-[EventSendingController sentTouchEventOfType:]): Use @(). * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider cancelNotification:]): Use @[]. * DumpRenderTree/mac/ObjCController.m: (-[ObjCController objectOfClass:]): Use @(). (-[ObjCController arrayOfString]): Use @[]. (-[ObjCController testWrapperRoundTripping:]): Use @(). (-[ObjCController testArray]): Use @[]. * DumpRenderTree/mac/TestRunnerMac.mm: (originsArrayToJS): Removed unneeded use of JSValueToObject. * DumpRenderTree/mac/TextInputControllerMac.m: (-[TextInputController markedRange]): Use @[] and @(). (-[TextInputController selectedRange]): Use @[] and @(). (-[TextInputController firstRectForCharactersFrom:length:]): Use @[] and @(). (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]): Use @[]. (-[TextInputController interpretKeyEvents:withSender:]): Use @[]. * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use []. * DumpRenderTree/win/AccessibilityUIElementWin.cpp: Deleted an unneeded copy constructor and destructor. * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Use @{}. * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (toVector): Deleted. (-[ContentRuleListNotificationDelegate _webView:contentRuleListWithIdentifier:performedAction:forURL:]): Use makeVector<String>. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: (writeImageDataToPasteboard): Use @[] and @{}. (writeBundleFileToPasteboard): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteWebArchive.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (runWebsiteDataStoreCustomPaths): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteURL.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteZeroPng.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm: (-[DidCreateJavaScriptContextFrameLoadDelegate webView:didCreateJavaScriptContext:forFrame:]): Use @[]. * TestWebKitAPI/ios/mainIOS.mm: (main): Use @{}. * TestWebKitAPI/mac/InjectedBundleControllerMac.mm: (TestWebKitAPI::InjectedBundleController::platformInitialize): Use @{} and @(). * TestWebKitAPI/mac/mainMac.mm: (main): Use {}. * WebKitTestRunner/InjectedBundle/AccessibilityController.h: Use id instead of NotificationHandler. * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h: Use id for PlatformTextMarkerRange. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityTextMarkerRange>> work. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: Use RetainPtr. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityUIElement>> work. * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: Removed unneeded include. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertElementsToObjectArray): Removed unneeded use of JSValueToObject. (WTR::AccessibilityUIElement::elementsForRange): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm: (WTR::InjectedBundle::platformInitialize): Use @{}. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::getLinkedUIElements): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::getDocumentLinks): Ditto. (WTR::AccessibilityUIElement::getUIElementsWithAttribute const): Ditto. (WTR::AccessibilityUIElement::getChildren): Ditto. (WTR::AccessibilityUIElement::getChildrenWithRange): Ditto. (WTR::AccessibilityUIElement::rowHeaders const): Ditto. (WTR::AccessibilityUIElement::columnHeaders const): Ditto. (WTR::AccessibilityUIElement::allAttributes): Updated since m_element is a RetainPtr. (WTR::AccessibilityUIElement::stringDescriptionOfAttributeValue): Ditto. (WTR::AccessibilityUIElement::role): Ditto. (WTR::AccessibilityUIElement::subrole): Ditto. (WTR::AccessibilityUIElement::roleDescription): Ditto. (WTR::AccessibilityUIElement::computedRoleString): Ditto. (WTR::AccessibilityUIElement::title): Ditto. (WTR::AccessibilityUIElement::description): Ditto. (WTR::AccessibilityUIElement::orientation const): Ditto. (WTR::AccessibilityUIElement::stringValue): Ditto. (WTR::AccessibilityUIElement::language): Ditto. (WTR::AccessibilityUIElement::helpText const): Ditto. (WTR::AccessibilityUIElement::lineForIndex): Use @(). (WTR::AccessibilityUIElement::rangeForLine): Use @(). (WTR::AccessibilityUIElement::searchTextWithCriteria): Use makeVector<RefPtr<AccessibilityTextMarkerRange>>. (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfRowHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfColumns): Ditto. (WTR::AccessibilityUIElement::attributesOfRows): Ditto. (WTR::AccessibilityUIElement::attributesOfVisibleCells): Ditto. (WTR::AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (WTR::AccessibilityUIElement::setSelectedChild const): Use @[]. (WTR::AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveAllStorageAccessEntries): Take Vector&&. (WTR::TestInvocation::didReceiveWebViewCategory): Take String&&. * WebKitTestRunner/TestInvocation.h: Updated for the above. * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::cocoaPlatformInitialize): Use @{}and @(). (WTR::TestController::getAllStorageAccessEntries): Use makeVector<String>. (WTR::TestController::loadedThirdPartyDomains): Use makeVector<String>. (WTR::TestController::getWebViewCategory): Update to pass String&&. (WTR::TestController::setAllowedMenuActions): Use createNSArray. * WebKitTestRunner/ios/HIDEventGenerator.mm: (-[HIDEventGenerator interpolatedEvents:]): Use @(). * WebKitTestRunner/mac/PlatformWebViewMac.mm: (WTR::PlatformWebView::changeWindowScaleIfNeeded): Use @{} and @(). * WebKitTestRunner/mac/TestControllerMac.mm: Removed unneeded include. * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use @[]. * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (-[WebKitTestRunnerPasteboard declareType:owner:]): Use @[]. Canonical link: https://commits.webkit.org/223199@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-10 02:11:30 +00:00
platform/graphics/cocoa/FloatRectCocoa.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/graphics/cocoa/FontCacheCoreText.cpp
platform/graphics/cocoa/FontCascadeCocoa.mm
[Cocoa] Migrate CoreText-specific code from ***Cocoa.mm to ***CoreText.cpp https://bugs.webkit.org/show_bug.cgi?id=216400 Reviewed by Tim Horton. Source/WebCore: This is in preparation for sharing the CoreText code with the Apple Windows port. This patch doesn't actually cause Windows to use this code yet. That will happen in a series of subsequent patches. This patch is just the first stage. There isn't any actual behavior change here - it's just moving code around between files. This patch also adds a new USE() flag: USE(CORE_TEXT). It migrates CoreText-specific code from #if PLATFORM(COCOA) to #if USE(CORE_TEXT). No new tests because there is no behavior change. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/graphics/Font.cpp: * platform/graphics/Font.h: * platform/graphics/FontCascade.cpp: * platform/graphics/FontCascade.h: * platform/graphics/FontPlatformData.cpp: * platform/graphics/FontPlatformData.h: * platform/graphics/cocoa/FontCascadeCocoa.mm: (WebCore::showLetterpressedGlyphsWithAdvances): (WebCore::FontCascade::isSubpixelAntialiasingAvailable): Deleted. (WebCore::fillVectorWithHorizontalGlyphPositions): Deleted. (WebCore::shouldUseLetterpressEffect): Deleted. (WebCore::showGlyphsWithAdvances): Deleted. (WebCore::setCGFontRenderingMode): Deleted. (WebCore::FontCascade::drawGlyphs): Deleted. (WebCore::FontCascade::primaryFontIsSystemFont const): Deleted. (WebCore::FontCascade::fontForCombiningCharacterSequence const): Deleted. * platform/graphics/cocoa/FontCocoa.cpp: Added. (WebCore::Font::platformDestroy): * platform/graphics/cocoa/FontPlatformDataCocoa.mm: (WebCore::FontPlatformData::hash const): (WebCore::isSystemFont): Deleted. (): Deleted. (WebCore::FontPlatformData::FontPlatformData): Deleted. (WebCore::FontPlatformData::registeredFont const): Deleted. (WebCore::mapFontWidthVariantToCTFeatureSelector): Deleted. (WebCore::cascadeToLastResortAttributesDictionary): Deleted. (WebCore::cascadeToLastResortAndVariationsFontDescriptor): Deleted. (WebCore::FontPlatformData::ctFont const): Deleted. (WebCore::FontPlatformData::objectForEqualityCheck): Deleted. (WebCore::FontPlatformData::objectForEqualityCheck const): Deleted. (WebCore::FontPlatformData::openTypeTable const): Deleted. (WebCore::FontPlatformData::description const): Deleted. (WebCore::FontPlatformData::familyName const): Deleted. * platform/graphics/cocoa/SourceBufferParserWebM.cpp: * platform/graphics/ct/FontCascadeCoreText.cpp: Copied from Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm. (WebCore::FontCascade::isSubpixelAntialiasingAvailable): (WebCore::fillVectorWithHorizontalGlyphPositions): (WebCore::shouldUseLetterpressEffect): (WebCore::showGlyphsWithAdvances): (WebCore::setCGFontRenderingMode): (WebCore::FontCascade::drawGlyphs): (WebCore::FontCascade::primaryFontIsSystemFont const): (WebCore::FontCascade::fontForCombiningCharacterSequence const): * platform/graphics/ct/FontCoreText.cpp: Renamed from Source/WebCore/platform/graphics/cocoa/FontCocoa.mm. (WebCore::Font::platformInit): (WebCore::Font::platformCharWidthInit): (WebCore::Font::platformCreateScaledFont const): (WebCore::Font::applyTransforms const): * platform/graphics/ct/FontPlatformDataCoreText.cpp: Copied from Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm. (WebCore::FontPlatformData::FontPlatformData): (WebCore::isSystemFont): (WebCore::FontPlatformData::registeredFont const): (WebCore::mapFontWidthVariantToCTFeatureSelector): (WebCore::cascadeToLastResortAttributesDictionary): (WebCore::cascadeToLastResortAndVariationsFontDescriptor): (WebCore::FontPlatformData::ctFont const): (WebCore::FontPlatformData::objectForEqualityCheck): (WebCore::FontPlatformData::objectForEqualityCheck const): (WebCore::FontPlatformData::openTypeTable const): (WebCore::FontPlatformData::description const): (WebCore::FontPlatformData::familyName const): * platform/graphics/ct/GlyphPageCoreText.cpp: Renamed from Source/WebCore/platform/graphics/mac/GlyphPageMac.cpp. * platform/graphics/win/FontCascadeCGWin.cpp: Added. (WebCore::FontCascade::setFontSmoothingLevel): (WebCore::setCGFontSmoothingStyle): (WebCore::FontCascade::setFontSmoothingStyle): (WebCore::FontCascade::setFontSmoothingContrast): (WebCore::clearTypeContrast): (WebCore::FontCascade::systemFontSmoothingChanged): (WebCore::FontCascade::setCGContextFontRenderingStyle): (WebCore::renderingStyleForFont): (WebCore::FontCascade::getPlatformGlyphAdvances): Source/WebCore/PAL: * pal/spi/win/CoreTextSPIWin.h: Source/WTF: * wtf/PlatformUse.h: Canonical link: https://commits.webkit.org/229247@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-11 20:27:38 +00:00
platform/graphics/cocoa/FontCocoa.cpp
platform/graphics/cocoa/FontDescriptionCocoa.cpp
platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp
platform/graphics/cocoa/FontPlatformDataCocoa.mm
[Cocoa] Simplify NSArray, NSDictionary, and NSNumber idioms throughout WebKit https://bugs.webkit.org/show_bug.cgi?id=210138 Reviewed by Alex Christensen. Source/JavaScriptCore: * API/JSValue.mm: (valueToObjectWithoutCopy): Use @(). (valueToNumber): Ditto. * API/tests/testapi.mm: (-[TestObject callback:]): Use @[], @(), and @{}. (-[TextXYZ click]): Ditto. (testObjectiveCAPIMain): Ditto. Source/WebCore: - Added createNSArray and makeVector. - Use createNSArray and makeVector<String> in many places where we convert between NSArray and Vector, replacing multiple existing functions that were doing the same job before; later can use them even more. - Use @[] many places where we create an autoreleased NSArray. - Use @{} many places where we create an autoreleased NSDictionary. - Use @() many places where we create an autoreleased NSNumber. * PlatformMac.cmake: Moved Float/IntRectMac.mm to Float/IntRectCocoa.mm. * SourcesCocoa.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper textMarkerRangeForSelection]): Use @[]. (-[WebAccessibilityObjectWrapper _stringFromStartMarker:toEndMarker:attributed:]): Use @[]. (-[WebAccessibilityObjectWrapper elementsForRange:]): Use @[]. (-[WebAccessibilityObjectWrapper textMarkersForRange:]): Use @[]. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::textReplacementChangeDictionary): Use @(). * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (makeVectorElement): Aded overload for AccessibilitySearchKey. (accessibilitySearchCriteriaForSearchPredicateParameterizedAttribute): Use makeVector<AccessibilitySearchKey>. * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (accessibilityTextCriteriaForParameterizedAttribute): Use makeVector<String>. (accessibilitySearchTextCriteriaForParameterizedAttribute): Use makeVector<String>. (AXAttributeStringSetStyle): Use @(). (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper accessibilityActionNames]): Use @[]. (convertStringsToNSArray): Deleted. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Use @(), @[], and createNSArray. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): Ditto. * bridge/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]): Use @(). * editing/cocoa/AlternativeTextUIController.mm: (WebCore::AlternativeTextUIController::alternativesForContext): Use makeVector<String>. * editing/cocoa/HTMLConverter.mm: (defaultParagraphStyle): Use @[]. (HTMLConverter::computedAttributesForElement): Use @(). (HTMLConverter::_processMetaElementWithName): Use @(). (HTMLConverter::_addTableForElement): Use @(). * page/ios/FrameIOS.mm: (WebCore::Frame::interpretationsForCurrentRoot const): Use @[]. * platform/cocoa/MIMETypeRegistryCocoa.mm: (WebCore::MIMETypeRegistry::getExtensionsForMIMEType): Use makeVector<String>. * platform/graphics/FloatRect.h: Added makeNSArrayElement overload so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/IntRect.h: Similarly for IntRect. * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm: (WebCore::MediaSelectionGroupAVFObjC::updateOptions): Use createNSArray. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::mediaDescriptionForKind): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::checkPlayability): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Use @{} and @(). * platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm: (WebCore::PlatformCAAnimationCocoa::valueFunction const): (WebCore::PlatformCAAnimationCocoa::setFromValue): (WebCore::PlatformCAAnimationCocoa::copyFromValueFrom): (WebCore::PlatformCAAnimationCocoa::setToValue): (WebCore::PlatformCAAnimationCocoa::copyToValueFrom): (WebCore::PlatformCAAnimationCocoa::setValues): (WebCore::PlatformCAAnimationCocoa::copyValuesFrom): (WebCore::PlatformCAAnimationCocoa::setKeyTimes): (WebCore::PlatformCAAnimationCocoa::copyKeyTimesFrom): (WebCore::PlatformCAAnimationCocoa::setTimingFunctions): (WebCore::PlatformCAAnimationCocoa::copyTimingFunctionsFrom): Use @(), @[], modern for loops, auto, and allocate with capacity. * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm: (WebCore::PlatformCAFilters::filterValueForOperation): Use @(). * platform/graphics/cocoa/FloatRectCocoa.mm: Moved from mac/FloatRectMac.mm. (WebCore::makeNSArrayElement): Added so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/cocoa/IntRectCocoa.mm: Moved from mac/IntRectMac.mm. (WebCore::makeNSArrayElement): Similarly for IntRect. (WebCore::enclosingIntRect): Use clampTo to be consistent with what enclosingIntRect(FloatRect) does (while fixing check-webkit-style complaint). * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer display]): Add WebCore namespace prefix; needed depending on how sources get unified (and was affecting my local build when it temporarily had an additional source file). (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]): Ditto. (-[WebGLLayer bindFramebufferToNextAvailableSurface]): Ditto. * platform/graphics/ios/FontCacheIOS.mm: (WebCore::systemFontModificationAttributes): Use @(). * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::createItemProviderRegistrationList): Use createNSArray. (WebCore::PlatformPasteboard::updateSupportedTypeIdentifiers): Use createNSArray. * platform/ios/WebItemProviderPasteboard.mm: (-[WebItemProviderPasteboard setItemProviders:]): Use @[]. * platform/ios/wak/WAKView.mm: (-[WAKView subviews]): Dittto. * platform/mac/PlatformPasteboardMac.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::getPathnamesForType const): Use makeVector<String>. (WebCore::PlatformPasteboard::addTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::setTypes): Use makeVector<String>. * platform/mac/StringUtilities.h: Removed webCoreStringVectorFromNSStringArray, replaced by makeVector<String> * platform/mac/StringUtilities.mm: (WebCore::webCoreStringVectorFromNSStringArray): Deleted. * platform/mac/WebCoreNSURLExtras.mm: Removed unneeded include. * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: (WebCore::MediaRecorderPrivateWriter::setVideoInput): Use @(). * platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::setupCaptureSession): Use @(). * platform/network/cocoa/CookieCocoa.mm: (WebCore::Cookie::operator NSHTTPCookie * _Nullable const): Use @(). * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::setCookiesFromDOM const): Use @{}. * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest): Use @YES/@NO. Source/WebKit: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: Remove uneeded include. * Platform/mac/StringUtilities.mm: Ditto. * PluginProcess/mac/PluginProcessMac.mm: (WebKit::replacedNSConcreteTask_launch): Use makeVector<String>. (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): Ditto. * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toSupportedNetworks): Deleted. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): Use createNSArray. * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forEditing): Use @[]. (WebKit::PasteboardTypes::forURL): Ditto. (WebKit::PasteboardTypes::forImages): Ditto. (WebKit::PasteboardTypes::forImagesWithArchive): Ditto. (WebKit::PasteboardTypes::forSelection): Ditto. * UIProcess/API/Cocoa/WKContentRuleListStore.mm: (-[WKContentRuleListStore getAvailableContentRuleListIdentifiers:]): Use createNSArray. * UIProcess/API/Cocoa/WKProcessPool.mm: (-[WKProcessPool _getActivePagesOriginsInWebProcessForTesting:completionHandler:]): Ditto. * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:deferRunningUntilNotification:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setupPageConfiguration:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration _corsDisablingPatterns]): Use createNSArray. (-[WKWebViewConfiguration _setCORSDisablingPatterns:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewTesting.mm: (-[WKWebView _contentsOfUserInterfaceItem:]): Use @(). * UIProcess/API/Cocoa/_WKContentRuleListAction.mm: (-[_WKContentRuleListAction notifications]): Use createNSArray. * UIProcess/API/Cocoa/_WKCustomHeaderFields.mm: (-[_WKCustomHeaderFields thirdPartyDomains]): Use createNSArray. (-[_WKCustomHeaderFields setThirdPartyDomains:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration cachePartitionedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]): Use makeVector<String>. (-[_WKProcessPoolConfiguration alwaysRevalidatedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setAlwaysRevalidatedURLSchemes:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKUserContentWorldInternal.h: (API::toStringVector): Deleted. * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): Use makeVector<String>. * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::accessibilityAttributeValue): Use @[]. (WebKit::WebViewImpl::performDragOperation): Use makeVector<String>. (WebKit::WebViewImpl::namesOfPromisedFilesDroppedAtDestination): Use @[]. (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent): Use @[]. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: (WebKit::PluginProcessProxy::launchProcess): Use createNSArray. (WebKit::isJavaUpdaterURL): Use @[]. (WebKit::PluginProcessProxy::launchApplicationAtURL): Use @{} and createNSArray. (WebKit::isSilverlightPreferencesURL): Use @[]. * UIProcess/WebAuthentication/Cocoa/HidService.mm: (WebKit::HidService::HidService): Use @() and fixed an over-release mistake. This code was doing adoptNS on the result of +[NSNumberWithInt:], which is incorrect. * UIProcess/WebAuthentication/Mock/MockLocalConnection.mm: (WebKit::MockLocalConnection::getAttestation const): Use @[]. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView textStylingAtPosition:inDirection:]): Use @(). (-[WKContentView requestRectsToEvadeForSelectionCommandsWithCompletionHandler:]): Use createNSArray. (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationLists:stagedDragSource:]): Fixed a wasteful call to autorelease where we are adding an item to a dictionary. Calling get is more efficient and still correct. * UIProcess/ios/forms/WKFileUploadPanel.mm: (-[WKFileUploadPanel imagePickerController:didFinishPickingMediaWithInfo:]): Use @[]. * UIProcess/ios/forms/WKFormColorPicker.mm: (-[WKColorMatrixView initWithFrame:colorMatrix:]): Removed uneeded RetainPtr local variable. * UIProcess/mac/CorrectionPanel.mm: (WebKit::CorrectionPanel::show): Use createNSArray. * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::updateSpellingUIWithGrammarString): Use createNSArray. (WebKit::TextChecker::getGuessesForWord): Use makeVector<String>. * UIProcess/mac/WKPrintingView.mm: (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]): Use @(). * UIProcess/mac/WKTextFinderClient.mm: (arrayFromRects): Deleted. (-[WKTextFinderClient didFindStringMatchesWithRects:didWrapAround:]): Use createNSArray. * UIProcess/mac/WebDataListSuggestionsDropdownMac.mm: (-[WKDataListSuggestionsController notifyAccessibilityClients:]): Use @{} and fix a bug where this was creating a backwards dictionary. So this never could have been working before, making me wonder how we test it. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::searchTheWeb): Use @[]. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.h: Removed toNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: (WebKit::toNSArray): Deleted. * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: (-[WKDOMNode textRects]): Use createNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: (-[WKDOMRange textRects]): Ditto. * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm: (WebKit::InjectedBundle::setBundleParameter): Use @{}. * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm: (WebKit::makeRenderLayer): Use @[]. * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::writeItemsToPasteboard): Use makeVector<String>. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::applicationDidEnterBackground): Use @(). * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::suspendPainting): Use @{}. (WebKit::TiledCoreAnimationDrawingArea::resumePainting): Use @{}. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: Removed an unneeded include. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm: Ditto. (-[WKAccessibilityWebPageObject accessibilityActionNames]): Use @[]. (-[WKAccessibilityWebPageObject accessibilityChildren]): Use @[]. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::getActivePagesOriginsForTesting): Use makeVector<String>. Source/WebKitLegacy/ios: * WebCoreSupport/WebChromeClientIOS.mm: (WebChromeClientIOS::runOpenPanel): Use createNSArray. * WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): Use createNSArray. * WebCoreSupport/WebVisiblePositionInternal.h: Added #if so that this correctly doesn't compile anything on Mac. * WebView/WebPDFViewIOS.mm: (+[WebPDFView supportedMIMETypes]): Use @[]. Source/WebKitLegacy/mac: * DOM/DOM.mm: (kit): Deleted overload that takes Vector<IntRect>. (-[DOMNode textRects]): Use createNSArray. (-[DOMRange textRects]): Ditto. * DOM/ExceptionHandlers.mm: (raiseDOMErrorException): Use @(). * History/WebBackForwardList.mm: (-[WebBackForwardList dictionaryRepresentation]): Use @{}. * History/WebHistory.mm: (+[WebHistoryPrivate initialize]): Use @{}. (-[WebHistory _sendNotification:entries:]): Use @{}. * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): Use makeVector<String>. (-[WebHistoryItem dictionaryRepresentation:]): Use createNSArray and @(). * History/WebURLsWithTitles.m: (+[WebURLsWithTitles arrayWithIFURLsWithTitlesPboardType]): Use @[]. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use @[]. * Misc/WebCache.mm: (+[WebCache statistics]): Use @[], @{}, and @(). * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): Ditto. * Misc/WebKitErrors.m: (-[NSError _webkit_initWithDomain:code:URL:]): Use @(). (+[NSError _registerWebKitErrors]): Use @(). (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): Use @(). * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): Use @{}. (-[NSString _web_widthWithFont:]): Use @{}. * Misc/WebNSFileManagerExtras.mm: Removed unneeded include. * Misc/WebNSPasteboardExtras.mm: (+[NSPasteboard _web_dragTypesForURL]): Use @[]. (-[NSPasteboard _web_writeURL:andTitle:types:]): Use @[]. (+[NSPasteboard _web_setFindPasteboardString:withOwner:]): Use @[]. * Misc/WebNSURLExtras.mm: Removed unneeded include. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Use @{}. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCIdentifierInfo): Use @(). * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use @(). * Plugins/Hosted/WebHostedNetscapePluginView.mm: Removed unneeded include. * Plugins/WebBasePluginPackage.mm: Ditto. * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _actionInformationWithURL:]): Use @{}. * Plugins/WebPluginDatabase.mm: (+[WebPluginDatabase _defaultPlugInPaths]): Use @[]. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager databasesWithOrigin:]): Use createNSArray. * WebCoreSupport/CorrectionPanel.mm: (CorrectionPanel::show): Use createNSArray. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): Use @(). * WebCoreSupport/WebEditorClient.mm: (attributesForAttributedStringConversion): Use @(). (WebEditorClient::getGuessesForWord): Use makeVector<String>. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary const): Use @(). (kit): Deleted overload that takes Vector<String>. (pluginView): Use @{}. (WebFrameLoaderClient::createPlugin): Use createNSArray, @{}, and @(). (WebFrameLoaderClient::createJavaAppletWidget): Use createNSArray. * WebCoreSupport/WebOpenPanelResultListener.mm: (-[WebOpenPanelResultListener chooseFilenames:]): Use makeVector<String>. (-[WebOpenPanelResultListener chooseFilename:displayString:iconImage:]): Use @[]. (-[WebOpenPanelResultListener chooseFilenames:displayString:iconImage:]): Use makeVector<String>. * WebCoreSupport/WebSelectionServiceController.mm: (WebSelectionServiceController::handleSelectionServiceClick): Comment out an unused argument. * WebView/WebFrame.mm: (-[WebFrame _rectsForRange:]): Use createNSArrray. (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Use createNSArray and @[]. (-[WebFrame childFrames]): Use @[]. * WebView/WebHTMLView.mm: (+[WebHTMLView _selectionPasteboardTypes]): Use @[]. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use @[]. (-[WebHTMLView knowsPageRange:]): Use @[]. (-[WebHTMLView accessibilityAttributeValue:]): Use @[]. (-[WebHTMLView copyFont:]): Use @[]. (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Use @[]. (-[WebHTMLView selectionTextRects]): Use createNSArray. (-[WebHTMLView rectsForTextMatches]): Use createNSArray and @[]. * WebView/WebPDFRepresentation.mm: Removed unneeded include. (+[WebPDFRepresentation postScriptMIMETypes]): Use @[]. (+[WebPDFRepresentation supportedMIMETypes]): Use @[]. * WebView/WebPDFView.mm: (-[WebPDFView elementAtPoint:]): Use @{} and @(). (-[WebPDFView viewState]): Use @(). (-[WebPDFView selectionTextRects]): Use @[]. (-[WebPDFView pasteboardTypesForSelection]): Use @[]. (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Use @(). (-[WebPDFView _openWithFinder:]): Use @{} and @(). * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Use @(). (-[WebPreferences _setUnsignedIntValue:forKey:]): Use @(). (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Use @(). (-[WebPreferences setStorageBlockingPolicy:]): Use @{} and @(). * WebView/WebScriptDebugger.mm: (WebScriptDebugger::sourceParsed): Use @(). * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): Use @{}. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Use makeVector<String>. (-[WebView _contentsOfUserInterfaceItem:]): Use @(). (toStringVector): Deleted. (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]): Use makeVector<String>. (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]): Use makeVector<String>. (-[WebView _elementAtWindowPoint:]): Use @{}. (-[WebView pasteboardTypesForSelection]): Use @[]. (-[WebView pasteboardTypesForElement:]): Use @[]. (-[WebView rectsForTextMatches]): Use @[]. (-[WebView _searchWithGoogleFromMenu:]): Use @[]. (-[WebView _setFontWhitelist:]): Use makeVector<String>. Source/WTF: * WTF.xcodeproj/project.pbxproj: Added VectorCocoa.h. * wtf/PlatformMac.cmake: Ditto. * wtf/cocoa/NSURLExtras.mm: Removed unneeded include. * wtf/cocoa/URLCocoa.mm: Ditto. * wtf/cocoa/VectorCocoa.h: Added. Contains createNSArray and makeVector function templates for converting NSArray to and from Vector. * wtf/text/WTFString.h: Added makeNSArrayElement and makeVectorElement functions, making createNSArray and makeVector compatible with String. * wtf/text/cocoa/StringCocoa.mm: (WTF::makeNSArrayElement): Added. (WTF::makeVectorElement): Added. Tools: * DumpRenderTree/AccessibilityController.h: Remove use of NotificationHandler type; it's just "id". * DumpRenderTree/AccessibilityUIElement.cpp: (convertElementsToObjectArray): Moved this up in the file, removed unneeded use of JSValueToObject and unused exception argument. (elementsForRangeCallback): Use convertElementsToObjectArray. (columnHeadersCallback): Updated for removed exception argument. (rowHeadersCallback): Ditto. (uiElementArrayAttributeValueCallback): Ditto. * DumpRenderTree/AccessibilityUIElement.h: Changed to use RetainPtr. * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: (createCoreAnimationLayer): Use @{}. * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (AccessibilityUIElement::~AccessibilityUIElement): Deleted. (AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): Use @[]. * DumpRenderTree/ios/TextInputControllerIOS.m: (-[TextInputController markedRange]): Use @[]. * DumpRenderTree/mac/AccessibilityCommonMac.mm: (searchPredicateParameterizedAttributeForSearchCriteria): Tweak a little. * DumpRenderTree/mac/AccessibilityNotificationHandler.mm: (-[NSString createJSStringRef]): Deleted. Duplicate of a method already implemented in anothe file. * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (makeVectorElement): Added overloads to make both makeVector<AccessibilityTextMarkerRange> and makeVector<AccessibilityUIElement> work. (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (convertVectorToObjectArray): Removed unneeded use of JSValueToObject and unneeded exception argument. (convertNSArrayToVector): Deleted. (AccessibilityUIElement::getLinkedUIElements): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::getDocumentLinks): Ditto. (AccessibilityUIElement::getChildren): Ditto. (AccessibilityUIElement::getChildrenWithRange): Ditto. (AccessibilityUIElement::rowHeaders const): Ditto. (AccessibilityUIElement::columnHeaders const): Ditto. (AccessibilityUIElement::uiElementArrayAttributeValue const): Ditto. (AccessibilityUIElement::role): Updated since m_element is a RetainPtr. (AccessibilityUIElement::subrole): Ditto. (AccessibilityUIElement::roleDescription): Ditto. (AccessibilityUIElement::computedRoleString): Ditto. (AccessibilityUIElement::title): Ditto. (AccessibilityUIElement::description): Ditto. (AccessibilityUIElement::orientation const): Ditto. (AccessibilityUIElement::stringValue): Ditto. (AccessibilityUIElement::language): Ditto. (AccessibilityUIElement::helpText const): Ditto. (AccessibilityUIElement::lineForIndex): Use @(). (AccessibilityUIElement::rangeForLine): Use @(). (AccessibilityUIElement::searchTextWithCriteria): Use makeVector<AccessibilityTextMarkerRange>. (AccessibilityUIElement::attributesOfColumnHeaders): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::attributesOfRowHeaders): Ditto. (AccessibilityUIElement::attributesOfColumns): Ditto. (AccessibilityUIElement::attributesOfRows): Ditto. (AccessibilityUIElement::attributesOfVisibleCells): Ditto. (AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (AccessibilityUIElement::setSelectedChild const): Use @[]. (AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions): Use @{}, @YES, and @NO. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * DumpRenderTree/mac/DumpRenderTree.mm: (addTestPluginsToPluginSearchPath): Use @[]. (resetWebViewToConsistentStateBeforeTesting): Use @[]. * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (-[DumpRenderTreePasteboard declareType:owner:]): Use @[]. * DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController beginDragWithFiles:]): Use @(). (-[EventSendingController sentTouchEventOfType:]): Use @(). * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider cancelNotification:]): Use @[]. * DumpRenderTree/mac/ObjCController.m: (-[ObjCController objectOfClass:]): Use @(). (-[ObjCController arrayOfString]): Use @[]. (-[ObjCController testWrapperRoundTripping:]): Use @(). (-[ObjCController testArray]): Use @[]. * DumpRenderTree/mac/TestRunnerMac.mm: (originsArrayToJS): Removed unneeded use of JSValueToObject. * DumpRenderTree/mac/TextInputControllerMac.m: (-[TextInputController markedRange]): Use @[] and @(). (-[TextInputController selectedRange]): Use @[] and @(). (-[TextInputController firstRectForCharactersFrom:length:]): Use @[] and @(). (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]): Use @[]. (-[TextInputController interpretKeyEvents:withSender:]): Use @[]. * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use []. * DumpRenderTree/win/AccessibilityUIElementWin.cpp: Deleted an unneeded copy constructor and destructor. * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Use @{}. * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (toVector): Deleted. (-[ContentRuleListNotificationDelegate _webView:contentRuleListWithIdentifier:performedAction:forURL:]): Use makeVector<String>. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: (writeImageDataToPasteboard): Use @[] and @{}. (writeBundleFileToPasteboard): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteWebArchive.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (runWebsiteDataStoreCustomPaths): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteURL.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteZeroPng.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm: (-[DidCreateJavaScriptContextFrameLoadDelegate webView:didCreateJavaScriptContext:forFrame:]): Use @[]. * TestWebKitAPI/ios/mainIOS.mm: (main): Use @{}. * TestWebKitAPI/mac/InjectedBundleControllerMac.mm: (TestWebKitAPI::InjectedBundleController::platformInitialize): Use @{} and @(). * TestWebKitAPI/mac/mainMac.mm: (main): Use {}. * WebKitTestRunner/InjectedBundle/AccessibilityController.h: Use id instead of NotificationHandler. * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h: Use id for PlatformTextMarkerRange. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityTextMarkerRange>> work. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: Use RetainPtr. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityUIElement>> work. * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: Removed unneeded include. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertElementsToObjectArray): Removed unneeded use of JSValueToObject. (WTR::AccessibilityUIElement::elementsForRange): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm: (WTR::InjectedBundle::platformInitialize): Use @{}. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::getLinkedUIElements): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::getDocumentLinks): Ditto. (WTR::AccessibilityUIElement::getUIElementsWithAttribute const): Ditto. (WTR::AccessibilityUIElement::getChildren): Ditto. (WTR::AccessibilityUIElement::getChildrenWithRange): Ditto. (WTR::AccessibilityUIElement::rowHeaders const): Ditto. (WTR::AccessibilityUIElement::columnHeaders const): Ditto. (WTR::AccessibilityUIElement::allAttributes): Updated since m_element is a RetainPtr. (WTR::AccessibilityUIElement::stringDescriptionOfAttributeValue): Ditto. (WTR::AccessibilityUIElement::role): Ditto. (WTR::AccessibilityUIElement::subrole): Ditto. (WTR::AccessibilityUIElement::roleDescription): Ditto. (WTR::AccessibilityUIElement::computedRoleString): Ditto. (WTR::AccessibilityUIElement::title): Ditto. (WTR::AccessibilityUIElement::description): Ditto. (WTR::AccessibilityUIElement::orientation const): Ditto. (WTR::AccessibilityUIElement::stringValue): Ditto. (WTR::AccessibilityUIElement::language): Ditto. (WTR::AccessibilityUIElement::helpText const): Ditto. (WTR::AccessibilityUIElement::lineForIndex): Use @(). (WTR::AccessibilityUIElement::rangeForLine): Use @(). (WTR::AccessibilityUIElement::searchTextWithCriteria): Use makeVector<RefPtr<AccessibilityTextMarkerRange>>. (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfRowHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfColumns): Ditto. (WTR::AccessibilityUIElement::attributesOfRows): Ditto. (WTR::AccessibilityUIElement::attributesOfVisibleCells): Ditto. (WTR::AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (WTR::AccessibilityUIElement::setSelectedChild const): Use @[]. (WTR::AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveAllStorageAccessEntries): Take Vector&&. (WTR::TestInvocation::didReceiveWebViewCategory): Take String&&. * WebKitTestRunner/TestInvocation.h: Updated for the above. * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::cocoaPlatformInitialize): Use @{}and @(). (WTR::TestController::getAllStorageAccessEntries): Use makeVector<String>. (WTR::TestController::loadedThirdPartyDomains): Use makeVector<String>. (WTR::TestController::getWebViewCategory): Update to pass String&&. (WTR::TestController::setAllowedMenuActions): Use createNSArray. * WebKitTestRunner/ios/HIDEventGenerator.mm: (-[HIDEventGenerator interpolatedEvents:]): Use @(). * WebKitTestRunner/mac/PlatformWebViewMac.mm: (WTR::PlatformWebView::changeWindowScaleIfNeeded): Use @{} and @(). * WebKitTestRunner/mac/TestControllerMac.mm: Removed unneeded include. * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use @[]. * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (-[WebKitTestRunnerPasteboard declareType:owner:]): Use @[]. Canonical link: https://commits.webkit.org/223199@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-10 02:11:30 +00:00
platform/graphics/cocoa/GraphicsContextCocoa.mm
Source/WebCore: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Implemented with a generator script implementing the IPC to pass the GraphicsContextGL member function calls from web process to the GPU process. The script is run during development time and the results are committed to the repo for ease of review. Extracts an interface GraphicsContextGLIOSurfaceSwapChain which is used to submit IOSurfaces from GraphicsContextGLOpenGL. For web process WebGL, these go to WebGLLayer. For GPU process WebGL, the IOSurfaces go to the prepareForDisplay caller, e.g. the RemoteGraphicsContextGL, which then return the IOSurfaces back to Web process side. RemoteGraphicsContextGLProxy will send them to WebGLLayer. No new tests, tested by existing webgl tests once the implementation works. * PlatformMac.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/canvas/WebGL2RenderingContext.cpp: (WebCore::WebGL2RenderingContext::getBufferSubData): (WebCore::WebGL2RenderingContext::vertexAttribI4uiv): (WebCore::WebGL2RenderingContext::getQueryParameter): (WebCore::WebGL2RenderingContext::bindSampler): (WebCore::WebGL2RenderingContext::getSamplerParameter): (WebCore::WebGL2RenderingContext::clientWaitSync): (WebCore::WebGL2RenderingContext::deleteTransformFeedback): (WebCore::WebGL2RenderingContext::beginTransformFeedback): (WebCore::WebGL2RenderingContext::endTransformFeedback): (WebCore::WebGL2RenderingContext::transformFeedbackVaryings): (WebCore::WebGL2RenderingContext::getActiveUniforms): (WebCore::WebGL2RenderingContext::readPixels): * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::create): (WebCore::WebGLRenderingContextBase::readPixels): * html/canvas/WebGLSync.cpp: (WebCore::WebGLSync::updateCache): * page/Chrome.cpp: (WebCore::Chrome::createGraphicsContextGL const): (WebCore::Chrome::windowScreenDidChange): * page/Chrome.h: * page/ChromeClient.h: (WebCore::ChromeClient::createGraphicsContextGL const): * platform/HostWindow.h: * platform/RuntimeApplicationChecks.h: (WebCore::isInGPUProcess): * platform/cocoa/RuntimeApplicationChecksCocoa.mm: (WebCore::isInGPUProcess): * platform/graphics/ExtensionsGL.h: * platform/graphics/GraphicsContextGL.cpp: (WebCore::GraphicsContextGL::create): * platform/graphics/GraphicsContextGL.h: * platform/graphics/GraphicsTypesGL.h: (GCGLSpan::GCGLSpan): (GCGLSpan<GCGLvoid>::GCGLSpan): * platform/graphics/RemoteGraphicsContextGLProxyBase.cpp: Added. (WebCore::RemoteGraphicsContextGLProxyBase::RemoteGraphicsContextGLProxyBase): (WebCore::RemoteGraphicsContextGLProxyBase::platformGraphicsContextGL const): (WebCore::RemoteGraphicsContextGLProxyBase::platformTexture const): (WebCore::RemoteGraphicsContextGLProxyBase::getExtensions): (WebCore::RemoteGraphicsContextGLProxyBase::setContextVisibility): (WebCore::RemoteGraphicsContextGLProxyBase::powerPreferenceUsedForCreation const): (WebCore::RemoteGraphicsContextGLProxyBase::isGLES2Compliant const): (WebCore::RemoteGraphicsContextGLProxyBase::markContextChanged): (WebCore::RemoteGraphicsContextGLProxyBase::markLayerComposited): (WebCore::RemoteGraphicsContextGLProxyBase::layerComposited const): (WebCore::RemoteGraphicsContextGLProxyBase::setBuffersToAutoClear): (WebCore::RemoteGraphicsContextGLProxyBase::getBuffersToAutoClear const): (WebCore::RemoteGraphicsContextGLProxyBase::paintCompositedResultsToCanvas): (WebCore::RemoteGraphicsContextGLProxyBase::enablePreserveDrawingBuffer): (WebCore::RemoteGraphicsContextGLProxyBase::supports): (WebCore::RemoteGraphicsContextGLProxyBase::ensureEnabled): (WebCore::RemoteGraphicsContextGLProxyBase::isEnabled): (WebCore::RemoteGraphicsContextGLProxyBase::initialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformInitialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformLayer const): * platform/graphics/RemoteGraphicsContextGLProxyBase.h: Added. * platform/graphics/angle/ExtensionsGLANGLE.cpp: (WebCore::ExtensionsGLANGLE::ExtensionsGLANGLE): (WebCore::ExtensionsGLANGLE::getGraphicsResetStatusARB): (WebCore::ExtensionsGLANGLE::getTranslatedShaderSourceANGLE): (WebCore::ExtensionsGLANGLE::blitFramebufferANGLE): (WebCore::ExtensionsGLANGLE::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLANGLE::drawArraysInstancedANGLE): (WebCore::ExtensionsGLANGLE::drawElementsInstancedANGLE): (WebCore::ExtensionsGLANGLE::vertexAttribDivisorANGLE): (WebCore::ExtensionsGLANGLE::getUniformuivRobustANGLE): (WebCore::ExtensionsGLANGLE::getTexLevelParameterivRobustANGLE): (WebCore::ExtensionsGLANGLE::getTexLevelParameterfvRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformfvRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformivRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformuivRobustANGLE): * platform/graphics/angle/ExtensionsGLANGLE.h: * platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLOpenGL::readnPixels): (WebCore::GraphicsContextGLOpenGL::readnPixelsImpl): (WebCore::GraphicsContextGLOpenGL::getBufferSubData): (WebCore::GraphicsContextGLOpenGL::getActiveUniforms): (WebCore::GraphicsContextGLOpenGL::getQueryObjectui): (WebCore::GraphicsContextGLOpenGL::getSamplerParameterf): (WebCore::GraphicsContextGLOpenGL::getSamplerParameteri): (WebCore::GraphicsContextGLOpenGL::getSynci): * platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.cpp: Added. * platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.h: Copied from Source/WebCore/platform/graphics/cocoa/WebGLLayer.h. * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: (WebCore::InitializeEGLDisplay): (WebCore::GraphicsContextGLOpenGL::create): (WebCore::GraphicsContextGLOpenGL::createShared): (WebCore::GraphicsContextGLOpenGL::createForGPUProcess): (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::~GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::reshapeDisplayBufferBacking): (WebCore::GraphicsContextGLOpenGL::allocateAndBindDisplayBufferBacking): (WebCore::GraphicsContextGLOpenGL::allowOfflineRenderers const): (WebCore::GraphicsContextGLOpenGL::prepareForDisplay): * platform/graphics/cocoa/RemoteGraphicsContextGLProxyBaseCocoa.mm: Added. (WebCore::RemoteGraphicsContextGLProxyBase::platformInitialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformLayer const): (WebCore::RemoteGraphicsContextGLProxyBase::asCV): (WebCore::RemoteGraphicsContextGLProxyBase::platformSwapChain): * platform/graphics/cocoa/WebGLLayer.h: * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer initWithDevicePixelRatio:contentsOpaque:]): (-[WebGLLayer swapChain]): (-[WebGLLayer prepareForDisplay]): (-[WebGLLayer display]): (WebGLLayerSwapChain::present): * platform/graphics/coreimage/FilterEffectRendererCoreImage.mm: * platform/graphics/opengl/ExtensionsGLOpenGL.cpp: (WebCore::ExtensionsGLOpenGL::blitFramebufferANGLE): (WebCore::ExtensionsGLOpenGL::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLOpenGL::drawArraysInstancedANGLE): (WebCore::ExtensionsGLOpenGL::drawElementsInstancedANGLE): (WebCore::ExtensionsGLOpenGL::vertexAttribDivisorANGLE): * platform/graphics/opengl/ExtensionsGLOpenGL.h: * platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp: (WebCore::ExtensionsGLOpenGLCommon::readnPixelsRobustANGLE): * platform/graphics/opengl/ExtensionsGLOpenGLCommon.h: * platform/graphics/opengl/ExtensionsGLOpenGLES.cpp: (WebCore::ExtensionsGLOpenGLES::blitFramebufferANGLE): (WebCore::ExtensionsGLOpenGLES::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLOpenGLES::drawArraysInstancedANGLE): (WebCore::ExtensionsGLOpenGLES::drawElementsInstancedANGLE): (WebCore::ExtensionsGLOpenGLES::vertexAttribDivisorANGLE): * platform/graphics/opengl/ExtensionsGLOpenGLES.h: * platform/graphics/opengl/GraphicsContextGLOpenGL.h: * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: (WebCore::GraphicsContextGLOpenGL::drawArraysInstanced): (WebCore::GraphicsContextGLOpenGL::drawElementsInstanced): (WebCore::GraphicsContextGLOpenGL::vertexAttribDivisor): (WebCore::GraphicsContextGLOpenGL::getBufferSubData): (WebCore::GraphicsContextGLOpenGL::getQueryObjectui): (WebCore::GraphicsContextGLOpenGL::getSamplerParameterf): (WebCore::GraphicsContextGLOpenGL::getSamplerParameteri): (WebCore::GraphicsContextGLOpenGL::getSynci): (WebCore::GraphicsContextGLOpenGL::getActiveUniforms): * platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp: (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): Source/WebKit: Implement RemoteWebGLBackend https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Implemented with a generator script implementing the IPC to pass the GraphicsContextGL member function calls from web process to the GPU process. The script is run during development time and the results are committed to the repo for ease of review. Implement the RemoteGraphicsContextGL in WebKit side. This class will forward calls received via IPC to the GraphicsContextGLOpenGL. At the moment RemoteGraphicsContextGL instance is a direct child of GPUConnectionToWebProcess. Compositing is implemented only for PLATFORM(COCOA). Missing: - Simulated context loss - Simulated context change - Paint WebGL contents to 2D canvas - Upload video to WebGL - Upload canvas to WebGL * CMakeLists.txt: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * GPUProcess/GPUConnectionToWebProcess.cpp: (WebKit::GPUConnectionToWebProcess::createGraphicsContextGL): (WebKit::GPUConnectionToWebProcess::releaseGraphicsContextGL): * GPUProcess/GPUConnectionToWebProcess.h: * GPUProcess/GPUConnectionToWebProcess.messages.in: * GPUProcess/graphics/RemoteGraphicsContextGL.cpp: Added. (WebKit::RemoteGraphicsContextGL::create): (WebKit::RemoteGraphicsContextGL::RemoteGraphicsContextGL): (WebKit::RemoteGraphicsContextGL::~RemoteGraphicsContextGL): (WebKit::RemoteGraphicsContextGL::gpuConnectionToWebProcess const): (WebKit::RemoteGraphicsContextGL::messageSenderConnection const): (WebKit::RemoteGraphicsContextGL::messageSenderDestinationID const): (WebKit::RemoteGraphicsContextGL::didComposite): (WebKit::RemoteGraphicsContextGL::forceContextLost): (WebKit::RemoteGraphicsContextGL::recycleContext): (WebKit::RemoteGraphicsContextGL::dispatchContextChangedNotification): (WebKit::RemoteGraphicsContextGL::recycleBuffer): (WebKit::RemoteGraphicsContextGL::present): (WebKit::RemoteGraphicsContextGL::detachClient): (WebKit::RemoteGraphicsContextGL::reshape): (WebKit::RemoteGraphicsContextGL::prepareForDisplay): (WebKit::RemoteGraphicsContextGL::ensureExtensionEnabled): (WebKit::RemoteGraphicsContextGL::notifyMarkContextChanged): * GPUProcess/graphics/RemoteGraphicsContextGL.h: Added. * GPUProcess/graphics/RemoteGraphicsContextGL.messages.in: Added. * GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h: Added. (setFailNextGPUStatusCheck): (synthesizeGLError): (moveErrorsToSyntheticErrorList): (activeTexture): (attachShader): (bindAttribLocation): (bindBuffer): (bindFramebuffer): (bindRenderbuffer): (bindTexture): (blendColor): (blendEquation): (blendEquationSeparate): (blendFunc): (blendFuncSeparate): (checkFramebufferStatus): (clear): (clearColor): (clearDepth): (clearStencil): (colorMask): (compileShader): (copyTexImage2D): (copyTexSubImage2D): (createBuffer): (createFramebuffer): (createProgram): (createRenderbuffer): (createShader): (createTexture): (cullFace): (deleteBuffer): (deleteFramebuffer): (deleteProgram): (deleteRenderbuffer): (deleteShader): (deleteTexture): (depthFunc): (depthMask): (depthRange): (detachShader): (disable): (disableVertexAttribArray): (drawArrays): (drawElements): (enable): (enableVertexAttribArray): (finish): (flush): (framebufferRenderbuffer): (framebufferTexture2D): (frontFace): (generateMipmap): (getActiveAttrib): (getActiveUniform): (getAttribLocation): (getBufferParameteri): (getString): (getFloatv): (getIntegerv): (getInteger64): (getInteger64i): (getProgrami): (getBooleanv): (getError): (getFramebufferAttachmentParameteri): (getProgramInfoLog): (getRenderbufferParameteri): (getShaderi): (getShaderInfoLog): (getShaderPrecisionFormat): (getShaderSource): (getTexParameterf): (getTexParameteri): (getUniformfv): (getUniformiv): (getUniformuiv): (getUniformLocation): (getVertexAttribOffset): (hint): (isBuffer): (isEnabled): (isFramebuffer): (isProgram): (isRenderbuffer): (isShader): (isTexture): (lineWidth): (linkProgram): (pixelStorei): (polygonOffset): (renderbufferStorage): (sampleCoverage): (scissor): (shaderSource): (stencilFunc): (stencilFuncSeparate): (stencilMask): (stencilMaskSeparate): (stencilOp): (stencilOpSeparate): (texParameterf): (texParameteri): (uniform1f): (uniform1fv): (uniform1i): (uniform1iv): (uniform2f): (uniform2fv): (uniform2i): (uniform2iv): (uniform3f): (uniform3fv): (uniform3i): (uniform3iv): (uniform4f): (uniform4fv): (uniform4i): (uniform4iv): (uniformMatrix2fv): (uniformMatrix3fv): (uniformMatrix4fv): (useProgram): (validateProgram): (vertexAttrib1f): (vertexAttrib1fv): (vertexAttrib2f): (vertexAttrib2fv): (vertexAttrib3f): (vertexAttrib3fv): (vertexAttrib4f): (vertexAttrib4fv): (vertexAttribPointer): (viewport): (bufferData0): (bufferData1): (bufferSubData): (readnPixels0): (readnPixels1): (texImage2D0): (texImage2D1): (texSubImage2D0): (texSubImage2D1): (compressedTexImage2D0): (compressedTexImage2D1): (compressedTexSubImage2D0): (compressedTexSubImage2D1): (drawArraysInstanced): (drawElementsInstanced): (vertexAttribDivisor): (createVertexArray): (deleteVertexArray): (isVertexArray): (bindVertexArray): (copyBufferSubData): (getBufferSubData): (blitFramebuffer): (framebufferTextureLayer): (invalidateFramebuffer): (invalidateSubFramebuffer): (readBuffer): (renderbufferStorageMultisample): (texStorage2D): (texStorage3D): (texImage3D0): (texImage3D1): (texSubImage3D0): (texSubImage3D1): (copyTexSubImage3D): (compressedTexImage3D0): (compressedTexImage3D1): (compressedTexSubImage3D0): (compressedTexSubImage3D1): (getFragDataLocation): (uniform1ui): (uniform2ui): (uniform3ui): (uniform4ui): (uniform1uiv): (uniform2uiv): (uniform3uiv): (uniform4uiv): (uniformMatrix2x3fv): (uniformMatrix3x2fv): (uniformMatrix2x4fv): (uniformMatrix4x2fv): (uniformMatrix3x4fv): (uniformMatrix4x3fv): (vertexAttribI4i): (vertexAttribI4iv): (vertexAttribI4ui): (vertexAttribI4uiv): (vertexAttribIPointer): (drawRangeElements): (drawBuffers): (clearBufferiv): (clearBufferuiv): (clearBufferfv): (clearBufferfi): (createQuery): (deleteQuery): (isQuery): (beginQuery): (endQuery): (getQuery): (getQueryObjectui): (createSampler): (deleteSampler): (isSampler): (bindSampler): (samplerParameteri): (samplerParameterf): (getSamplerParameterf): (getSamplerParameteri): (fenceSync): (isSync): (deleteSync): (clientWaitSync): (waitSync): (getSynci): (createTransformFeedback): (deleteTransformFeedback): (isTransformFeedback): (bindTransformFeedback): (beginTransformFeedback): (endTransformFeedback): (transformFeedbackVaryings): (getTransformFeedbackVarying): (pauseTransformFeedback): (resumeTransformFeedback): (bindBufferBase): (bindBufferRange): (getUniformIndices): (getActiveUniforms): (getUniformBlockIndex): (getActiveUniformBlockName): (uniformBlockBinding): (getActiveUniformBlockiv): (getGraphicsResetStatusARB): (blitFramebufferANGLE): (renderbufferStorageMultisampleANGLE): (createVertexArrayOES): (deleteVertexArrayOES): (isVertexArrayOES): (bindVertexArrayOES): (getTranslatedShaderSourceANGLE): (insertEventMarkerEXT): (pushGroupMarkerEXT): (popGroupMarkerEXT): (drawBuffersEXT): (drawArraysInstancedANGLE): (drawElementsInstancedANGLE): (vertexAttribDivisorANGLE): * GPUProcess/mac/GPUProcessMac.mm: (WebKit::GPUProcess::initializeProcess): * GPUProcess/media/RemoteLegacyCDMProxy.h: * GPUProcess/media/RemoteLegacyCDMSessionProxy.cpp: * GPUProcess/media/RemoteMediaResourceManager.cpp: * GPUProcess/media/RemoteMediaResourceManager.h: * GPUProcess/media/RemoteMediaSourceProxy.h: * GPUProcess/media/RemoteSourceBufferProxy.cpp: * GPUProcess/media/RemoteSourceBufferProxy.h: * GPUProcess/webrtc/LibWebRTCCodecsProxy.h: * GPUProcess/webrtc/LibWebRTCCodecsProxy.mm: * GPUProcess/webrtc/RemoteMediaRecorder.h: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.h: * NetworkProcess/Downloads/Download.cpp: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/NetworkSocketChannel.cpp: * NetworkProcess/NetworkSocketChannel.h: * NetworkProcess/NetworkSocketStream.cpp: * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.h: * NetworkProcess/WebSocketTask.h: * NetworkProcess/cocoa/WebSocketTaskCocoa.h: * NetworkProcess/cocoa/WebSocketTaskCocoa.mm: * NetworkProcess/soup/WebSocketTaskSoup.cpp: * NetworkProcess/soup/WebSocketTaskSoup.h: * Platform/IPC/ArgumentCoders.h: * Platform/IPC/ArrayReference.h: Copied from Source/WebKit/Platform/IPC/DataReference.h. (IPC::ArrayReference::ArrayReference): (IPC::ArrayReference::isEmpty const): (IPC::ArrayReference::size const): (IPC::ArrayReference::data const): (IPC::ArrayReference::vector const): * Platform/IPC/Connection.h: (IPC::Connection::sendSync): * Platform/IPC/DataReference.h: * Platform/IPC/Decoder.cpp: (IPC::Decoder::decodeFixedLengthReference): * Platform/IPC/Decoder.h: * Platform/IPC/Encoder.cpp: (IPC::Encoder::wrapForTesting): * Platform/IPC/Encoder.h: * Platform/IPC/HandleMessage.h: * Platform/IPC/MessageSender.h: (IPC::MessageSender::sendSync): * Platform/IPC/SharedBufferCopy.cpp: (IPC::SharedBufferCopy::decode): * Platform/IPC/SharedBufferDataReference.cpp: * Platform/IPC/StringReference.cpp: * PluginProcess/PluginControllerProxy.cpp: * PluginProcess/PluginControllerProxy.h: * Scripts/webkit/messages.py: * Shared/API/APIData.cpp: * Shared/AuxiliaryProcess.h: * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder<WebCore::GraphicsContextGLAttributes>::encode): (IPC::ArgumentCoder<WebCore::GraphicsContextGLAttributes>::decode): (IPC::ArgumentCoder<WebCore::GraphicsContextGL::ActiveInfo>::encode): (IPC::ArgumentCoder<WebCore::GraphicsContextGL::ActiveInfo>::decode): * Shared/WebCoreArgumentCoders.h: * Shared/WebPageCreationParameters.cpp: (WebKit::WebPageCreationParameters::encode const): (WebKit::WebPageCreationParameters::decode): * Shared/WebPageCreationParameters.h: * Shared/cf/ArgumentCodersCF.cpp: * Shared/soup/WebCoreArgumentCodersSoup.cpp: (IPC::ArgumentCoder<CertificateInfo>::encode): (IPC::ArgumentCoder<CertificateInfo>::decode): * Sources.txt: * SourcesCocoa.txt: * UIProcess/API/APIIconLoadingClient.h: * UIProcess/AuxiliaryProcessProxy.h: (WebKit::AuxiliaryProcessProxy::sendSync): * UIProcess/Cocoa/SOAuthorization/SubFrameSOAuthorizationSession.h: * UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.h: * UIProcess/PageClient.h: * UIProcess/UserContent/WebUserContentControllerProxy.cpp: * UIProcess/UserContent/WebUserContentControllerProxy.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::creationParameters): * UIProcess/WebPageProxy.h: * UIProcess/WebURLSchemeHandler.h: * UIProcess/WebURLSchemeTask.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/GPU/GPUProcessConnection.h: * WebProcess/GPU/graphics/GraphicsContextGLIdentifier.h: Renamed from Source/WebKit/Platform/IPC/DataReference.cpp. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: Added. (WebKit::RemoteGraphicsContextGLProxy::create): (WebKit::RemoteGraphicsContextGLProxy::RemoteGraphicsContextGLProxy): (WebKit::RemoteGraphicsContextGLProxy::~RemoteGraphicsContextGLProxy): (WebKit::RemoteGraphicsContextGLProxy::messageSenderConnection const): (WebKit::RemoteGraphicsContextGLProxy::messageSenderDestinationID const): (WebKit::RemoteGraphicsContextGLProxy::reshape): (WebKit::RemoteGraphicsContextGLProxy::prepareForDisplay): (WebKit::RemoteGraphicsContextGLProxy::ensureExtensionEnabled): (WebKit::RemoteGraphicsContextGLProxy::notifyMarkContextChanged): (WebKit::RemoteGraphicsContextGLProxy::simulateContextChanged): (WebKit::RemoteGraphicsContextGLProxy::paintRenderingResultsToCanvas): (WebKit::RemoteGraphicsContextGLProxy::paintRenderingResultsToImageData): (WebKit::RemoteGraphicsContextGLProxy::wasCreated): (WebKit::RemoteGraphicsContextGLProxy::wasLost): (WebKit::RemoteGraphicsContextGLProxy::wasChanged): (WebKit::RemoteGraphicsContextGLProxy::waitUntilInitialized): * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h: Added. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.messages.in: Copied from Source/WebKit/GPUProcess/GPUConnectionToWebProcess.messages.in. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxyFunctionsGenerated.cpp: Added. (WebKit::RemoteGraphicsContextGLProxy::setFailNextGPUStatusCheck): (WebKit::RemoteGraphicsContextGLProxy::synthesizeGLError): (WebKit::RemoteGraphicsContextGLProxy::moveErrorsToSyntheticErrorList): (WebKit::RemoteGraphicsContextGLProxy::activeTexture): (WebKit::RemoteGraphicsContextGLProxy::attachShader): (WebKit::RemoteGraphicsContextGLProxy::bindAttribLocation): (WebKit::RemoteGraphicsContextGLProxy::bindBuffer): (WebKit::RemoteGraphicsContextGLProxy::bindFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::bindRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::bindTexture): (WebKit::RemoteGraphicsContextGLProxy::blendColor): (WebKit::RemoteGraphicsContextGLProxy::blendEquation): (WebKit::RemoteGraphicsContextGLProxy::blendEquationSeparate): (WebKit::RemoteGraphicsContextGLProxy::blendFunc): (WebKit::RemoteGraphicsContextGLProxy::blendFuncSeparate): (WebKit::RemoteGraphicsContextGLProxy::checkFramebufferStatus): (WebKit::RemoteGraphicsContextGLProxy::clear): (WebKit::RemoteGraphicsContextGLProxy::clearColor): (WebKit::RemoteGraphicsContextGLProxy::clearDepth): (WebKit::RemoteGraphicsContextGLProxy::clearStencil): (WebKit::RemoteGraphicsContextGLProxy::colorMask): (WebKit::RemoteGraphicsContextGLProxy::compileShader): (WebKit::RemoteGraphicsContextGLProxy::copyTexImage2D): (WebKit::RemoteGraphicsContextGLProxy::copyTexSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::createBuffer): (WebKit::RemoteGraphicsContextGLProxy::createFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::createProgram): (WebKit::RemoteGraphicsContextGLProxy::createRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::createShader): (WebKit::RemoteGraphicsContextGLProxy::createTexture): (WebKit::RemoteGraphicsContextGLProxy::cullFace): (WebKit::RemoteGraphicsContextGLProxy::deleteBuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteProgram): (WebKit::RemoteGraphicsContextGLProxy::deleteRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteShader): (WebKit::RemoteGraphicsContextGLProxy::deleteTexture): (WebKit::RemoteGraphicsContextGLProxy::depthFunc): (WebKit::RemoteGraphicsContextGLProxy::depthMask): (WebKit::RemoteGraphicsContextGLProxy::depthRange): (WebKit::RemoteGraphicsContextGLProxy::detachShader): (WebKit::RemoteGraphicsContextGLProxy::disable): (WebKit::RemoteGraphicsContextGLProxy::disableVertexAttribArray): (WebKit::RemoteGraphicsContextGLProxy::drawArrays): (WebKit::RemoteGraphicsContextGLProxy::drawElements): (WebKit::RemoteGraphicsContextGLProxy::enable): (WebKit::RemoteGraphicsContextGLProxy::enableVertexAttribArray): (WebKit::RemoteGraphicsContextGLProxy::finish): (WebKit::RemoteGraphicsContextGLProxy::flush): (WebKit::RemoteGraphicsContextGLProxy::framebufferRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::framebufferTexture2D): (WebKit::RemoteGraphicsContextGLProxy::frontFace): (WebKit::RemoteGraphicsContextGLProxy::generateMipmap): (WebKit::RemoteGraphicsContextGLProxy::getActiveAttrib): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniform): (WebKit::RemoteGraphicsContextGLProxy::getAttribLocation): (WebKit::RemoteGraphicsContextGLProxy::getBufferParameteri): (WebKit::RemoteGraphicsContextGLProxy::getString): (WebKit::RemoteGraphicsContextGLProxy::getFloatv): (WebKit::RemoteGraphicsContextGLProxy::getIntegerv): (WebKit::RemoteGraphicsContextGLProxy::getInteger64): (WebKit::RemoteGraphicsContextGLProxy::getInteger64i): (WebKit::RemoteGraphicsContextGLProxy::getProgrami): (WebKit::RemoteGraphicsContextGLProxy::getBooleanv): (WebKit::RemoteGraphicsContextGLProxy::getError): (WebKit::RemoteGraphicsContextGLProxy::getFramebufferAttachmentParameteri): (WebKit::RemoteGraphicsContextGLProxy::getProgramInfoLog): (WebKit::RemoteGraphicsContextGLProxy::getRenderbufferParameteri): (WebKit::RemoteGraphicsContextGLProxy::getShaderi): (WebKit::RemoteGraphicsContextGLProxy::getShaderInfoLog): (WebKit::RemoteGraphicsContextGLProxy::getShaderPrecisionFormat): (WebKit::RemoteGraphicsContextGLProxy::getShaderSource): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterf): (WebKit::RemoteGraphicsContextGLProxy::getTexParameteri): (WebKit::RemoteGraphicsContextGLProxy::getUniformfv): (WebKit::RemoteGraphicsContextGLProxy::getUniformiv): (WebKit::RemoteGraphicsContextGLProxy::getUniformuiv): (WebKit::RemoteGraphicsContextGLProxy::getUniformLocation): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribOffset): (WebKit::RemoteGraphicsContextGLProxy::hint): (WebKit::RemoteGraphicsContextGLProxy::isBuffer): (WebKit::RemoteGraphicsContextGLProxy::isEnabled): (WebKit::RemoteGraphicsContextGLProxy::isFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::isProgram): (WebKit::RemoteGraphicsContextGLProxy::isRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::isShader): (WebKit::RemoteGraphicsContextGLProxy::isTexture): (WebKit::RemoteGraphicsContextGLProxy::lineWidth): (WebKit::RemoteGraphicsContextGLProxy::linkProgram): (WebKit::RemoteGraphicsContextGLProxy::pixelStorei): (WebKit::RemoteGraphicsContextGLProxy::polygonOffset): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorage): (WebKit::RemoteGraphicsContextGLProxy::sampleCoverage): (WebKit::RemoteGraphicsContextGLProxy::scissor): (WebKit::RemoteGraphicsContextGLProxy::shaderSource): (WebKit::RemoteGraphicsContextGLProxy::stencilFunc): (WebKit::RemoteGraphicsContextGLProxy::stencilFuncSeparate): (WebKit::RemoteGraphicsContextGLProxy::stencilMask): (WebKit::RemoteGraphicsContextGLProxy::stencilMaskSeparate): (WebKit::RemoteGraphicsContextGLProxy::stencilOp): (WebKit::RemoteGraphicsContextGLProxy::stencilOpSeparate): (WebKit::RemoteGraphicsContextGLProxy::texParameterf): (WebKit::RemoteGraphicsContextGLProxy::texParameteri): (WebKit::RemoteGraphicsContextGLProxy::uniform1f): (WebKit::RemoteGraphicsContextGLProxy::uniform1fv): (WebKit::RemoteGraphicsContextGLProxy::uniform1i): (WebKit::RemoteGraphicsContextGLProxy::uniform1iv): (WebKit::RemoteGraphicsContextGLProxy::uniform2f): (WebKit::RemoteGraphicsContextGLProxy::uniform2fv): (WebKit::RemoteGraphicsContextGLProxy::uniform2i): (WebKit::RemoteGraphicsContextGLProxy::uniform2iv): (WebKit::RemoteGraphicsContextGLProxy::uniform3f): (WebKit::RemoteGraphicsContextGLProxy::uniform3fv): (WebKit::RemoteGraphicsContextGLProxy::uniform3i): (WebKit::RemoteGraphicsContextGLProxy::uniform3iv): (WebKit::RemoteGraphicsContextGLProxy::uniform4f): (WebKit::RemoteGraphicsContextGLProxy::uniform4fv): (WebKit::RemoteGraphicsContextGLProxy::uniform4i): (WebKit::RemoteGraphicsContextGLProxy::uniform4iv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4fv): (WebKit::RemoteGraphicsContextGLProxy::useProgram): (WebKit::RemoteGraphicsContextGLProxy::validateProgram): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib1f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib1fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib2f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib2fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib3f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib3fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib4f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib4fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribPointer): (WebKit::RemoteGraphicsContextGLProxy::viewport): (WebKit::RemoteGraphicsContextGLProxy::bufferData): (WebKit::RemoteGraphicsContextGLProxy::bufferSubData): (WebKit::RemoteGraphicsContextGLProxy::readnPixels): (WebKit::RemoteGraphicsContextGLProxy::texImage2D): (WebKit::RemoteGraphicsContextGLProxy::texSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexImage2D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::drawArraysInstanced): (WebKit::RemoteGraphicsContextGLProxy::drawElementsInstanced): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribDivisor): (WebKit::RemoteGraphicsContextGLProxy::createVertexArray): (WebKit::RemoteGraphicsContextGLProxy::deleteVertexArray): (WebKit::RemoteGraphicsContextGLProxy::isVertexArray): (WebKit::RemoteGraphicsContextGLProxy::bindVertexArray): (WebKit::RemoteGraphicsContextGLProxy::copyBufferSubData): (WebKit::RemoteGraphicsContextGLProxy::getBufferSubData): (WebKit::RemoteGraphicsContextGLProxy::blitFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::framebufferTextureLayer): (WebKit::RemoteGraphicsContextGLProxy::invalidateFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::invalidateSubFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::readBuffer): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorageMultisample): (WebKit::RemoteGraphicsContextGLProxy::texStorage2D): (WebKit::RemoteGraphicsContextGLProxy::texStorage3D): (WebKit::RemoteGraphicsContextGLProxy::texImage3D): (WebKit::RemoteGraphicsContextGLProxy::texSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::copyTexSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexImage3D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::getFragDataLocation): (WebKit::RemoteGraphicsContextGLProxy::uniform1ui): (WebKit::RemoteGraphicsContextGLProxy::uniform2ui): (WebKit::RemoteGraphicsContextGLProxy::uniform3ui): (WebKit::RemoteGraphicsContextGLProxy::uniform4ui): (WebKit::RemoteGraphicsContextGLProxy::uniform1uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform2uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform3uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform4uiv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2x3fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3x2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2x4fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4x2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3x4fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4x3fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4i): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4iv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4ui): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4uiv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribIPointer): (WebKit::RemoteGraphicsContextGLProxy::drawRangeElements): (WebKit::RemoteGraphicsContextGLProxy::drawBuffers): (WebKit::RemoteGraphicsContextGLProxy::clearBufferiv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferuiv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferfv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferfi): (WebKit::RemoteGraphicsContextGLProxy::createQuery): (WebKit::RemoteGraphicsContextGLProxy::deleteQuery): (WebKit::RemoteGraphicsContextGLProxy::isQuery): (WebKit::RemoteGraphicsContextGLProxy::beginQuery): (WebKit::RemoteGraphicsContextGLProxy::endQuery): (WebKit::RemoteGraphicsContextGLProxy::getQuery): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectui): (WebKit::RemoteGraphicsContextGLProxy::createSampler): (WebKit::RemoteGraphicsContextGLProxy::deleteSampler): (WebKit::RemoteGraphicsContextGLProxy::isSampler): (WebKit::RemoteGraphicsContextGLProxy::bindSampler): (WebKit::RemoteGraphicsContextGLProxy::samplerParameteri): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterf): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterf): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameteri): (WebKit::RemoteGraphicsContextGLProxy::fenceSync): (WebKit::RemoteGraphicsContextGLProxy::isSync): (WebKit::RemoteGraphicsContextGLProxy::deleteSync): (WebKit::RemoteGraphicsContextGLProxy::clientWaitSync): (WebKit::RemoteGraphicsContextGLProxy::waitSync): (WebKit::RemoteGraphicsContextGLProxy::getSynci): (WebKit::RemoteGraphicsContextGLProxy::createTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::deleteTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::isTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::bindTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::beginTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::endTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::transformFeedbackVaryings): (WebKit::RemoteGraphicsContextGLProxy::getTransformFeedbackVarying): (WebKit::RemoteGraphicsContextGLProxy::pauseTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::resumeTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::bindBufferBase): (WebKit::RemoteGraphicsContextGLProxy::bindBufferRange): (WebKit::RemoteGraphicsContextGLProxy::getUniformIndices): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniforms): (WebKit::RemoteGraphicsContextGLProxy::getUniformBlockIndex): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniformBlockName): (WebKit::RemoteGraphicsContextGLProxy::uniformBlockBinding): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniformBlockiv): (WebKit::RemoteGraphicsContextGLProxy::getGraphicsResetStatusARB): (WebKit::RemoteGraphicsContextGLProxy::blitFramebufferANGLE): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorageMultisampleANGLE): (WebKit::RemoteGraphicsContextGLProxy::createVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::deleteVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::isVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::bindVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::getTranslatedShaderSourceANGLE): (WebKit::RemoteGraphicsContextGLProxy::insertEventMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::pushGroupMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::popGroupMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::drawBuffersEXT): (WebKit::RemoteGraphicsContextGLProxy::drawArraysInstancedANGLE): (WebKit::RemoteGraphicsContextGLProxy::drawElementsInstancedANGLE): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribDivisorANGLE): (WebKit::RemoteGraphicsContextGLProxy::getInternalformativ): (WebKit::RemoteGraphicsContextGLProxy::readPixelsRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBufferPointervRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getInternalformativRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getUniformuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBufferParameteri64vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getFramebufferParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getProgramInterfaceivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBooleani_vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getMultisamplefvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexLevelParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexLevelParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getPointervRobustANGLERobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjecti64vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectui64vRobustANGLE): * WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp: (WebKit::MediaPlayerPrivateRemote::copyVideoTextureToPlatformTexture): * WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp: (WebKit::RemoteAudioDestinationProxy::connectToGPUProcess): * WebProcess/GPU/media/RemoteAudioSession.cpp: * WebProcess/GPU/media/RemoteAudioSourceProviderManager.cpp: * WebProcess/GPU/media/RemoteAudioSourceProviderManager.h: * WebProcess/GPU/media/RemoteLegacyCDMSession.cpp: * WebProcess/GPU/media/SourceBufferPrivateRemote.h: * WebProcess/GPU/media/TextTrackPrivateRemote.h: * WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp: * WebProcess/GPU/webrtc/LibWebRTCCodecs.h: * WebProcess/InjectedBundle/InjectedBundle.h: * WebProcess/Network/NetworkProcessConnection.h: * WebProcess/Network/WebResourceLoader.cpp: * WebProcess/Network/WebResourceLoader.h: * WebProcess/Network/WebSocketChannel.cpp: * WebProcess/Network/WebSocketChannel.h: * WebProcess/Network/WebSocketStream.cpp: * WebProcess/Network/WebSocketStream.h: * WebProcess/Network/webrtc/LibWebRTCSocket.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::createGraphicsContextGL const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::m_limitsNavigationsToAppBoundDomains): (WebKit::WebPage::updatePreferences): * WebProcess/WebPage/WebPage.h: (WebKit::WebPage::sendSyncWithDelayedReply): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::handleEditingKeyboardEvent): * WebProcess/WebProcess.cpp: (WebKit::WebProcess::setUseGPUProcessForWebGL): (WebKit::WebProcess::shouldUseRemoteRenderingForWebGL const): * WebProcess/WebProcess.h: Tools: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC and is incomplete. Add the code generator to generate the implementation. Currently the generator generates a WebKit IPC implementation. The input definition to the generator is the proxy implementation header files. The output of the generator is - WebKit IPC message definition file - Message sender code - Message receiver and payload invocation code The generator converts GraphicsContextGL GCGL -prefixed types to sized IPC types. The generator is invoked during development time and the results are stored in the repository. * Scripts/generate-gpup-webgl: Added. LayoutTests: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Adds test expectations for the missing functionality. Does not yet enable the tests that actually pass but which were skipped before the implementation. * gpu-process/TestExpectations: Canonical link: https://commits.webkit.org/232258@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-09 18:32:29 +00:00
platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.cpp
[Cocoa] Simplify NSArray, NSDictionary, and NSNumber idioms throughout WebKit https://bugs.webkit.org/show_bug.cgi?id=210138 Reviewed by Alex Christensen. Source/JavaScriptCore: * API/JSValue.mm: (valueToObjectWithoutCopy): Use @(). (valueToNumber): Ditto. * API/tests/testapi.mm: (-[TestObject callback:]): Use @[], @(), and @{}. (-[TextXYZ click]): Ditto. (testObjectiveCAPIMain): Ditto. Source/WebCore: - Added createNSArray and makeVector. - Use createNSArray and makeVector<String> in many places where we convert between NSArray and Vector, replacing multiple existing functions that were doing the same job before; later can use them even more. - Use @[] many places where we create an autoreleased NSArray. - Use @{} many places where we create an autoreleased NSDictionary. - Use @() many places where we create an autoreleased NSNumber. * PlatformMac.cmake: Moved Float/IntRectMac.mm to Float/IntRectCocoa.mm. * SourcesCocoa.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * accessibility/ios/WebAccessibilityObjectWrapperIOS.mm: (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper textMarkerRangeForSelection]): Use @[]. (-[WebAccessibilityObjectWrapper _stringFromStartMarker:toEndMarker:attributed:]): Use @[]. (-[WebAccessibilityObjectWrapper elementsForRange:]): Use @[]. (-[WebAccessibilityObjectWrapper textMarkersForRange:]): Use @[]. * accessibility/mac/AXObjectCacheMac.mm: (WebCore::textReplacementChangeDictionary): Use @(). * accessibility/mac/WebAccessibilityObjectWrapperBase.mm: (makeVectorElement): Aded overload for AccessibilitySearchKey. (accessibilitySearchCriteriaForSearchPredicateParameterizedAttribute): Use makeVector<AccessibilitySearchKey>. * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (accessibilityTextCriteriaForParameterizedAttribute): Use makeVector<String>. (accessibilitySearchTextCriteriaForParameterizedAttribute): Use makeVector<String>. (AXAttributeStringSetStyle): Use @(). (AXAttributeStringSetBlockquoteLevel): Use @(). (AXAttributeStringSetHeadingLevel): Use @(). (-[WebAccessibilityObjectWrapper accessibilityActionNames]): Use @[]. (convertStringsToNSArray): Deleted. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:]): Use @(), @[], and createNSArray. (-[WebAccessibilityObjectWrapper accessibilityAttributeValue:forParameter:]): Ditto. * bridge/objc/WebScriptObject.mm: (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]): Use @(). * editing/cocoa/AlternativeTextUIController.mm: (WebCore::AlternativeTextUIController::alternativesForContext): Use makeVector<String>. * editing/cocoa/HTMLConverter.mm: (defaultParagraphStyle): Use @[]. (HTMLConverter::computedAttributesForElement): Use @(). (HTMLConverter::_processMetaElementWithName): Use @(). (HTMLConverter::_addTableForElement): Use @(). * page/ios/FrameIOS.mm: (WebCore::Frame::interpretationsForCurrentRoot const): Use @[]. * platform/cocoa/MIMETypeRegistryCocoa.mm: (WebCore::MIMETypeRegistry::getExtensionsForMIMEType): Use makeVector<String>. * platform/graphics/FloatRect.h: Added makeNSArrayElement overload so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/IntRect.h: Similarly for IntRect. * platform/graphics/avfoundation/MediaSelectionGroupAVFObjC.mm: (WebCore::MediaSelectionGroupAVFObjC::updateOptions): Use createNSArray. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::mediaDescriptionForKind): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVAssetForURL): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::createAVPlayerItem): Use @(). (WebCore::MediaPlayerPrivateAVFoundationObjC::checkPlayability): Use @[]. (WebCore::MediaPlayerPrivateAVFoundationObjC::createVideoOutput): Use @{} and @(). * platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.mm: (WebCore::PlatformCAAnimationCocoa::valueFunction const): (WebCore::PlatformCAAnimationCocoa::setFromValue): (WebCore::PlatformCAAnimationCocoa::copyFromValueFrom): (WebCore::PlatformCAAnimationCocoa::setToValue): (WebCore::PlatformCAAnimationCocoa::copyToValueFrom): (WebCore::PlatformCAAnimationCocoa::setValues): (WebCore::PlatformCAAnimationCocoa::copyValuesFrom): (WebCore::PlatformCAAnimationCocoa::setKeyTimes): (WebCore::PlatformCAAnimationCocoa::copyKeyTimesFrom): (WebCore::PlatformCAAnimationCocoa::setTimingFunctions): (WebCore::PlatformCAAnimationCocoa::copyTimingFunctionsFrom): Use @(), @[], modern for loops, auto, and allocate with capacity. * platform/graphics/ca/cocoa/PlatformCAFiltersCocoa.mm: (WebCore::PlatformCAFilters::filterValueForOperation): Use @(). * platform/graphics/cocoa/FloatRectCocoa.mm: Moved from mac/FloatRectMac.mm. (WebCore::makeNSArrayElement): Added so we can convert Vector<FloatRect> into NSArray<NSValue>. * platform/graphics/cocoa/IntRectCocoa.mm: Moved from mac/IntRectMac.mm. (WebCore::makeNSArrayElement): Similarly for IntRect. (WebCore::enclosingIntRect): Use clampTo to be consistent with what enclosingIntRect(FloatRect) does (while fixing check-webkit-style complaint). * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer display]): Add WebCore namespace prefix; needed depending on how sources get unified (and was affecting my local build when it temporarily had an additional source file). (-[WebGLLayer allocateIOSurfaceBackingStoreWithSize:usingAlpha:]): Ditto. (-[WebGLLayer bindFramebufferToNextAvailableSurface]): Ditto. * platform/graphics/ios/FontCacheIOS.mm: (WebCore::systemFontModificationAttributes): Use @(). * platform/ios/PlatformPasteboardIOS.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::createItemProviderRegistrationList): Use createNSArray. (WebCore::PlatformPasteboard::updateSupportedTypeIdentifiers): Use createNSArray. * platform/ios/WebItemProviderPasteboard.mm: (-[WebItemProviderPasteboard setItemProviders:]): Use @[]. * platform/ios/wak/WAKView.mm: (-[WAKView subviews]): Dittto. * platform/mac/PlatformPasteboardMac.mm: (WebCore::PlatformPasteboard::getTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::getPathnamesForType const): Use makeVector<String>. (WebCore::PlatformPasteboard::addTypes): Use makeVector<String>. (WebCore::PlatformPasteboard::setTypes): Use makeVector<String>. * platform/mac/StringUtilities.h: Removed webCoreStringVectorFromNSStringArray, replaced by makeVector<String> * platform/mac/StringUtilities.mm: (WebCore::webCoreStringVectorFromNSStringArray): Deleted. * platform/mac/WebCoreNSURLExtras.mm: Removed unneeded include. * platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.mm: (WebCore::MediaRecorderPrivateWriter::setVideoInput): Use @(). * platform/mediastream/mac/AVVideoCaptureSource.mm: (WebCore::AVVideoCaptureSource::setupCaptureSession): Use @(). * platform/network/cocoa/CookieCocoa.mm: (WebCore::Cookie::operator NSHTTPCookie * _Nullable const): Use @(). * platform/network/cocoa/NetworkStorageSessionCocoa.mm: (WebCore::NetworkStorageSession::setCookiesFromDOM const): Use @{}. * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::doUpdatePlatformRequest): Use @YES/@NO. Source/WebKit: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: Remove uneeded include. * Platform/mac/StringUtilities.mm: Ditto. * PluginProcess/mac/PluginProcessMac.mm: (WebKit::replacedNSConcreteTask_launch): Use makeVector<String>. (WebKit::replacedNSWorkspace_launchApplicationAtURL_options_configuration_error): Ditto. * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toSupportedNetworks): Deleted. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): Use createNSArray. * Shared/mac/PasteboardTypes.mm: (WebKit::PasteboardTypes::forEditing): Use @[]. (WebKit::PasteboardTypes::forURL): Ditto. (WebKit::PasteboardTypes::forImages): Ditto. (WebKit::PasteboardTypes::forImagesWithArchive): Ditto. (WebKit::PasteboardTypes::forSelection): Ditto. * UIProcess/API/Cocoa/WKContentRuleListStore.mm: (-[WKContentRuleListStore getAvailableContentRuleListIdentifiers:]): Use createNSArray. * UIProcess/API/Cocoa/WKProcessPool.mm: (-[WKProcessPool _getActivePagesOriginsInWebProcessForTesting:completionHandler:]): Ditto. * UIProcess/API/Cocoa/WKUserScript.mm: (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:userContentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:]): (-[WKUserScript _initWithSource:injectionTime:forMainFrameOnly:legacyWhitelist:legacyBlacklist:associatedURL:contentWorld:deferRunningUntilNotification:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebView.mm: (-[WKWebView _setupPageConfiguration:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewConfiguration.mm: (-[WKWebViewConfiguration _corsDisablingPatterns]): Use createNSArray. (-[WKWebViewConfiguration _setCORSDisablingPatterns:]): Use makeVector<String>. * UIProcess/API/Cocoa/WKWebViewTesting.mm: (-[WKWebView _contentsOfUserInterfaceItem:]): Use @(). * UIProcess/API/Cocoa/_WKContentRuleListAction.mm: (-[_WKContentRuleListAction notifications]): Use createNSArray. * UIProcess/API/Cocoa/_WKCustomHeaderFields.mm: (-[_WKCustomHeaderFields thirdPartyDomains]): Use createNSArray. (-[_WKCustomHeaderFields setThirdPartyDomains:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKProcessPoolConfiguration.mm: (-[_WKProcessPoolConfiguration cachePartitionedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setCachePartitionedURLSchemes:]): Use makeVector<String>. (-[_WKProcessPoolConfiguration alwaysRevalidatedURLSchemes]): Use createNSArray. (-[_WKProcessPoolConfiguration setAlwaysRevalidatedURLSchemes:]): Use makeVector<String>. * UIProcess/API/Cocoa/_WKUserContentWorldInternal.h: (API::toStringVector): Deleted. * UIProcess/API/Cocoa/_WKUserStyleSheet.mm: (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:userContentWorld:]): (-[_WKUserStyleSheet initWithSource:forMainFrameOnly:legacyWhitelist:legacyBlacklist:baseURL:userContentWorld:]): Use makeVector<String>. * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::WebViewImpl::accessibilityAttributeValue): Use @[]. (WebKit::WebViewImpl::performDragOperation): Use makeVector<String>. (WebKit::WebViewImpl::namesOfPromisedFilesDroppedAtDestination): Use @[]. (WebKit::WebViewImpl::collectKeyboardLayoutCommandsForEvent): Use @[]. * UIProcess/Plugins/mac/PluginProcessProxyMac.mm: (WebKit::PluginProcessProxy::launchProcess): Use createNSArray. (WebKit::isJavaUpdaterURL): Use @[]. (WebKit::PluginProcessProxy::launchApplicationAtURL): Use @{} and createNSArray. (WebKit::isSilverlightPreferencesURL): Use @[]. * UIProcess/WebAuthentication/Cocoa/HidService.mm: (WebKit::HidService::HidService): Use @() and fixed an over-release mistake. This code was doing adoptNS on the result of +[NSNumberWithInt:], which is incorrect. * UIProcess/WebAuthentication/Mock/MockLocalConnection.mm: (WebKit::MockLocalConnection::getAttestation const): Use @[]. * UIProcess/ios/WKContentViewInteraction.mm: (-[WKContentView textStylingAtPosition:inDirection:]): Use @(). (-[WKContentView requestRectsToEvadeForSelectionCommandsWithCompletionHandler:]): Use createNSArray. (-[WKContentView _itemsForBeginningOrAddingToSessionWithRegistrationLists:stagedDragSource:]): Fixed a wasteful call to autorelease where we are adding an item to a dictionary. Calling get is more efficient and still correct. * UIProcess/ios/forms/WKFileUploadPanel.mm: (-[WKFileUploadPanel imagePickerController:didFinishPickingMediaWithInfo:]): Use @[]. * UIProcess/ios/forms/WKFormColorPicker.mm: (-[WKColorMatrixView initWithFrame:colorMatrix:]): Removed uneeded RetainPtr local variable. * UIProcess/mac/CorrectionPanel.mm: (WebKit::CorrectionPanel::show): Use createNSArray. * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::updateSpellingUIWithGrammarString): Use createNSArray. (WebKit::TextChecker::getGuessesForWord): Use makeVector<String>. * UIProcess/mac/WKPrintingView.mm: (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]): Use @(). * UIProcess/mac/WKTextFinderClient.mm: (arrayFromRects): Deleted. (-[WKTextFinderClient didFindStringMatchesWithRects:didWrapAround:]): Use createNSArray. * UIProcess/mac/WebDataListSuggestionsDropdownMac.mm: (-[WKDataListSuggestionsController notifyAccessibilityClients:]): Use @{} and fix a bug where this was creating a backwards dictionary. So this never could have been working before, making me wonder how we test it. * UIProcess/mac/WebPageProxyMac.mm: (WebKit::WebPageProxy::searchTheWeb): Use @[]. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.h: Removed toNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMInternals.mm: (WebKit::toNSArray): Deleted. * WebProcess/InjectedBundle/API/mac/WKDOMNode.mm: (-[WKDOMNode textRects]): Use createNSArray. * WebProcess/InjectedBundle/API/mac/WKDOMRange.mm: (-[WKDOMRange textRects]): Ditto. * WebProcess/InjectedBundle/mac/InjectedBundleMac.mm: (WebKit::InjectedBundle::setBundleParameter): Use @{}. * WebProcess/Plugins/Netscape/mac/PluginProxyMac.mm: (WebKit::makeRenderLayer): Use @[]. * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::writeItemsToPasteboard): Use makeVector<String>. * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::applicationDidEnterBackground): Use @(). * WebProcess/WebPage/mac/TiledCoreAnimationDrawingArea.mm: (WebKit::TiledCoreAnimationDrawingArea::suspendPainting): Use @{}. (WebKit::TiledCoreAnimationDrawingArea::resumePainting): Use @{}. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectBase.mm: Removed an unneeded include. * WebProcess/WebPage/mac/WKAccessibilityWebPageObjectMac.mm: Ditto. (-[WKAccessibilityWebPageObject accessibilityActionNames]): Use @[]. (-[WKAccessibilityWebPageObject accessibilityChildren]): Use @[]. * WebProcess/cocoa/WebProcessCocoa.mm: (WebKit::WebProcess::getActivePagesOriginsForTesting): Use makeVector<String>. Source/WebKitLegacy/ios: * WebCoreSupport/WebChromeClientIOS.mm: (WebChromeClientIOS::runOpenPanel): Use createNSArray. * WebCoreSupport/WebVisiblePosition.mm: (-[WebVisiblePosition enclosingRangeWithDictationPhraseAlternatives:]): Use createNSArray. * WebCoreSupport/WebVisiblePositionInternal.h: Added #if so that this correctly doesn't compile anything on Mac. * WebView/WebPDFViewIOS.mm: (+[WebPDFView supportedMIMETypes]): Use @[]. Source/WebKitLegacy/mac: * DOM/DOM.mm: (kit): Deleted overload that takes Vector<IntRect>. (-[DOMNode textRects]): Use createNSArray. (-[DOMRange textRects]): Ditto. * DOM/ExceptionHandlers.mm: (raiseDOMErrorException): Use @(). * History/WebBackForwardList.mm: (-[WebBackForwardList dictionaryRepresentation]): Use @{}. * History/WebHistory.mm: (+[WebHistoryPrivate initialize]): Use @{}. (-[WebHistory _sendNotification:entries:]): Use @{}. * History/WebHistoryItem.mm: (-[WebHistoryItem initFromDictionaryRepresentation:]): Use makeVector<String>. (-[WebHistoryItem dictionaryRepresentation:]): Use createNSArray and @(). * History/WebURLsWithTitles.m: (+[WebURLsWithTitles arrayWithIFURLsWithTitlesPboardType]): Use @[]. (+[WebURLsWithTitles writeURLs:andTitles:toPasteboard:]): Use @[]. * Misc/WebCache.mm: (+[WebCache statistics]): Use @[], @{}, and @(). * Misc/WebCoreStatistics.mm: (+[WebCoreStatistics memoryStatistics]): Ditto. * Misc/WebKitErrors.m: (-[NSError _webkit_initWithDomain:code:URL:]): Use @(). (+[NSError _registerWebKitErrors]): Use @(). (-[NSError _initWithPluginErrorCode:contentURL:pluginPageURL:pluginName:MIMEType:]): Use @(). * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): Use @{}. (-[NSString _web_widthWithFont:]): Use @{}. * Misc/WebNSFileManagerExtras.mm: Removed unneeded include. * Misc/WebNSPasteboardExtras.mm: (+[NSPasteboard _web_dragTypesForURL]): Use @[]. (-[NSPasteboard _web_writeURL:andTitle:types:]): Use @[]. (+[NSPasteboard _web_setFindPasteboardString:withOwner:]): Use @[]. * Misc/WebNSURLExtras.mm: Removed unneeded include. * Plugins/Hosted/NetscapePluginHostManager.mm: (WebKit::NetscapePluginHostManager::spawnPluginHost): Use @{}. * Plugins/Hosted/NetscapePluginHostProxy.mm: (WKPCIdentifierInfo): Use @(). * Plugins/Hosted/NetscapePluginInstanceProxy.mm: (WebKit::NetscapePluginInstanceProxy::addValueToArray): Use @(). * Plugins/Hosted/WebHostedNetscapePluginView.mm: Removed unneeded include. * Plugins/WebBasePluginPackage.mm: Ditto. * Plugins/WebPluginContainerCheck.mm: (-[WebPluginContainerCheck _actionInformationWithURL:]): Use @{}. * Plugins/WebPluginDatabase.mm: (+[WebPluginDatabase _defaultPlugInPaths]): Use @[]. * Storage/WebDatabaseManager.mm: (-[WebDatabaseManager databasesWithOrigin:]): Use createNSArray. * WebCoreSupport/CorrectionPanel.mm: (CorrectionPanel::show): Use createNSArray. * WebCoreSupport/WebChromeClient.mm: (WebChromeClient::addMessageToConsole): Use @(). * WebCoreSupport/WebEditorClient.mm: (attributesForAttributedStringConversion): Use @(). (WebEditorClient::getGuessesForWord): Use makeVector<String>. * WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::actionDictionary const): Use @(). (kit): Deleted overload that takes Vector<String>. (pluginView): Use @{}. (WebFrameLoaderClient::createPlugin): Use createNSArray, @{}, and @(). (WebFrameLoaderClient::createJavaAppletWidget): Use createNSArray. * WebCoreSupport/WebOpenPanelResultListener.mm: (-[WebOpenPanelResultListener chooseFilenames:]): Use makeVector<String>. (-[WebOpenPanelResultListener chooseFilename:displayString:iconImage:]): Use @[]. (-[WebOpenPanelResultListener chooseFilenames:displayString:iconImage:]): Use makeVector<String>. * WebCoreSupport/WebSelectionServiceController.mm: (WebSelectionServiceController::handleSelectionServiceClick): Comment out an unused argument. * WebView/WebFrame.mm: (-[WebFrame _rectsForRange:]): Use createNSArrray. (-[WebFrame _computePageRectsWithPrintScaleFactor:pageSize:]): Use createNSArray and @[]. (-[WebFrame childFrames]): Use @[]. * WebView/WebHTMLView.mm: (+[WebHTMLView _selectionPasteboardTypes]): Use @[]. (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use @[]. (-[WebHTMLView knowsPageRange:]): Use @[]. (-[WebHTMLView accessibilityAttributeValue:]): Use @[]. (-[WebHTMLView copyFont:]): Use @[]. (-[WebHTMLView _interpretKeyEvent:savingCommands:]): Use @[]. (-[WebHTMLView selectionTextRects]): Use createNSArray. (-[WebHTMLView rectsForTextMatches]): Use createNSArray and @[]. * WebView/WebPDFRepresentation.mm: Removed unneeded include. (+[WebPDFRepresentation postScriptMIMETypes]): Use @[]. (+[WebPDFRepresentation supportedMIMETypes]): Use @[]. * WebView/WebPDFView.mm: (-[WebPDFView elementAtPoint:]): Use @{} and @(). (-[WebPDFView viewState]): Use @(). (-[WebPDFView selectionTextRects]): Use @[]. (-[WebPDFView pasteboardTypesForSelection]): Use @[]. (-[WebPDFView _menuItemsFromPDFKitForEvent:]): Use @(). (-[WebPDFView _openWithFinder:]): Use @{} and @(). * WebView/WebPreferences.mm: (+[WebPreferences initialize]): Use @(). (-[WebPreferences _setUnsignedIntValue:forKey:]): Use @(). (+[WebPreferences _setInitialDefaultTextEncodingToSystemEncoding]): Use @(). (-[WebPreferences setStorageBlockingPolicy:]): Use @{} and @(). * WebView/WebScriptDebugger.mm: (WebScriptDebugger::sourceParsed): Use @(). * WebView/WebTextCompletionController.mm: (-[WebTextCompletionController _placePopupWindow:]): Use @{}. * WebView/WebView.mm: (-[WebView _preferencesChanged:]): Use makeVector<String>. (-[WebView _contentsOfUserInterfaceItem:]): Use @(). (toStringVector): Deleted. (+[WebView _addUserScriptToGroup:world:source:url:whitelist:blacklist:injectionTime:injectedFrames:]): Use makeVector<String>. (+[WebView _addUserStyleSheetToGroup:world:source:url:whitelist:blacklist:injectedFrames:]): Use makeVector<String>. (-[WebView _elementAtWindowPoint:]): Use @{}. (-[WebView pasteboardTypesForSelection]): Use @[]. (-[WebView pasteboardTypesForElement:]): Use @[]. (-[WebView rectsForTextMatches]): Use @[]. (-[WebView _searchWithGoogleFromMenu:]): Use @[]. (-[WebView _setFontWhitelist:]): Use makeVector<String>. Source/WTF: * WTF.xcodeproj/project.pbxproj: Added VectorCocoa.h. * wtf/PlatformMac.cmake: Ditto. * wtf/cocoa/NSURLExtras.mm: Removed unneeded include. * wtf/cocoa/URLCocoa.mm: Ditto. * wtf/cocoa/VectorCocoa.h: Added. Contains createNSArray and makeVector function templates for converting NSArray to and from Vector. * wtf/text/WTFString.h: Added makeNSArrayElement and makeVectorElement functions, making createNSArray and makeVector compatible with String. * wtf/text/cocoa/StringCocoa.mm: (WTF::makeNSArrayElement): Added. (WTF::makeVectorElement): Added. Tools: * DumpRenderTree/AccessibilityController.h: Remove use of NotificationHandler type; it's just "id". * DumpRenderTree/AccessibilityUIElement.cpp: (convertElementsToObjectArray): Moved this up in the file, removed unneeded use of JSValueToObject and unused exception argument. (elementsForRangeCallback): Use convertElementsToObjectArray. (columnHeadersCallback): Updated for removed exception argument. (rowHeadersCallback): Ditto. (uiElementArrayAttributeValueCallback): Ditto. * DumpRenderTree/AccessibilityUIElement.h: Changed to use RetainPtr. * DumpRenderTree/TestNetscapePlugIn/PluginObjectMac.mm: (createCoreAnimationLayer): Use @{}. * DumpRenderTree/ios/AccessibilityUIElementIOS.mm: (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (AccessibilityUIElement::~AccessibilityUIElement): Deleted. (AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): Use @[]. * DumpRenderTree/ios/TextInputControllerIOS.m: (-[TextInputController markedRange]): Use @[]. * DumpRenderTree/mac/AccessibilityCommonMac.mm: (searchPredicateParameterizedAttributeForSearchCriteria): Tweak a little. * DumpRenderTree/mac/AccessibilityNotificationHandler.mm: (-[NSString createJSStringRef]): Deleted. Duplicate of a method already implemented in anothe file. * DumpRenderTree/mac/AccessibilityUIElementMac.mm: (makeVectorElement): Added overloads to make both makeVector<AccessibilityTextMarkerRange> and makeVector<AccessibilityUIElement> work. (AccessibilityUIElement::AccessibilityUIElement): Removed some unneeded code now that we use RetainPtr. (convertVectorToObjectArray): Removed unneeded use of JSValueToObject and unneeded exception argument. (convertNSArrayToVector): Deleted. (AccessibilityUIElement::getLinkedUIElements): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::getDocumentLinks): Ditto. (AccessibilityUIElement::getChildren): Ditto. (AccessibilityUIElement::getChildrenWithRange): Ditto. (AccessibilityUIElement::rowHeaders const): Ditto. (AccessibilityUIElement::columnHeaders const): Ditto. (AccessibilityUIElement::uiElementArrayAttributeValue const): Ditto. (AccessibilityUIElement::role): Updated since m_element is a RetainPtr. (AccessibilityUIElement::subrole): Ditto. (AccessibilityUIElement::roleDescription): Ditto. (AccessibilityUIElement::computedRoleString): Ditto. (AccessibilityUIElement::title): Ditto. (AccessibilityUIElement::description): Ditto. (AccessibilityUIElement::orientation const): Ditto. (AccessibilityUIElement::stringValue): Ditto. (AccessibilityUIElement::language): Ditto. (AccessibilityUIElement::helpText const): Ditto. (AccessibilityUIElement::lineForIndex): Use @(). (AccessibilityUIElement::rangeForLine): Use @(). (AccessibilityUIElement::searchTextWithCriteria): Use makeVector<AccessibilityTextMarkerRange>. (AccessibilityUIElement::attributesOfColumnHeaders): Use makeVector<AccessibilityUIElement>. (AccessibilityUIElement::attributesOfRowHeaders): Ditto. (AccessibilityUIElement::attributesOfColumns): Ditto. (AccessibilityUIElement::attributesOfRows): Ditto. (AccessibilityUIElement::attributesOfVisibleCells): Ditto. (AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (AccessibilityUIElement::setSelectedChild const): Use @[]. (AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (AccessibilityUIElement::attributedStringForTextMarkerRangeWithOptions): Use @{}, @YES, and @NO. (AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * DumpRenderTree/mac/DumpRenderTree.mm: (addTestPluginsToPluginSearchPath): Use @[]. (resetWebViewToConsistentStateBeforeTesting): Use @[]. * DumpRenderTree/mac/DumpRenderTreePasteboard.mm: (-[DumpRenderTreePasteboard declareType:owner:]): Use @[]. * DumpRenderTree/mac/EventSendingController.mm: (-[EventSendingController beginDragWithFiles:]): Use @(). (-[EventSendingController sentTouchEventOfType:]): Use @(). * DumpRenderTree/mac/MockWebNotificationProvider.mm: (-[MockWebNotificationProvider cancelNotification:]): Use @[]. * DumpRenderTree/mac/ObjCController.m: (-[ObjCController objectOfClass:]): Use @(). (-[ObjCController arrayOfString]): Use @[]. (-[ObjCController testWrapperRoundTripping:]): Use @(). (-[ObjCController testArray]): Use @[]. * DumpRenderTree/mac/TestRunnerMac.mm: (originsArrayToJS): Removed unneeded use of JSValueToObject. * DumpRenderTree/mac/TextInputControllerMac.m: (-[TextInputController markedRange]): Use @[] and @(). (-[TextInputController selectedRange]): Use @[] and @(). (-[TextInputController firstRectForCharactersFrom:length:]): Use @[] and @(). (-[TextInputController dictatedStringWithPrimaryString:alternative:alternativeOffset:alternativeLength:]): Use @[]. (-[TextInputController interpretKeyEvents:withSender:]): Use @[]. * DumpRenderTree/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use []. * DumpRenderTree/win/AccessibilityUIElementWin.cpp: Deleted an unneeded copy constructor and destructor. * TestRunnerShared/cocoa/LayoutTestSpellChecker.mm: (-[LayoutTestSpellChecker setResultsFromJSObject:inContext:]): Use @{}. * TestWebKitAPI/Tests/WebKitCocoa/ContentRuleListNotification.mm: (toVector): Deleted. (-[ContentRuleListNotificationDelegate _webView:contentRuleListWithIdentifier:performedAction:forURL:]): Use makeVector<String>. * TestWebKitAPI/Tests/WebKitCocoa/InAppBrowserPrivacy.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteImage.mm: (writeImageDataToPasteboard): Use @[] and @{}. (writeBundleFileToPasteboard): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/PasteWebArchive.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/UserContentController.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKAttachmentTests.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKHTTPCookieStore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WKWebsiteDatastore.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/WebKitCocoa/WebsiteDataStoreCustomPaths.mm: (runWebsiteDataStoreCustomPaths): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteURL.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewCanPasteZeroPng.mm: (TestWebKitAPI::TEST): Use @[]. * TestWebKitAPI/Tests/mac/WebViewDidCreateJavaScriptContext.mm: (-[DidCreateJavaScriptContextFrameLoadDelegate webView:didCreateJavaScriptContext:forFrame:]): Use @[]. * TestWebKitAPI/ios/mainIOS.mm: (main): Use @{}. * TestWebKitAPI/mac/InjectedBundleControllerMac.mm: (TestWebKitAPI::InjectedBundleController::platformInitialize): Use @{} and @(). * TestWebKitAPI/mac/mainMac.mm: (main): Use {}. * WebKitTestRunner/InjectedBundle/AccessibilityController.h: Use id instead of NotificationHandler. * WebKitTestRunner/InjectedBundle/AccessibilityTextMarkerRange.h: Use id for PlatformTextMarkerRange. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityTextMarkerRange>> work. * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: Use RetainPtr. Added an overload of makeVectorElement to make makeVector<RefPtr<AccessibilityUIElement>> work. * WebKitTestRunner/InjectedBundle/cocoa/ActivateFontsCocoa.mm: Removed unneeded include. * WebKitTestRunner/InjectedBundle/ios/AccessibilityUIElementIOS.mm: (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertElementsToObjectArray): Removed unneeded use of JSValueToObject. (WTR::AccessibilityUIElement::elementsForRange): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::lineTextMarkerRangeForTextMarker): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeMatchesTextNearMarkers): * WebKitTestRunner/InjectedBundle/ios/InjectedBundleIOS.mm: (WTR::InjectedBundle::platformInitialize): Use @{}. * WebKitTestRunner/InjectedBundle/mac/AccessibilityUIElementMac.mm: (WTR::AccessibilityUIElement::AccessibilityUIElement): Simplified since we use RetainPtr. (WTR::AccessibilityUIElement::~AccessibilityUIElement): Ditto. (WTR::convertNSArrayToVector): Deleted. (WTR::AccessibilityUIElement::getLinkedUIElements): Use makeVector<RefPtr<AccessibilityUIElement>>. (WTR::AccessibilityUIElement::getDocumentLinks): Ditto. (WTR::AccessibilityUIElement::getUIElementsWithAttribute const): Ditto. (WTR::AccessibilityUIElement::getChildren): Ditto. (WTR::AccessibilityUIElement::getChildrenWithRange): Ditto. (WTR::AccessibilityUIElement::rowHeaders const): Ditto. (WTR::AccessibilityUIElement::columnHeaders const): Ditto. (WTR::AccessibilityUIElement::allAttributes): Updated since m_element is a RetainPtr. (WTR::AccessibilityUIElement::stringDescriptionOfAttributeValue): Ditto. (WTR::AccessibilityUIElement::role): Ditto. (WTR::AccessibilityUIElement::subrole): Ditto. (WTR::AccessibilityUIElement::roleDescription): Ditto. (WTR::AccessibilityUIElement::computedRoleString): Ditto. (WTR::AccessibilityUIElement::title): Ditto. (WTR::AccessibilityUIElement::description): Ditto. (WTR::AccessibilityUIElement::orientation const): Ditto. (WTR::AccessibilityUIElement::stringValue): Ditto. (WTR::AccessibilityUIElement::language): Ditto. (WTR::AccessibilityUIElement::helpText const): Ditto. (WTR::AccessibilityUIElement::lineForIndex): Use @(). (WTR::AccessibilityUIElement::rangeForLine): Use @(). (WTR::AccessibilityUIElement::searchTextWithCriteria): Use makeVector<RefPtr<AccessibilityTextMarkerRange>>. (WTR::AccessibilityUIElement::attributesOfColumnHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfRowHeaders): Ditto. (WTR::AccessibilityUIElement::attributesOfColumns): Ditto. (WTR::AccessibilityUIElement::attributesOfRows): Ditto. (WTR::AccessibilityUIElement::attributesOfVisibleCells): Ditto. (WTR::AccessibilityUIElement::cellForColumnAndRow): Use @[] and @(). (WTR::AccessibilityUIElement::setSelectedChild const): Use @[]. (WTR::AccessibilityUIElement::setSelectedChildAtIndex const): Use @[]. (WTR::AccessibilityUIElement::textMarkerRangeForMarkers): Use @[]. * WebKitTestRunner/TestInvocation.cpp: (WTR::TestInvocation::didReceiveAllStorageAccessEntries): Take Vector&&. (WTR::TestInvocation::didReceiveWebViewCategory): Take String&&. * WebKitTestRunner/TestInvocation.h: Updated for the above. * WebKitTestRunner/cocoa/TestControllerCocoa.mm: (WTR::TestController::cocoaPlatformInitialize): Use @{}and @(). (WTR::TestController::getAllStorageAccessEntries): Use makeVector<String>. (WTR::TestController::loadedThirdPartyDomains): Use makeVector<String>. (WTR::TestController::getWebViewCategory): Update to pass String&&. (WTR::TestController::setAllowedMenuActions): Use createNSArray. * WebKitTestRunner/ios/HIDEventGenerator.mm: (-[HIDEventGenerator interpolatedEvents:]): Use @(). * WebKitTestRunner/mac/PlatformWebViewMac.mm: (WTR::PlatformWebView::changeWindowScaleIfNeeded): Use @{} and @(). * WebKitTestRunner/mac/TestControllerMac.mm: Removed unneeded include. * WebKitTestRunner/mac/UIScriptControllerMac.mm: (WTR::UIScriptControllerMac::copyText): Use @[]. * WebKitTestRunner/mac/WebKitTestRunnerPasteboard.mm: (-[WebKitTestRunnerPasteboard declareType:owner:]): Use @[]. Canonical link: https://commits.webkit.org/223199@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@259843 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-04-10 02:11:30 +00:00
platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm
Source/WebCore: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Implemented with a generator script implementing the IPC to pass the GraphicsContextGL member function calls from web process to the GPU process. The script is run during development time and the results are committed to the repo for ease of review. Extracts an interface GraphicsContextGLIOSurfaceSwapChain which is used to submit IOSurfaces from GraphicsContextGLOpenGL. For web process WebGL, these go to WebGLLayer. For GPU process WebGL, the IOSurfaces go to the prepareForDisplay caller, e.g. the RemoteGraphicsContextGL, which then return the IOSurfaces back to Web process side. RemoteGraphicsContextGLProxy will send them to WebGLLayer. No new tests, tested by existing webgl tests once the implementation works. * PlatformMac.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/canvas/WebGL2RenderingContext.cpp: (WebCore::WebGL2RenderingContext::getBufferSubData): (WebCore::WebGL2RenderingContext::vertexAttribI4uiv): (WebCore::WebGL2RenderingContext::getQueryParameter): (WebCore::WebGL2RenderingContext::bindSampler): (WebCore::WebGL2RenderingContext::getSamplerParameter): (WebCore::WebGL2RenderingContext::clientWaitSync): (WebCore::WebGL2RenderingContext::deleteTransformFeedback): (WebCore::WebGL2RenderingContext::beginTransformFeedback): (WebCore::WebGL2RenderingContext::endTransformFeedback): (WebCore::WebGL2RenderingContext::transformFeedbackVaryings): (WebCore::WebGL2RenderingContext::getActiveUniforms): (WebCore::WebGL2RenderingContext::readPixels): * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::create): (WebCore::WebGLRenderingContextBase::readPixels): * html/canvas/WebGLSync.cpp: (WebCore::WebGLSync::updateCache): * page/Chrome.cpp: (WebCore::Chrome::createGraphicsContextGL const): (WebCore::Chrome::windowScreenDidChange): * page/Chrome.h: * page/ChromeClient.h: (WebCore::ChromeClient::createGraphicsContextGL const): * platform/HostWindow.h: * platform/RuntimeApplicationChecks.h: (WebCore::isInGPUProcess): * platform/cocoa/RuntimeApplicationChecksCocoa.mm: (WebCore::isInGPUProcess): * platform/graphics/ExtensionsGL.h: * platform/graphics/GraphicsContextGL.cpp: (WebCore::GraphicsContextGL::create): * platform/graphics/GraphicsContextGL.h: * platform/graphics/GraphicsTypesGL.h: (GCGLSpan::GCGLSpan): (GCGLSpan<GCGLvoid>::GCGLSpan): * platform/graphics/RemoteGraphicsContextGLProxyBase.cpp: Added. (WebCore::RemoteGraphicsContextGLProxyBase::RemoteGraphicsContextGLProxyBase): (WebCore::RemoteGraphicsContextGLProxyBase::platformGraphicsContextGL const): (WebCore::RemoteGraphicsContextGLProxyBase::platformTexture const): (WebCore::RemoteGraphicsContextGLProxyBase::getExtensions): (WebCore::RemoteGraphicsContextGLProxyBase::setContextVisibility): (WebCore::RemoteGraphicsContextGLProxyBase::powerPreferenceUsedForCreation const): (WebCore::RemoteGraphicsContextGLProxyBase::isGLES2Compliant const): (WebCore::RemoteGraphicsContextGLProxyBase::markContextChanged): (WebCore::RemoteGraphicsContextGLProxyBase::markLayerComposited): (WebCore::RemoteGraphicsContextGLProxyBase::layerComposited const): (WebCore::RemoteGraphicsContextGLProxyBase::setBuffersToAutoClear): (WebCore::RemoteGraphicsContextGLProxyBase::getBuffersToAutoClear const): (WebCore::RemoteGraphicsContextGLProxyBase::paintCompositedResultsToCanvas): (WebCore::RemoteGraphicsContextGLProxyBase::enablePreserveDrawingBuffer): (WebCore::RemoteGraphicsContextGLProxyBase::supports): (WebCore::RemoteGraphicsContextGLProxyBase::ensureEnabled): (WebCore::RemoteGraphicsContextGLProxyBase::isEnabled): (WebCore::RemoteGraphicsContextGLProxyBase::initialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformInitialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformLayer const): * platform/graphics/RemoteGraphicsContextGLProxyBase.h: Added. * platform/graphics/angle/ExtensionsGLANGLE.cpp: (WebCore::ExtensionsGLANGLE::ExtensionsGLANGLE): (WebCore::ExtensionsGLANGLE::getGraphicsResetStatusARB): (WebCore::ExtensionsGLANGLE::getTranslatedShaderSourceANGLE): (WebCore::ExtensionsGLANGLE::blitFramebufferANGLE): (WebCore::ExtensionsGLANGLE::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLANGLE::drawArraysInstancedANGLE): (WebCore::ExtensionsGLANGLE::drawElementsInstancedANGLE): (WebCore::ExtensionsGLANGLE::vertexAttribDivisorANGLE): (WebCore::ExtensionsGLANGLE::getUniformuivRobustANGLE): (WebCore::ExtensionsGLANGLE::getTexLevelParameterivRobustANGLE): (WebCore::ExtensionsGLANGLE::getTexLevelParameterfvRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformfvRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformivRobustANGLE): (WebCore::ExtensionsGLANGLE::getnUniformuivRobustANGLE): * platform/graphics/angle/ExtensionsGLANGLE.h: * platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLOpenGL::readnPixels): (WebCore::GraphicsContextGLOpenGL::readnPixelsImpl): (WebCore::GraphicsContextGLOpenGL::getBufferSubData): (WebCore::GraphicsContextGLOpenGL::getActiveUniforms): (WebCore::GraphicsContextGLOpenGL::getQueryObjectui): (WebCore::GraphicsContextGLOpenGL::getSamplerParameterf): (WebCore::GraphicsContextGLOpenGL::getSamplerParameteri): (WebCore::GraphicsContextGLOpenGL::getSynci): * platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.cpp: Added. * platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.h: Copied from Source/WebCore/platform/graphics/cocoa/WebGLLayer.h. * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: (WebCore::InitializeEGLDisplay): (WebCore::GraphicsContextGLOpenGL::create): (WebCore::GraphicsContextGLOpenGL::createShared): (WebCore::GraphicsContextGLOpenGL::createForGPUProcess): (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::~GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::reshapeDisplayBufferBacking): (WebCore::GraphicsContextGLOpenGL::allocateAndBindDisplayBufferBacking): (WebCore::GraphicsContextGLOpenGL::allowOfflineRenderers const): (WebCore::GraphicsContextGLOpenGL::prepareForDisplay): * platform/graphics/cocoa/RemoteGraphicsContextGLProxyBaseCocoa.mm: Added. (WebCore::RemoteGraphicsContextGLProxyBase::platformInitialize): (WebCore::RemoteGraphicsContextGLProxyBase::platformLayer const): (WebCore::RemoteGraphicsContextGLProxyBase::asCV): (WebCore::RemoteGraphicsContextGLProxyBase::platformSwapChain): * platform/graphics/cocoa/WebGLLayer.h: * platform/graphics/cocoa/WebGLLayer.mm: (-[WebGLLayer initWithDevicePixelRatio:contentsOpaque:]): (-[WebGLLayer swapChain]): (-[WebGLLayer prepareForDisplay]): (-[WebGLLayer display]): (WebGLLayerSwapChain::present): * platform/graphics/coreimage/FilterEffectRendererCoreImage.mm: * platform/graphics/opengl/ExtensionsGLOpenGL.cpp: (WebCore::ExtensionsGLOpenGL::blitFramebufferANGLE): (WebCore::ExtensionsGLOpenGL::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLOpenGL::drawArraysInstancedANGLE): (WebCore::ExtensionsGLOpenGL::drawElementsInstancedANGLE): (WebCore::ExtensionsGLOpenGL::vertexAttribDivisorANGLE): * platform/graphics/opengl/ExtensionsGLOpenGL.h: * platform/graphics/opengl/ExtensionsGLOpenGLCommon.cpp: (WebCore::ExtensionsGLOpenGLCommon::readnPixelsRobustANGLE): * platform/graphics/opengl/ExtensionsGLOpenGLCommon.h: * platform/graphics/opengl/ExtensionsGLOpenGLES.cpp: (WebCore::ExtensionsGLOpenGLES::blitFramebufferANGLE): (WebCore::ExtensionsGLOpenGLES::renderbufferStorageMultisampleANGLE): (WebCore::ExtensionsGLOpenGLES::drawArraysInstancedANGLE): (WebCore::ExtensionsGLOpenGLES::drawElementsInstancedANGLE): (WebCore::ExtensionsGLOpenGLES::vertexAttribDivisorANGLE): * platform/graphics/opengl/ExtensionsGLOpenGLES.h: * platform/graphics/opengl/GraphicsContextGLOpenGL.h: * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: (WebCore::GraphicsContextGLOpenGL::drawArraysInstanced): (WebCore::GraphicsContextGLOpenGL::drawElementsInstanced): (WebCore::GraphicsContextGLOpenGL::vertexAttribDivisor): (WebCore::GraphicsContextGLOpenGL::getBufferSubData): (WebCore::GraphicsContextGLOpenGL::getQueryObjectui): (WebCore::GraphicsContextGLOpenGL::getSamplerParameterf): (WebCore::GraphicsContextGLOpenGL::getSamplerParameteri): (WebCore::GraphicsContextGLOpenGL::getSynci): (WebCore::GraphicsContextGLOpenGL::getActiveUniforms): * platform/graphics/opengl/GraphicsContextGLOpenGLES.cpp: (WebCore::GraphicsContextGLOpenGL::reshapeFBOs): Source/WebKit: Implement RemoteWebGLBackend https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Implemented with a generator script implementing the IPC to pass the GraphicsContextGL member function calls from web process to the GPU process. The script is run during development time and the results are committed to the repo for ease of review. Implement the RemoteGraphicsContextGL in WebKit side. This class will forward calls received via IPC to the GraphicsContextGLOpenGL. At the moment RemoteGraphicsContextGL instance is a direct child of GPUConnectionToWebProcess. Compositing is implemented only for PLATFORM(COCOA). Missing: - Simulated context loss - Simulated context change - Paint WebGL contents to 2D canvas - Upload video to WebGL - Upload canvas to WebGL * CMakeLists.txt: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * GPUProcess/GPUConnectionToWebProcess.cpp: (WebKit::GPUConnectionToWebProcess::createGraphicsContextGL): (WebKit::GPUConnectionToWebProcess::releaseGraphicsContextGL): * GPUProcess/GPUConnectionToWebProcess.h: * GPUProcess/GPUConnectionToWebProcess.messages.in: * GPUProcess/graphics/RemoteGraphicsContextGL.cpp: Added. (WebKit::RemoteGraphicsContextGL::create): (WebKit::RemoteGraphicsContextGL::RemoteGraphicsContextGL): (WebKit::RemoteGraphicsContextGL::~RemoteGraphicsContextGL): (WebKit::RemoteGraphicsContextGL::gpuConnectionToWebProcess const): (WebKit::RemoteGraphicsContextGL::messageSenderConnection const): (WebKit::RemoteGraphicsContextGL::messageSenderDestinationID const): (WebKit::RemoteGraphicsContextGL::didComposite): (WebKit::RemoteGraphicsContextGL::forceContextLost): (WebKit::RemoteGraphicsContextGL::recycleContext): (WebKit::RemoteGraphicsContextGL::dispatchContextChangedNotification): (WebKit::RemoteGraphicsContextGL::recycleBuffer): (WebKit::RemoteGraphicsContextGL::present): (WebKit::RemoteGraphicsContextGL::detachClient): (WebKit::RemoteGraphicsContextGL::reshape): (WebKit::RemoteGraphicsContextGL::prepareForDisplay): (WebKit::RemoteGraphicsContextGL::ensureExtensionEnabled): (WebKit::RemoteGraphicsContextGL::notifyMarkContextChanged): * GPUProcess/graphics/RemoteGraphicsContextGL.h: Added. * GPUProcess/graphics/RemoteGraphicsContextGL.messages.in: Added. * GPUProcess/graphics/RemoteGraphicsContextGLFunctionsGenerated.h: Added. (setFailNextGPUStatusCheck): (synthesizeGLError): (moveErrorsToSyntheticErrorList): (activeTexture): (attachShader): (bindAttribLocation): (bindBuffer): (bindFramebuffer): (bindRenderbuffer): (bindTexture): (blendColor): (blendEquation): (blendEquationSeparate): (blendFunc): (blendFuncSeparate): (checkFramebufferStatus): (clear): (clearColor): (clearDepth): (clearStencil): (colorMask): (compileShader): (copyTexImage2D): (copyTexSubImage2D): (createBuffer): (createFramebuffer): (createProgram): (createRenderbuffer): (createShader): (createTexture): (cullFace): (deleteBuffer): (deleteFramebuffer): (deleteProgram): (deleteRenderbuffer): (deleteShader): (deleteTexture): (depthFunc): (depthMask): (depthRange): (detachShader): (disable): (disableVertexAttribArray): (drawArrays): (drawElements): (enable): (enableVertexAttribArray): (finish): (flush): (framebufferRenderbuffer): (framebufferTexture2D): (frontFace): (generateMipmap): (getActiveAttrib): (getActiveUniform): (getAttribLocation): (getBufferParameteri): (getString): (getFloatv): (getIntegerv): (getInteger64): (getInteger64i): (getProgrami): (getBooleanv): (getError): (getFramebufferAttachmentParameteri): (getProgramInfoLog): (getRenderbufferParameteri): (getShaderi): (getShaderInfoLog): (getShaderPrecisionFormat): (getShaderSource): (getTexParameterf): (getTexParameteri): (getUniformfv): (getUniformiv): (getUniformuiv): (getUniformLocation): (getVertexAttribOffset): (hint): (isBuffer): (isEnabled): (isFramebuffer): (isProgram): (isRenderbuffer): (isShader): (isTexture): (lineWidth): (linkProgram): (pixelStorei): (polygonOffset): (renderbufferStorage): (sampleCoverage): (scissor): (shaderSource): (stencilFunc): (stencilFuncSeparate): (stencilMask): (stencilMaskSeparate): (stencilOp): (stencilOpSeparate): (texParameterf): (texParameteri): (uniform1f): (uniform1fv): (uniform1i): (uniform1iv): (uniform2f): (uniform2fv): (uniform2i): (uniform2iv): (uniform3f): (uniform3fv): (uniform3i): (uniform3iv): (uniform4f): (uniform4fv): (uniform4i): (uniform4iv): (uniformMatrix2fv): (uniformMatrix3fv): (uniformMatrix4fv): (useProgram): (validateProgram): (vertexAttrib1f): (vertexAttrib1fv): (vertexAttrib2f): (vertexAttrib2fv): (vertexAttrib3f): (vertexAttrib3fv): (vertexAttrib4f): (vertexAttrib4fv): (vertexAttribPointer): (viewport): (bufferData0): (bufferData1): (bufferSubData): (readnPixels0): (readnPixels1): (texImage2D0): (texImage2D1): (texSubImage2D0): (texSubImage2D1): (compressedTexImage2D0): (compressedTexImage2D1): (compressedTexSubImage2D0): (compressedTexSubImage2D1): (drawArraysInstanced): (drawElementsInstanced): (vertexAttribDivisor): (createVertexArray): (deleteVertexArray): (isVertexArray): (bindVertexArray): (copyBufferSubData): (getBufferSubData): (blitFramebuffer): (framebufferTextureLayer): (invalidateFramebuffer): (invalidateSubFramebuffer): (readBuffer): (renderbufferStorageMultisample): (texStorage2D): (texStorage3D): (texImage3D0): (texImage3D1): (texSubImage3D0): (texSubImage3D1): (copyTexSubImage3D): (compressedTexImage3D0): (compressedTexImage3D1): (compressedTexSubImage3D0): (compressedTexSubImage3D1): (getFragDataLocation): (uniform1ui): (uniform2ui): (uniform3ui): (uniform4ui): (uniform1uiv): (uniform2uiv): (uniform3uiv): (uniform4uiv): (uniformMatrix2x3fv): (uniformMatrix3x2fv): (uniformMatrix2x4fv): (uniformMatrix4x2fv): (uniformMatrix3x4fv): (uniformMatrix4x3fv): (vertexAttribI4i): (vertexAttribI4iv): (vertexAttribI4ui): (vertexAttribI4uiv): (vertexAttribIPointer): (drawRangeElements): (drawBuffers): (clearBufferiv): (clearBufferuiv): (clearBufferfv): (clearBufferfi): (createQuery): (deleteQuery): (isQuery): (beginQuery): (endQuery): (getQuery): (getQueryObjectui): (createSampler): (deleteSampler): (isSampler): (bindSampler): (samplerParameteri): (samplerParameterf): (getSamplerParameterf): (getSamplerParameteri): (fenceSync): (isSync): (deleteSync): (clientWaitSync): (waitSync): (getSynci): (createTransformFeedback): (deleteTransformFeedback): (isTransformFeedback): (bindTransformFeedback): (beginTransformFeedback): (endTransformFeedback): (transformFeedbackVaryings): (getTransformFeedbackVarying): (pauseTransformFeedback): (resumeTransformFeedback): (bindBufferBase): (bindBufferRange): (getUniformIndices): (getActiveUniforms): (getUniformBlockIndex): (getActiveUniformBlockName): (uniformBlockBinding): (getActiveUniformBlockiv): (getGraphicsResetStatusARB): (blitFramebufferANGLE): (renderbufferStorageMultisampleANGLE): (createVertexArrayOES): (deleteVertexArrayOES): (isVertexArrayOES): (bindVertexArrayOES): (getTranslatedShaderSourceANGLE): (insertEventMarkerEXT): (pushGroupMarkerEXT): (popGroupMarkerEXT): (drawBuffersEXT): (drawArraysInstancedANGLE): (drawElementsInstancedANGLE): (vertexAttribDivisorANGLE): * GPUProcess/mac/GPUProcessMac.mm: (WebKit::GPUProcess::initializeProcess): * GPUProcess/media/RemoteLegacyCDMProxy.h: * GPUProcess/media/RemoteLegacyCDMSessionProxy.cpp: * GPUProcess/media/RemoteMediaResourceManager.cpp: * GPUProcess/media/RemoteMediaResourceManager.h: * GPUProcess/media/RemoteMediaSourceProxy.h: * GPUProcess/media/RemoteSourceBufferProxy.cpp: * GPUProcess/media/RemoteSourceBufferProxy.h: * GPUProcess/webrtc/LibWebRTCCodecsProxy.h: * GPUProcess/webrtc/LibWebRTCCodecsProxy.mm: * GPUProcess/webrtc/RemoteMediaRecorder.h: * NetworkProcess/CustomProtocols/Cocoa/LegacyCustomProtocolManagerCocoa.mm: * NetworkProcess/CustomProtocols/LegacyCustomProtocolManager.h: * NetworkProcess/Downloads/Download.cpp: * NetworkProcess/Downloads/Download.h: * NetworkProcess/Downloads/DownloadManager.cpp: * NetworkProcess/Downloads/DownloadManager.h: * NetworkProcess/NetworkSocketChannel.cpp: * NetworkProcess/NetworkSocketChannel.h: * NetworkProcess/NetworkSocketStream.cpp: * NetworkProcess/NetworkSocketStream.h: * NetworkProcess/ServiceWorker/ServiceWorkerFetchTask.h: * NetworkProcess/WebSocketTask.h: * NetworkProcess/cocoa/WebSocketTaskCocoa.h: * NetworkProcess/cocoa/WebSocketTaskCocoa.mm: * NetworkProcess/soup/WebSocketTaskSoup.cpp: * NetworkProcess/soup/WebSocketTaskSoup.h: * Platform/IPC/ArgumentCoders.h: * Platform/IPC/ArrayReference.h: Copied from Source/WebKit/Platform/IPC/DataReference.h. (IPC::ArrayReference::ArrayReference): (IPC::ArrayReference::isEmpty const): (IPC::ArrayReference::size const): (IPC::ArrayReference::data const): (IPC::ArrayReference::vector const): * Platform/IPC/Connection.h: (IPC::Connection::sendSync): * Platform/IPC/DataReference.h: * Platform/IPC/Decoder.cpp: (IPC::Decoder::decodeFixedLengthReference): * Platform/IPC/Decoder.h: * Platform/IPC/Encoder.cpp: (IPC::Encoder::wrapForTesting): * Platform/IPC/Encoder.h: * Platform/IPC/HandleMessage.h: * Platform/IPC/MessageSender.h: (IPC::MessageSender::sendSync): * Platform/IPC/SharedBufferCopy.cpp: (IPC::SharedBufferCopy::decode): * Platform/IPC/SharedBufferDataReference.cpp: * Platform/IPC/StringReference.cpp: * PluginProcess/PluginControllerProxy.cpp: * PluginProcess/PluginControllerProxy.h: * Scripts/webkit/messages.py: * Shared/API/APIData.cpp: * Shared/AuxiliaryProcess.h: * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder<WebCore::GraphicsContextGLAttributes>::encode): (IPC::ArgumentCoder<WebCore::GraphicsContextGLAttributes>::decode): (IPC::ArgumentCoder<WebCore::GraphicsContextGL::ActiveInfo>::encode): (IPC::ArgumentCoder<WebCore::GraphicsContextGL::ActiveInfo>::decode): * Shared/WebCoreArgumentCoders.h: * Shared/WebPageCreationParameters.cpp: (WebKit::WebPageCreationParameters::encode const): (WebKit::WebPageCreationParameters::decode): * Shared/WebPageCreationParameters.h: * Shared/cf/ArgumentCodersCF.cpp: * Shared/soup/WebCoreArgumentCodersSoup.cpp: (IPC::ArgumentCoder<CertificateInfo>::encode): (IPC::ArgumentCoder<CertificateInfo>::decode): * Sources.txt: * SourcesCocoa.txt: * UIProcess/API/APIIconLoadingClient.h: * UIProcess/AuxiliaryProcessProxy.h: (WebKit::AuxiliaryProcessProxy::sendSync): * UIProcess/Cocoa/SOAuthorization/SubFrameSOAuthorizationSession.h: * UIProcess/Network/CustomProtocols/LegacyCustomProtocolManagerProxy.h: * UIProcess/PageClient.h: * UIProcess/UserContent/WebUserContentControllerProxy.cpp: * UIProcess/UserContent/WebUserContentControllerProxy.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::creationParameters): * UIProcess/WebPageProxy.h: * UIProcess/WebURLSchemeHandler.h: * UIProcess/WebURLSchemeTask.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/GPU/GPUProcessConnection.h: * WebProcess/GPU/graphics/GraphicsContextGLIdentifier.h: Renamed from Source/WebKit/Platform/IPC/DataReference.cpp. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.cpp: Added. (WebKit::RemoteGraphicsContextGLProxy::create): (WebKit::RemoteGraphicsContextGLProxy::RemoteGraphicsContextGLProxy): (WebKit::RemoteGraphicsContextGLProxy::~RemoteGraphicsContextGLProxy): (WebKit::RemoteGraphicsContextGLProxy::messageSenderConnection const): (WebKit::RemoteGraphicsContextGLProxy::messageSenderDestinationID const): (WebKit::RemoteGraphicsContextGLProxy::reshape): (WebKit::RemoteGraphicsContextGLProxy::prepareForDisplay): (WebKit::RemoteGraphicsContextGLProxy::ensureExtensionEnabled): (WebKit::RemoteGraphicsContextGLProxy::notifyMarkContextChanged): (WebKit::RemoteGraphicsContextGLProxy::simulateContextChanged): (WebKit::RemoteGraphicsContextGLProxy::paintRenderingResultsToCanvas): (WebKit::RemoteGraphicsContextGLProxy::paintRenderingResultsToImageData): (WebKit::RemoteGraphicsContextGLProxy::wasCreated): (WebKit::RemoteGraphicsContextGLProxy::wasLost): (WebKit::RemoteGraphicsContextGLProxy::wasChanged): (WebKit::RemoteGraphicsContextGLProxy::waitUntilInitialized): * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.h: Added. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxy.messages.in: Copied from Source/WebKit/GPUProcess/GPUConnectionToWebProcess.messages.in. * WebProcess/GPU/graphics/RemoteGraphicsContextGLProxyFunctionsGenerated.cpp: Added. (WebKit::RemoteGraphicsContextGLProxy::setFailNextGPUStatusCheck): (WebKit::RemoteGraphicsContextGLProxy::synthesizeGLError): (WebKit::RemoteGraphicsContextGLProxy::moveErrorsToSyntheticErrorList): (WebKit::RemoteGraphicsContextGLProxy::activeTexture): (WebKit::RemoteGraphicsContextGLProxy::attachShader): (WebKit::RemoteGraphicsContextGLProxy::bindAttribLocation): (WebKit::RemoteGraphicsContextGLProxy::bindBuffer): (WebKit::RemoteGraphicsContextGLProxy::bindFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::bindRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::bindTexture): (WebKit::RemoteGraphicsContextGLProxy::blendColor): (WebKit::RemoteGraphicsContextGLProxy::blendEquation): (WebKit::RemoteGraphicsContextGLProxy::blendEquationSeparate): (WebKit::RemoteGraphicsContextGLProxy::blendFunc): (WebKit::RemoteGraphicsContextGLProxy::blendFuncSeparate): (WebKit::RemoteGraphicsContextGLProxy::checkFramebufferStatus): (WebKit::RemoteGraphicsContextGLProxy::clear): (WebKit::RemoteGraphicsContextGLProxy::clearColor): (WebKit::RemoteGraphicsContextGLProxy::clearDepth): (WebKit::RemoteGraphicsContextGLProxy::clearStencil): (WebKit::RemoteGraphicsContextGLProxy::colorMask): (WebKit::RemoteGraphicsContextGLProxy::compileShader): (WebKit::RemoteGraphicsContextGLProxy::copyTexImage2D): (WebKit::RemoteGraphicsContextGLProxy::copyTexSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::createBuffer): (WebKit::RemoteGraphicsContextGLProxy::createFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::createProgram): (WebKit::RemoteGraphicsContextGLProxy::createRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::createShader): (WebKit::RemoteGraphicsContextGLProxy::createTexture): (WebKit::RemoteGraphicsContextGLProxy::cullFace): (WebKit::RemoteGraphicsContextGLProxy::deleteBuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteProgram): (WebKit::RemoteGraphicsContextGLProxy::deleteRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::deleteShader): (WebKit::RemoteGraphicsContextGLProxy::deleteTexture): (WebKit::RemoteGraphicsContextGLProxy::depthFunc): (WebKit::RemoteGraphicsContextGLProxy::depthMask): (WebKit::RemoteGraphicsContextGLProxy::depthRange): (WebKit::RemoteGraphicsContextGLProxy::detachShader): (WebKit::RemoteGraphicsContextGLProxy::disable): (WebKit::RemoteGraphicsContextGLProxy::disableVertexAttribArray): (WebKit::RemoteGraphicsContextGLProxy::drawArrays): (WebKit::RemoteGraphicsContextGLProxy::drawElements): (WebKit::RemoteGraphicsContextGLProxy::enable): (WebKit::RemoteGraphicsContextGLProxy::enableVertexAttribArray): (WebKit::RemoteGraphicsContextGLProxy::finish): (WebKit::RemoteGraphicsContextGLProxy::flush): (WebKit::RemoteGraphicsContextGLProxy::framebufferRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::framebufferTexture2D): (WebKit::RemoteGraphicsContextGLProxy::frontFace): (WebKit::RemoteGraphicsContextGLProxy::generateMipmap): (WebKit::RemoteGraphicsContextGLProxy::getActiveAttrib): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniform): (WebKit::RemoteGraphicsContextGLProxy::getAttribLocation): (WebKit::RemoteGraphicsContextGLProxy::getBufferParameteri): (WebKit::RemoteGraphicsContextGLProxy::getString): (WebKit::RemoteGraphicsContextGLProxy::getFloatv): (WebKit::RemoteGraphicsContextGLProxy::getIntegerv): (WebKit::RemoteGraphicsContextGLProxy::getInteger64): (WebKit::RemoteGraphicsContextGLProxy::getInteger64i): (WebKit::RemoteGraphicsContextGLProxy::getProgrami): (WebKit::RemoteGraphicsContextGLProxy::getBooleanv): (WebKit::RemoteGraphicsContextGLProxy::getError): (WebKit::RemoteGraphicsContextGLProxy::getFramebufferAttachmentParameteri): (WebKit::RemoteGraphicsContextGLProxy::getProgramInfoLog): (WebKit::RemoteGraphicsContextGLProxy::getRenderbufferParameteri): (WebKit::RemoteGraphicsContextGLProxy::getShaderi): (WebKit::RemoteGraphicsContextGLProxy::getShaderInfoLog): (WebKit::RemoteGraphicsContextGLProxy::getShaderPrecisionFormat): (WebKit::RemoteGraphicsContextGLProxy::getShaderSource): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterf): (WebKit::RemoteGraphicsContextGLProxy::getTexParameteri): (WebKit::RemoteGraphicsContextGLProxy::getUniformfv): (WebKit::RemoteGraphicsContextGLProxy::getUniformiv): (WebKit::RemoteGraphicsContextGLProxy::getUniformuiv): (WebKit::RemoteGraphicsContextGLProxy::getUniformLocation): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribOffset): (WebKit::RemoteGraphicsContextGLProxy::hint): (WebKit::RemoteGraphicsContextGLProxy::isBuffer): (WebKit::RemoteGraphicsContextGLProxy::isEnabled): (WebKit::RemoteGraphicsContextGLProxy::isFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::isProgram): (WebKit::RemoteGraphicsContextGLProxy::isRenderbuffer): (WebKit::RemoteGraphicsContextGLProxy::isShader): (WebKit::RemoteGraphicsContextGLProxy::isTexture): (WebKit::RemoteGraphicsContextGLProxy::lineWidth): (WebKit::RemoteGraphicsContextGLProxy::linkProgram): (WebKit::RemoteGraphicsContextGLProxy::pixelStorei): (WebKit::RemoteGraphicsContextGLProxy::polygonOffset): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorage): (WebKit::RemoteGraphicsContextGLProxy::sampleCoverage): (WebKit::RemoteGraphicsContextGLProxy::scissor): (WebKit::RemoteGraphicsContextGLProxy::shaderSource): (WebKit::RemoteGraphicsContextGLProxy::stencilFunc): (WebKit::RemoteGraphicsContextGLProxy::stencilFuncSeparate): (WebKit::RemoteGraphicsContextGLProxy::stencilMask): (WebKit::RemoteGraphicsContextGLProxy::stencilMaskSeparate): (WebKit::RemoteGraphicsContextGLProxy::stencilOp): (WebKit::RemoteGraphicsContextGLProxy::stencilOpSeparate): (WebKit::RemoteGraphicsContextGLProxy::texParameterf): (WebKit::RemoteGraphicsContextGLProxy::texParameteri): (WebKit::RemoteGraphicsContextGLProxy::uniform1f): (WebKit::RemoteGraphicsContextGLProxy::uniform1fv): (WebKit::RemoteGraphicsContextGLProxy::uniform1i): (WebKit::RemoteGraphicsContextGLProxy::uniform1iv): (WebKit::RemoteGraphicsContextGLProxy::uniform2f): (WebKit::RemoteGraphicsContextGLProxy::uniform2fv): (WebKit::RemoteGraphicsContextGLProxy::uniform2i): (WebKit::RemoteGraphicsContextGLProxy::uniform2iv): (WebKit::RemoteGraphicsContextGLProxy::uniform3f): (WebKit::RemoteGraphicsContextGLProxy::uniform3fv): (WebKit::RemoteGraphicsContextGLProxy::uniform3i): (WebKit::RemoteGraphicsContextGLProxy::uniform3iv): (WebKit::RemoteGraphicsContextGLProxy::uniform4f): (WebKit::RemoteGraphicsContextGLProxy::uniform4fv): (WebKit::RemoteGraphicsContextGLProxy::uniform4i): (WebKit::RemoteGraphicsContextGLProxy::uniform4iv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4fv): (WebKit::RemoteGraphicsContextGLProxy::useProgram): (WebKit::RemoteGraphicsContextGLProxy::validateProgram): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib1f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib1fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib2f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib2fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib3f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib3fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib4f): (WebKit::RemoteGraphicsContextGLProxy::vertexAttrib4fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribPointer): (WebKit::RemoteGraphicsContextGLProxy::viewport): (WebKit::RemoteGraphicsContextGLProxy::bufferData): (WebKit::RemoteGraphicsContextGLProxy::bufferSubData): (WebKit::RemoteGraphicsContextGLProxy::readnPixels): (WebKit::RemoteGraphicsContextGLProxy::texImage2D): (WebKit::RemoteGraphicsContextGLProxy::texSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexImage2D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexSubImage2D): (WebKit::RemoteGraphicsContextGLProxy::drawArraysInstanced): (WebKit::RemoteGraphicsContextGLProxy::drawElementsInstanced): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribDivisor): (WebKit::RemoteGraphicsContextGLProxy::createVertexArray): (WebKit::RemoteGraphicsContextGLProxy::deleteVertexArray): (WebKit::RemoteGraphicsContextGLProxy::isVertexArray): (WebKit::RemoteGraphicsContextGLProxy::bindVertexArray): (WebKit::RemoteGraphicsContextGLProxy::copyBufferSubData): (WebKit::RemoteGraphicsContextGLProxy::getBufferSubData): (WebKit::RemoteGraphicsContextGLProxy::blitFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::framebufferTextureLayer): (WebKit::RemoteGraphicsContextGLProxy::invalidateFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::invalidateSubFramebuffer): (WebKit::RemoteGraphicsContextGLProxy::readBuffer): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorageMultisample): (WebKit::RemoteGraphicsContextGLProxy::texStorage2D): (WebKit::RemoteGraphicsContextGLProxy::texStorage3D): (WebKit::RemoteGraphicsContextGLProxy::texImage3D): (WebKit::RemoteGraphicsContextGLProxy::texSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::copyTexSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexImage3D): (WebKit::RemoteGraphicsContextGLProxy::compressedTexSubImage3D): (WebKit::RemoteGraphicsContextGLProxy::getFragDataLocation): (WebKit::RemoteGraphicsContextGLProxy::uniform1ui): (WebKit::RemoteGraphicsContextGLProxy::uniform2ui): (WebKit::RemoteGraphicsContextGLProxy::uniform3ui): (WebKit::RemoteGraphicsContextGLProxy::uniform4ui): (WebKit::RemoteGraphicsContextGLProxy::uniform1uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform2uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform3uiv): (WebKit::RemoteGraphicsContextGLProxy::uniform4uiv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2x3fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3x2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix2x4fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4x2fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix3x4fv): (WebKit::RemoteGraphicsContextGLProxy::uniformMatrix4x3fv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4i): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4iv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4ui): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribI4uiv): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribIPointer): (WebKit::RemoteGraphicsContextGLProxy::drawRangeElements): (WebKit::RemoteGraphicsContextGLProxy::drawBuffers): (WebKit::RemoteGraphicsContextGLProxy::clearBufferiv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferuiv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferfv): (WebKit::RemoteGraphicsContextGLProxy::clearBufferfi): (WebKit::RemoteGraphicsContextGLProxy::createQuery): (WebKit::RemoteGraphicsContextGLProxy::deleteQuery): (WebKit::RemoteGraphicsContextGLProxy::isQuery): (WebKit::RemoteGraphicsContextGLProxy::beginQuery): (WebKit::RemoteGraphicsContextGLProxy::endQuery): (WebKit::RemoteGraphicsContextGLProxy::getQuery): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectui): (WebKit::RemoteGraphicsContextGLProxy::createSampler): (WebKit::RemoteGraphicsContextGLProxy::deleteSampler): (WebKit::RemoteGraphicsContextGLProxy::isSampler): (WebKit::RemoteGraphicsContextGLProxy::bindSampler): (WebKit::RemoteGraphicsContextGLProxy::samplerParameteri): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterf): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterf): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameteri): (WebKit::RemoteGraphicsContextGLProxy::fenceSync): (WebKit::RemoteGraphicsContextGLProxy::isSync): (WebKit::RemoteGraphicsContextGLProxy::deleteSync): (WebKit::RemoteGraphicsContextGLProxy::clientWaitSync): (WebKit::RemoteGraphicsContextGLProxy::waitSync): (WebKit::RemoteGraphicsContextGLProxy::getSynci): (WebKit::RemoteGraphicsContextGLProxy::createTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::deleteTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::isTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::bindTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::beginTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::endTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::transformFeedbackVaryings): (WebKit::RemoteGraphicsContextGLProxy::getTransformFeedbackVarying): (WebKit::RemoteGraphicsContextGLProxy::pauseTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::resumeTransformFeedback): (WebKit::RemoteGraphicsContextGLProxy::bindBufferBase): (WebKit::RemoteGraphicsContextGLProxy::bindBufferRange): (WebKit::RemoteGraphicsContextGLProxy::getUniformIndices): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniforms): (WebKit::RemoteGraphicsContextGLProxy::getUniformBlockIndex): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniformBlockName): (WebKit::RemoteGraphicsContextGLProxy::uniformBlockBinding): (WebKit::RemoteGraphicsContextGLProxy::getActiveUniformBlockiv): (WebKit::RemoteGraphicsContextGLProxy::getGraphicsResetStatusARB): (WebKit::RemoteGraphicsContextGLProxy::blitFramebufferANGLE): (WebKit::RemoteGraphicsContextGLProxy::renderbufferStorageMultisampleANGLE): (WebKit::RemoteGraphicsContextGLProxy::createVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::deleteVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::isVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::bindVertexArrayOES): (WebKit::RemoteGraphicsContextGLProxy::getTranslatedShaderSourceANGLE): (WebKit::RemoteGraphicsContextGLProxy::insertEventMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::pushGroupMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::popGroupMarkerEXT): (WebKit::RemoteGraphicsContextGLProxy::drawBuffersEXT): (WebKit::RemoteGraphicsContextGLProxy::drawArraysInstancedANGLE): (WebKit::RemoteGraphicsContextGLProxy::drawElementsInstancedANGLE): (WebKit::RemoteGraphicsContextGLProxy::vertexAttribDivisorANGLE): (WebKit::RemoteGraphicsContextGLProxy::getInternalformativ): (WebKit::RemoteGraphicsContextGLProxy::readPixelsRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBufferPointervRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getInternalformativRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getVertexAttribIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getUniformuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBufferParameteri64vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getFramebufferParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getProgramInterfaceivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getBooleani_vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getMultisamplefvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexLevelParameterivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexLevelParameterfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getPointervRobustANGLERobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformfvRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getnUniformuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::texParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getTexParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::samplerParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterIivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getSamplerParameterIuivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectivRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjecti64vRobustANGLE): (WebKit::RemoteGraphicsContextGLProxy::getQueryObjectui64vRobustANGLE): * WebProcess/GPU/media/MediaPlayerPrivateRemote.cpp: (WebKit::MediaPlayerPrivateRemote::copyVideoTextureToPlatformTexture): * WebProcess/GPU/media/RemoteAudioDestinationProxy.cpp: (WebKit::RemoteAudioDestinationProxy::connectToGPUProcess): * WebProcess/GPU/media/RemoteAudioSession.cpp: * WebProcess/GPU/media/RemoteAudioSourceProviderManager.cpp: * WebProcess/GPU/media/RemoteAudioSourceProviderManager.h: * WebProcess/GPU/media/RemoteLegacyCDMSession.cpp: * WebProcess/GPU/media/SourceBufferPrivateRemote.h: * WebProcess/GPU/media/TextTrackPrivateRemote.h: * WebProcess/GPU/webrtc/LibWebRTCCodecs.cpp: * WebProcess/GPU/webrtc/LibWebRTCCodecs.h: * WebProcess/InjectedBundle/InjectedBundle.h: * WebProcess/Network/NetworkProcessConnection.h: * WebProcess/Network/WebResourceLoader.cpp: * WebProcess/Network/WebResourceLoader.h: * WebProcess/Network/WebSocketChannel.cpp: * WebProcess/Network/WebSocketChannel.h: * WebProcess/Network/WebSocketStream.cpp: * WebProcess/Network/WebSocketStream.h: * WebProcess/Network/webrtc/LibWebRTCSocket.h: * WebProcess/Plugins/PDF/PDFPlugin.h: * WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::createGraphicsContextGL const): * WebProcess/WebCoreSupport/WebChromeClient.h: * WebProcess/WebPage/WebPage.cpp: (WebKit::m_limitsNavigationsToAppBoundDomains): (WebKit::WebPage::updatePreferences): * WebProcess/WebPage/WebPage.h: (WebKit::WebPage::sendSyncWithDelayedReply): * WebProcess/WebPage/ios/WebPageIOS.mm: (WebKit::WebPage::handleEditingKeyboardEvent): * WebProcess/WebProcess.cpp: (WebKit::WebProcess::setUseGPUProcessForWebGL): (WebKit::WebProcess::shouldUseRemoteRenderingForWebGL const): * WebProcess/WebProcess.h: Tools: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC and is incomplete. Add the code generator to generate the implementation. Currently the generator generates a WebKit IPC implementation. The input definition to the generator is the proxy implementation header files. The output of the generator is - WebKit IPC message definition file - Message sender code - Message receiver and payload invocation code The generator converts GraphicsContextGL GCGL -prefixed types to sized IPC types. The generator is invoked during development time and the results are stored in the repository. * Scripts/generate-gpup-webgl: Added. LayoutTests: Implement RemoteGraphicsContextGL https://bugs.webkit.org/show_bug.cgi?id=217216 <rdar://problem/69876258> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-12-09 Reviewed by Simon Fraser. Implements a beginning of a remote version of GraphicsContextGL for GPU process. Current implementation is using WebKit IPC. Adds test expectations for the missing functionality. Does not yet enable the tests that actually pass but which were skipped before the implementation. * gpu-process/TestExpectations: Canonical link: https://commits.webkit.org/232258@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@270587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-09 18:32:29 +00:00
platform/graphics/cocoa/IntRectCocoa.mm
platform/graphics/cocoa/IOSurface.mm
platform/graphics/cocoa/IOSurfacePoolCocoa.mm
platform/graphics/cocoa/WebActionDisablingCALayerDelegate.mm
platform/graphics/cocoa/WebCoreCALayerExtras.mm
platform/graphics/cocoa/WebCoreDecompressionSession.mm
platform/graphics/cocoa/WebGLLayer.mm
platform/graphics/cocoa/WebGPULayer.mm
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/cocoa/WebMAudioUtilitiesCocoa.mm
platform/graphics/coretext/FontCascadeCoreText.cpp
platform/graphics/coretext/FontCoreText.cpp
platform/graphics/coretext/FontPlatformDataCoreText.cpp
platform/graphics/coretext/GlyphPageCoreText.cpp
[Cocoa] Migrate CoreText-specific code from ***Cocoa.mm to ***CoreText.cpp https://bugs.webkit.org/show_bug.cgi?id=216400 Reviewed by Tim Horton. Source/WebCore: This is in preparation for sharing the CoreText code with the Apple Windows port. This patch doesn't actually cause Windows to use this code yet. That will happen in a series of subsequent patches. This patch is just the first stage. There isn't any actual behavior change here - it's just moving code around between files. This patch also adds a new USE() flag: USE(CORE_TEXT). It migrates CoreText-specific code from #if PLATFORM(COCOA) to #if USE(CORE_TEXT). No new tests because there is no behavior change. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/graphics/Font.cpp: * platform/graphics/Font.h: * platform/graphics/FontCascade.cpp: * platform/graphics/FontCascade.h: * platform/graphics/FontPlatformData.cpp: * platform/graphics/FontPlatformData.h: * platform/graphics/cocoa/FontCascadeCocoa.mm: (WebCore::showLetterpressedGlyphsWithAdvances): (WebCore::FontCascade::isSubpixelAntialiasingAvailable): Deleted. (WebCore::fillVectorWithHorizontalGlyphPositions): Deleted. (WebCore::shouldUseLetterpressEffect): Deleted. (WebCore::showGlyphsWithAdvances): Deleted. (WebCore::setCGFontRenderingMode): Deleted. (WebCore::FontCascade::drawGlyphs): Deleted. (WebCore::FontCascade::primaryFontIsSystemFont const): Deleted. (WebCore::FontCascade::fontForCombiningCharacterSequence const): Deleted. * platform/graphics/cocoa/FontCocoa.cpp: Added. (WebCore::Font::platformDestroy): * platform/graphics/cocoa/FontPlatformDataCocoa.mm: (WebCore::FontPlatformData::hash const): (WebCore::isSystemFont): Deleted. (): Deleted. (WebCore::FontPlatformData::FontPlatformData): Deleted. (WebCore::FontPlatformData::registeredFont const): Deleted. (WebCore::mapFontWidthVariantToCTFeatureSelector): Deleted. (WebCore::cascadeToLastResortAttributesDictionary): Deleted. (WebCore::cascadeToLastResortAndVariationsFontDescriptor): Deleted. (WebCore::FontPlatformData::ctFont const): Deleted. (WebCore::FontPlatformData::objectForEqualityCheck): Deleted. (WebCore::FontPlatformData::objectForEqualityCheck const): Deleted. (WebCore::FontPlatformData::openTypeTable const): Deleted. (WebCore::FontPlatformData::description const): Deleted. (WebCore::FontPlatformData::familyName const): Deleted. * platform/graphics/cocoa/SourceBufferParserWebM.cpp: * platform/graphics/ct/FontCascadeCoreText.cpp: Copied from Source/WebCore/platform/graphics/cocoa/FontCascadeCocoa.mm. (WebCore::FontCascade::isSubpixelAntialiasingAvailable): (WebCore::fillVectorWithHorizontalGlyphPositions): (WebCore::shouldUseLetterpressEffect): (WebCore::showGlyphsWithAdvances): (WebCore::setCGFontRenderingMode): (WebCore::FontCascade::drawGlyphs): (WebCore::FontCascade::primaryFontIsSystemFont const): (WebCore::FontCascade::fontForCombiningCharacterSequence const): * platform/graphics/ct/FontCoreText.cpp: Renamed from Source/WebCore/platform/graphics/cocoa/FontCocoa.mm. (WebCore::Font::platformInit): (WebCore::Font::platformCharWidthInit): (WebCore::Font::platformCreateScaledFont const): (WebCore::Font::applyTransforms const): * platform/graphics/ct/FontPlatformDataCoreText.cpp: Copied from Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm. (WebCore::FontPlatformData::FontPlatformData): (WebCore::isSystemFont): (WebCore::FontPlatformData::registeredFont const): (WebCore::mapFontWidthVariantToCTFeatureSelector): (WebCore::cascadeToLastResortAttributesDictionary): (WebCore::cascadeToLastResortAndVariationsFontDescriptor): (WebCore::FontPlatformData::ctFont const): (WebCore::FontPlatformData::objectForEqualityCheck): (WebCore::FontPlatformData::objectForEqualityCheck const): (WebCore::FontPlatformData::openTypeTable const): (WebCore::FontPlatformData::description const): (WebCore::FontPlatformData::familyName const): * platform/graphics/ct/GlyphPageCoreText.cpp: Renamed from Source/WebCore/platform/graphics/mac/GlyphPageMac.cpp. * platform/graphics/win/FontCascadeCGWin.cpp: Added. (WebCore::FontCascade::setFontSmoothingLevel): (WebCore::setCGFontSmoothingStyle): (WebCore::FontCascade::setFontSmoothingStyle): (WebCore::FontCascade::setFontSmoothingContrast): (WebCore::clearTypeContrast): (WebCore::FontCascade::systemFontSmoothingChanged): (WebCore::FontCascade::setCGContextFontRenderingStyle): (WebCore::renderingStyleForFont): (WebCore::FontCascade::getPlatformGlyphAdvances): Source/WebCore/PAL: * pal/spi/win/CoreTextSPIWin.h: Source/WTF: * wtf/PlatformUse.h: Canonical link: https://commits.webkit.org/229247@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266936 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-11 20:27:38 +00:00
Refactor VideoTextureCopier to be specific to a particular GraphicsContextGL and polymorphic to it https://bugs.webkit.org/show_bug.cgi?id=217218 <rdar://problem/69876433> Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2020-11-11 Reviewed by Dean Jackson. Work towards WebGL implementation which uses GraphicsContextGL abstract base class instead of GraphicsContextGLOpenGL concrete class. Relatively minimal changes to make AVFOUNDATION variants of MediaPlayerPrivate compile when GraphicsContextGL is passed as the context instead of GraphicsContextGLOpenGL. Changes functionality so that the conversion resources (shaders, FBO) are allocated per context instead of previously per video element. This also means that context loss is handled correctly for the element. Removes unused RGB texture copying code from the copy implementation. This was left unused when OpenGL and OpenGL ES backends for AVF users were removed. Makes it possible to have GraphicsContextGLRemote that is able to copy both AVF media textures as well as remote media textures. Makes it possible to have Cocoa variant of GraphicsContextGLOpenGL that is able to copy both AVF media textures as well as remote media textures. Changes only the AVF variants of MediaPlayerPrivate, not the GStreamer variants. Similar interface GraphicsContextGLGStreamer could be implemented for GStreamer if/when remote WebGL would support GStreamer. If this is not done, a downcast from GraphicsContextGL to GraphicsContextGLOpenGL can be added at the moment when the GraphicsContextGLOpenGL uses in core WebGL are modified to GraphicsContextGL uses. No new tests, a refactor. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/graphics/GraphicsContextGL.h: * platform/graphics/angle/GraphicsContextGLANGLE.cpp: (WebCore::GraphicsContextGLOpenGL::asCV): * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::copyVideoTextureToPlatformTexture): * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaSourceAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaSourceAVFObjC::copyVideoTextureToPlatformTexture): * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: (WebCore::GraphicsContextGLOpenGL::~GraphicsContextGLOpenGL): * platform/graphics/cv/GraphicsContextGLCV.h: Added. * platform/graphics/cv/GraphicsContextGLCVANGLE.cpp: Renamed from Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.cpp. (WebCore::GraphicsContextGLCVANGLE::GraphicsContextGLCVANGLE): (WebCore::GraphicsContextGLCVANGLE::~GraphicsContextGLCVANGLE): (WebCore::GraphicsContextGLCVANGLE::initializeUVContextObjects): (WebCore::GraphicsContextGLCVANGLE::attachIOSurfaceToTexture): (WebCore::GraphicsContextGLCVANGLE::detachIOSurfaceFromTexture): (WebCore::GraphicsContextGLCVANGLE::copyPixelBufferToTexture): * platform/graphics/cv/GraphicsContextGLCVANGLE.h: Renamed from Source/WebCore/platform/graphics/cv/VideoTextureCopierCV.h. * platform/graphics/opengl/GraphicsContextGLOpenGL.h: Canonical link: https://commits.webkit.org/231457@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@269678 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-11-11 10:44:25 +00:00
platform/graphics/cv/GraphicsContextGLCVANGLE.cpp
platform/graphics/cv/ImageRotationSessionVT.mm
platform/graphics/cv/PixelBufferConformerCV.cpp
platform/graphics/mac/ColorMac.mm
platform/graphics/mac/ComplexTextControllerCoreText.mm
platform/graphics/mac/FloatPointMac.mm
platform/graphics/mac/FloatSizeMac.mm
platform/graphics/mac/FontCustomPlatformData.cpp
WebGL power preference and discrete/internal gpu selection implemented incorrectly with ANGLE https://bugs.webkit.org/show_bug.cgi?id=220843 Patch by Kimmo Kinnunen <kkinnunen@apple.com> on 2021-01-26 Reviewed by Dean Jackson. Source/WebCore: Use ANGLE extension EGL_ANGLE_power_preference to signal to ANGLE that the underlying CGL context should be updated as a response to display reconfiguration signal. This ensures that ANGLE state stays consistent with the actual CGL context behavior, as we don't change the context behind ANGLE's back. Remove the feature where the context GPU is selected based on the display the window is on. This cannot work with the logic of "powerPreference = "high-performance" goes to discrete GPU". Also, this cannot work with ANGLE at all, since all contexts are backed by a single platform context. Thus all contexts will use the same underlying GPU. No new tests due to the test runner missing features. The bug blockers track the testing. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/canvas/WebGLRenderingContextBase.cpp: (WebCore::isHighPerformanceContext): * page/Chrome.cpp: (WebCore::Chrome::windowScreenDidChange): * platform/graphics/GraphicsContextGL.h: * platform/graphics/RemoteGraphicsContextGLProxyBase.cpp: * platform/graphics/RemoteGraphicsContextGLProxyBase.h: * platform/graphics/cocoa/GraphicsContextGLOpenGLCocoa.mm: (WebCore::GraphicsContextGLOpenGL::create): (WebCore::GraphicsContextGLOpenGL::createShared): (WebCore::GraphicsContextGLOpenGL::GraphicsContextGLOpenGL): (WebCore::GraphicsContextGLOpenGL::setContextVisibility): (WebCore::GraphicsContextGLOpenGL::displayWasReconfigured): (WebCore::GraphicsContextGLOpenGL::simulateContextChanged): * platform/graphics/mac/GraphicsChecksMac.cpp: Added. (WebCore::attachToAppleGraphicsControl): (WebCore::hasMuxCapability): (WebCore::hasLowAndHighPowerGPUs): * platform/graphics/mac/GraphicsChecksMac.h: Copied from Source/WebKit/WebProcess/WebCoreSupport/mac/WebSwitchingGPUClient.h. * platform/graphics/mac/ScopedHighPerformanceGPURequest.h: Copied from Source/WebCore/platform/graphics/mac/SwitchingGPUClient.h. (WebCore::ScopedHighPerformanceGPURequest::ScopedHighPerformanceGPURequest): (WebCore::ScopedHighPerformanceGPURequest::~ScopedHighPerformanceGPURequest): (WebCore::ScopedHighPerformanceGPURequest::operator=): (WebCore::ScopedHighPerformanceGPURequest::acquire): * platform/graphics/mac/SwitchingGPUClient.h: * platform/graphics/opengl/GraphicsContextGLOpenGL.h: * platform/graphics/opengl/GraphicsContextGLOpenGLManager.cpp: (WebCore::GraphicsContextGLOpenGLManager::displayWasReconfigured): (WebCore::GraphicsContextGLOpenGLManager::addContext): (WebCore::GraphicsContextGLOpenGLManager::removeContext): * platform/graphics/opengl/GraphicsContextGLOpenGLManager.h: * testing/Internals.cpp: Source/WebKit: Move the high-performance GPU shutdown timer from individual web processes to the main class in the ui process. This simplifies the implementation and reduces the number of timers. * UIProcess/mac/HighPerformanceGPUManager.h: * UIProcess/mac/HighPerformanceGPUManager.mm: (WebKit::HighPerformanceGPUManager::HighPerformanceGPUManager): (WebKit::HighPerformanceGPUManager::removeProcessRequiringHighPerformance): (WebKit::HighPerformanceGPUManager::updateState): * WebProcess/WebCoreSupport/mac/WebSwitchingGPUClient.cpp: (WebKit::WebSwitchingGPUClient::requestHighPerformanceGPU): (WebKit::WebSwitchingGPUClient::releaseHighPerformanceGPU): * WebProcess/WebCoreSupport/mac/WebSwitchingGPUClient.h: Canonical link: https://commits.webkit.org/233341@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271880 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-01-26 13:43:59 +00:00
platform/graphics/mac/GraphicsChecksMac.cpp
platform/graphics/mac/IconMac.mm
platform/graphics/mac/ImageMac.mm
platform/graphics/mac/IntPointMac.mm
platform/graphics/mac/IntSizeMac.mm
platform/graphics/mac/PDFDocumentImageMac.mm
platform/graphics/mac/SimpleFontDataCoreText.cpp
platform/graphics/mac/WebLayer.mm
Add support for the USE_TYPO_METRICS flag on iOS https://bugs.webkit.org/show_bug.cgi?id=131839 Reviewed by Darin Adler. Make the iOS Font service use the typo metrics for fonts with a MATH table when the OS/2 USE_TYPO_METRICS flag is set. The code shared by iOS, OS X and AppleWin is moved into a separate OpenTypeCG module. No new tests because this is already tested by fonts/use-typo-metrics-1.html * PlatformAppleWin.cmake: Add OpenTypeCG files. * PlatformMac.cmake: ditto. * WebCore.vcxproj/WebCore.vcxproj: ditto. * WebCore.vcxproj/WebCore.vcxproj.filters: ditto. * WebCore.xcodeproj/project.pbxproj: ditto. * platform/graphics/cocoa/FontCocoa.mm: (WebCore::Font::platformInit): Use functions from OpenTypeCG. (WebCore::fontHasMathTable): Deleted. * platform/graphics/ios/FontServicesIOS.mm: (WebCore::FontServicesIOS::FontServicesIOS): Use the typo metrics for fonts with a MATH table when the OS/2 USE_TYPO_METRICS flag is set. * platform/graphics/opentype/OpenTypeCG.h: Added. * platform/graphics/opentype/OpenTypeCG.cpp: Added. (WebCore::OpenType::fontHasMathTable): Move this code from FontCocoa.mm. (WebCore::OpenType::readShortFromTable): Inline function to read a 16-bit big endian integer from the OS/2 table and to cast it into a short integer. (WebCore::OpenType::tryGetTypoMetrics): Move this code from FontCocoa.mm. * platform/graphics/opentype/OpenTypeTypes.h: Add missing Glyph.h header needed by TableWithCoverage::getCoverageIndex. * platform/graphics/win/SimpleFontDataCGWin.cpp: (WebCore::Font::platformInit): Use functions from OpenTypeCG. Canonical link: https://commits.webkit.org/169100@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192017 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-11-04 08:50:31 +00:00
platform/graphics/opentype/OpenTypeCG.cpp
platform/graphics/opentype/OpenTypeMathData.cpp
platform/mac/CursorMac.mm
platform/mac/KeyEventMac.mm
Adapt LocalCurrentGraphicsContext for iOS <https://webkit.org/b/211660> Reviewed by Darin Adler. Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: - Update build files for: - Rename of LocalCurrentGraphicsContext.mm to LocalCurrentGraphicsContextMac.mm. - Move of LocalCurrentGraphicsContext.h from platform/mac to platform/cocoa. - Addition of LocalCurrentGraphicsContextIOS.mm. * platform/cocoa/LocalCurrentGraphicsContext.h: Renamed from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.h. - Make this work for iOS by using PLATFORM(COCOA) for the outer guard and USE(APPKIT) for the Mac-specific bits. - Use RetainPtr<> for NSGraphicsContext to clean up code in LocalCurrentGraphicsContextMac.mm. (WebCore::LocalCurrentGraphicsContext::cgContext): - Inline from LocalCurrentGraphicsContextMac.mm. * platform/ios/LocalCurrentGraphicsContextIOS.mm: Copied from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.mm. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext): (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext): - Implement based on LocalCurrentGraphicsContextMac.mm. Use UIGraphics{GetCurrent,Pop,Push}Context() functions added to UIKitSoftLink.h. * platform/mac/LocalCurrentGraphicsContextMac.mm: Renamed from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.mm. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext): - Use m_savedGraphicsContext instead of graphicsContext in the body of the constructor. - Remove set-to-nil/retain of m_savedNSGraphicsContext since that is handled by RetainPtr<> now. (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext): - Remove release of m_savedNSGraphicsContext since that is handled by RetainPtr<> now. (WebCore::LocalCurrentGraphicsContext::cgContext): Delete. - Inline into header to share implementation with iOS. Source/WebCore/PAL: * pal/ios/UIKitSoftLink.h: * pal/ios/UIKitSoftLink.mm: - Add soft linking of UIGraphics{GetCurrent,Pop,Push}Context() functions. Source/WebKit: * UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::convertPlatformImageToBitmap): - Use LocalCurrentGraphicsContext for both iOS and Mac code paths. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: - Switch from PLATFORM(MAC) and PLATFORM(IOS_FAMIY) to USE(APPKIT) to separate platform code. (WebKit::convertDragImageToBitmap): (WebKit::convertImageToBitmap): Delete. (WebKit::convertCGImageToBitmap): Delete. - Combine Mac-specific convertImageToBitmap() and iOS-specific convertCGImageToBitmap() into a single method using DragImage type and special-casing one line of code. (WebKit::WebDragClient::startDrag): (WebKit::WebDragClient::didConcludeEditDrag): - Combine iOS and Mac methods into a singe method. Canonical link: https://commits.webkit.org/224588@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-09 23:10:41 +00:00
platform/mac/LocalCurrentGraphicsContextMac.mm
platform/mac/LoggingMac.mm
platform/mac/MediaRemoteSoftLink.mm
platform/mac/NSScrollerImpDetails.mm
platform/mac/PasteboardMac.mm
platform/mac/PasteboardWriter.mm
platform/mac/PlatformEventFactoryMac.mm
platform/mac/PlatformPasteboardMac.mm
platform/mac/PlatformScreenMac.mm
platform/mac/PlatformSpeechSynthesizerMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
platform/mac/PowerObserverMac.cpp
platform/mac/PublicSuffixMac.mm
platform/mac/SSLKeyGeneratorMac.mm
platform/mac/ScrollAnimatorMac.mm
Pull Mac-only code out of ScrollController https://bugs.webkit.org/show_bug.cgi?id=221462 <rdar://problem/74273853> Patch by Martin Robinson <mrobinson@igalia.com> on 2021-02-15 Reviewed by Simon Fraser. No new tests. This should not change behavior. Split out Mac-specific code from ScrollController and prepare it for use on non-Cocoa platforms. This code must be pulled out primarily because it is Objective-C++ code and should maintain the .mm extension. The idea here is to isolate the basic platform-independent scroll snapping code and gradually make the rest (related to handling wheel events) more-and-more platform-independent. * PlatformMac.cmake: Update source list. * Sources.txt: Ditto. * SourcesCocoa.txt: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * page/scrolling/ScrollingMomentumCalculator.cpp: Guard code with ENABLE(CSS_SCROLL_SNAP). * platform/ScrollController.cpp: Added. This file contains only the platform-independent scroll snapping code that will be used to add initial scroll snap support to other ports. * platform/ScrollController.h: Renamed from Source/WebCore/platform/cocoa/ScrollController.h. * platform/ScrollSnapAnimatorState.cpp: Renamed from Source/WebCore/platform/cocoa/ScrollSnapAnimatorState.mm. * platform/ScrollSnapAnimatorState.h: Renamed from Source/WebCore/platform/cocoa/ScrollSnapAnimatorState.h. * platform/graphics/cg/GraphicsContextGLCG.cpp: Fix unified source build issue exposed by this change. * platform/mac/ScrollController.mm: Renamed from Source/WebCore/platform/cocoa/ScrollController.mm. * platform/mac/VideoFullscreenInterfaceMac.mm: Fix unified source build issue. Canonical link: https://commits.webkit.org/234111@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@272878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-02-15 21:48:10 +00:00
platform/mac/ScrollController.mm
platform/mac/ScrollViewMac.mm
platform/mac/ScrollbarThemeMac.mm
Rename SerializedPlatformRepresentation to SerializedPlatformDataCue https://bugs.webkit.org/show_bug.cgi?id=207695 <rdar://problem/59422673> Reviewed by Youenn Fablet. No new tests, no functional change. * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/track/DataCue.cpp: (WebCore::DataCue::DataCue): (WebCore::DataCue::cueContentsMatch const): * html/track/DataCue.h: * html/track/InbandDataTextTrack.cpp: (WebCore::InbandDataTextTrack::addDataCue): (WebCore::InbandDataTextTrack::updateDataCue): (WebCore::InbandDataTextTrack::removeDataCue): (WebCore::InbandDataTextTrack::removeCue): * html/track/InbandDataTextTrack.h: * html/track/InbandTextTrack.h: * platform/SerializedPlatformDataCue.h: Renamed from Source/WebCore/platform/SerializedPlatformRepresentation.h. * platform/graphics/InbandTextTrackPrivateClient.h: * platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.cpp: (WebCore::InbandMetadataTextTrackPrivateAVF::addDataCue): * platform/graphics/avfoundation/InbandMetadataTextTrackPrivateAVF.h: * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::metadataDidArrive): * platform/mac/SerializedPlatformDataCueMac.h: Renamed from Source/WebCore/platform/mac/SerializedPlatformRepresentationMac.h. (WebCore::SerializedPlatformDataCueMac::nativeValue const): * platform/mac/SerializedPlatformDataCueMac.mm: Renamed from Source/WebCore/platform/mac/SerializedPlatformRepresentationMac.mm. (WebCore::SerializedPlatformDataCueMac::SerializedPlatformDataCueMac): (WebCore::SerializedPlatformDataCueMac::~SerializedPlatformDataCueMac): (WebCore::SerializedPlatformDataCueMac::create): (WebCore::SerializedPlatformDataCueMac::data const): (WebCore::SerializedPlatformDataCueMac::deserialize const): (WebCore::SerializedPlatformDataCueMac::isEqual const): (WebCore::toSerializedPlatformDataCueMac): (WebCore::jsValueWithValueInContext): (WebCore::jsValueWithDataInContext): (WebCore::jsValueWithArrayInContext): (WebCore::jsValueWithDictionaryInContext): (WebCore::jsValueWithAVMetadataItemInContext): Canonical link: https://commits.webkit.org/220683@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-13 21:40:08 +00:00
platform/mac/SerializedPlatformDataCueMac.mm
platform/mac/StringUtilities.mm
platform/mac/SuddenTermination.mm
platform/mac/ThemeMac.mm
platform/mac/ThreadCheck.mm
platform/mac/UserActivityMac.mm
platform/mac/ValidationBubbleMac.mm
platform/mac/WebCoreFullScreenPlaceholderView.mm
platform/mac/WebCoreFullScreenWarningView.mm
platform/mac/WebCoreFullScreenWindow.mm
platform/mac/WebCoreNSURLExtras.mm
platform/mac/WebCoreObjCExtras.mm
platform/mac/WebNSAttributedStringExtras.mm
platform/mac/WidgetMac.mm
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mediastream/libwebrtc/LibWebRTCAudioModule.cpp
[MediaStream] Add mock audio and video sources https://bugs.webkit.org/show_bug.cgi?id=150997 <rdar://problem/23453358> Reviewed by Jer Noble. Create basic mock audio and video realtime media source classes so we can test MediaStream API without requiring test machines to have audio/video input hardware. No new tests added yet, thoe will follow. No new tests, these changes will allow us to write MediaStream tests. * CMakeLists.txt: Add MockRealtimeAudioSource.cpp, MockRealtimeMediaSource.cpp, and MockRealtimeVideoSource.cpp * PlatformMac.cmake: Add MockRealtimeVideoSourceMac.mm * WebCore.xcodeproj/project.pbxproj: Add new files. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::createPreviewLayers): Don't set autoresizingMask, it isn't necessary. * platform/mediastream/mac/AVCaptureDeviceManager.mm: (WebCore::refreshCaptureDeviceList): AVCaptureDevice -> getAVCaptureDeviceClass() (WebCore::AVCaptureDeviceManager::bestDeviceForFacingMode): Ditto. (WebCore::AVCaptureDeviceManager::sourceWithUID): Ditto. Mac class implements RealtimeVideoSource::platformLayer, returns a CALayer which uses the GraphicsContext as contents. * platform/mediastream/mac/MockRealtimeVideoSourceMac.h: Added. * platform/mediastream/mac/MockRealtimeVideoSourceMac.mm: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSourceMac::MockRealtimeVideoSourceMac): (WebCore::MockRealtimeVideoSourceMac::platformLayer): (WebCore::MockRealtimeVideoSourceMac::updatePlatformLayer): Mock audio source. Doesn't provide data yet, only provides states and capabilities. * platform/mock/MockRealtimeAudioSource.cpp: Added. (WebCore::MockRealtimeAudioSource::create): (WebCore::MockRealtimeAudioSource::MockRealtimeAudioSource): (WebCore::MockRealtimeAudioSource::updateStates): (WebCore::MockRealtimeAudioSource::initializeCapabilities): * platform/mock/MockRealtimeAudioSource.h: Added. (WebCore::MockRealtimeAudioSource::~MockRealtimeAudioSource): Mock source base class, sets persistent ID and updates states and capabilities. * platform/mock/MockRealtimeMediaSource.cpp: Added. (WebCore::MockRealtimeMediaSource::mockAudioPersistentID): (WebCore::MockRealtimeMediaSource::mockVideoPersistentID): (WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::capabilities): (WebCore::MockRealtimeMediaSource::states): * platform/mock/MockRealtimeMediaSource.h: Added. (WebCore::MockRealtimeMediaSource::mockAudioSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockAudioSourceName): (WebCore::MockRealtimeMediaSource::mockVideoSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockVideoSourceName): (WebCore::MockRealtimeMediaSource::trackSourceWithUID): (WebCore::MockRealtimeMediaSource::~MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::currentStates): (WebCore::MockRealtimeMediaSource::constraints): Use new mock source classes. Create a new source instance for each request instead of reusing the same sources each time. * platform/mock/MockRealtimeMediaSourceCenter.cpp: (WebCore::mockSourceMap): (WebCore::MockRealtimeMediaSourceCenter::registerMockRealtimeMediaSourceCenter): (WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints): (WebCore::MockRealtimeMediaSourceCenter::createMediaStream): (WebCore::MockRealtimeMediaSourceCenter::getMediaStreamTrackSources): (WebCore::MockSource::MockSource): Deleted. (WebCore::MockSource::~MockSource): Deleted. (WebCore::MockSource::capabilities): Deleted. (WebCore::MockSource::states): Deleted. (WebCore::mockAudioSourceID): Deleted. (WebCore::mockVideoSourceID): Deleted. (WebCore::initializeMockSources): Deleted. Mock video source. Generate bip-bop inspired frames with burned in state information. * platform/mock/MockRealtimeVideoSource.cpp: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::startProducingData): (WebCore::MockRealtimeVideoSource::stopProducingData): (WebCore::MockRealtimeVideoSource::elapsedTime): (WebCore::MockRealtimeVideoSource::updateStates): (WebCore::MockRealtimeVideoSource::initializeCapabilities): (WebCore::MockRealtimeVideoSource::setFacingMode): (WebCore::MockRealtimeVideoSource::setFrameRate): (WebCore::MockRealtimeVideoSource::setSize): (WebCore::MockRealtimeVideoSource::drawAnimation): (WebCore::MockRealtimeVideoSource::drawBoxes): (WebCore::MockRealtimeVideoSource::drawText): (WebCore::MockRealtimeVideoSource::generateFrame): (WebCore::MockRealtimeVideoSource::imageBuffer): (WebCore::MockRealtimeVideoSource::paintCurrentFrameInContext): (WebCore::MockRealtimeVideoSource::currentFrameImage): * platform/mock/MockRealtimeVideoSource.h: Added. (WebCore::MockRealtimeVideoSource::~MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::size): (WebCore::MockRealtimeVideoSource::updatePlatformLayer): Canonical link: https://commits.webkit.org/169251@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-11-09 21:20:08 +00:00
platform/mediastream/mac/MockRealtimeVideoSourceMac.mm
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.cpp
platform/mediastream/mac/RealtimeOutgoingVideoSourceCocoa.mm
[MediaStream] Add mock audio and video sources https://bugs.webkit.org/show_bug.cgi?id=150997 <rdar://problem/23453358> Reviewed by Jer Noble. Create basic mock audio and video realtime media source classes so we can test MediaStream API without requiring test machines to have audio/video input hardware. No new tests added yet, thoe will follow. No new tests, these changes will allow us to write MediaStream tests. * CMakeLists.txt: Add MockRealtimeAudioSource.cpp, MockRealtimeMediaSource.cpp, and MockRealtimeVideoSource.cpp * PlatformMac.cmake: Add MockRealtimeVideoSourceMac.mm * WebCore.xcodeproj/project.pbxproj: Add new files. * platform/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm: (WebCore::MediaPlayerPrivateMediaStreamAVFObjC::createPreviewLayers): Don't set autoresizingMask, it isn't necessary. * platform/mediastream/mac/AVCaptureDeviceManager.mm: (WebCore::refreshCaptureDeviceList): AVCaptureDevice -> getAVCaptureDeviceClass() (WebCore::AVCaptureDeviceManager::bestDeviceForFacingMode): Ditto. (WebCore::AVCaptureDeviceManager::sourceWithUID): Ditto. Mac class implements RealtimeVideoSource::platformLayer, returns a CALayer which uses the GraphicsContext as contents. * platform/mediastream/mac/MockRealtimeVideoSourceMac.h: Added. * platform/mediastream/mac/MockRealtimeVideoSourceMac.mm: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSourceMac::MockRealtimeVideoSourceMac): (WebCore::MockRealtimeVideoSourceMac::platformLayer): (WebCore::MockRealtimeVideoSourceMac::updatePlatformLayer): Mock audio source. Doesn't provide data yet, only provides states and capabilities. * platform/mock/MockRealtimeAudioSource.cpp: Added. (WebCore::MockRealtimeAudioSource::create): (WebCore::MockRealtimeAudioSource::MockRealtimeAudioSource): (WebCore::MockRealtimeAudioSource::updateStates): (WebCore::MockRealtimeAudioSource::initializeCapabilities): * platform/mock/MockRealtimeAudioSource.h: Added. (WebCore::MockRealtimeAudioSource::~MockRealtimeAudioSource): Mock source base class, sets persistent ID and updates states and capabilities. * platform/mock/MockRealtimeMediaSource.cpp: Added. (WebCore::MockRealtimeMediaSource::mockAudioPersistentID): (WebCore::MockRealtimeMediaSource::mockVideoPersistentID): (WebCore::MockRealtimeMediaSource::MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::capabilities): (WebCore::MockRealtimeMediaSource::states): * platform/mock/MockRealtimeMediaSource.h: Added. (WebCore::MockRealtimeMediaSource::mockAudioSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockAudioSourceName): (WebCore::MockRealtimeMediaSource::mockVideoSourcePersistentID): (WebCore::MockRealtimeMediaSource::mockVideoSourceName): (WebCore::MockRealtimeMediaSource::trackSourceWithUID): (WebCore::MockRealtimeMediaSource::~MockRealtimeMediaSource): (WebCore::MockRealtimeMediaSource::currentStates): (WebCore::MockRealtimeMediaSource::constraints): Use new mock source classes. Create a new source instance for each request instead of reusing the same sources each time. * platform/mock/MockRealtimeMediaSourceCenter.cpp: (WebCore::mockSourceMap): (WebCore::MockRealtimeMediaSourceCenter::registerMockRealtimeMediaSourceCenter): (WebCore::MockRealtimeMediaSourceCenter::validateRequestConstraints): (WebCore::MockRealtimeMediaSourceCenter::createMediaStream): (WebCore::MockRealtimeMediaSourceCenter::getMediaStreamTrackSources): (WebCore::MockSource::MockSource): Deleted. (WebCore::MockSource::~MockSource): Deleted. (WebCore::MockSource::capabilities): Deleted. (WebCore::MockSource::states): Deleted. (WebCore::mockAudioSourceID): Deleted. (WebCore::mockVideoSourceID): Deleted. (WebCore::initializeMockSources): Deleted. Mock video source. Generate bip-bop inspired frames with burned in state information. * platform/mock/MockRealtimeVideoSource.cpp: Added. (WebCore::MockRealtimeVideoSource::create): (WebCore::MockRealtimeVideoSource::MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::startProducingData): (WebCore::MockRealtimeVideoSource::stopProducingData): (WebCore::MockRealtimeVideoSource::elapsedTime): (WebCore::MockRealtimeVideoSource::updateStates): (WebCore::MockRealtimeVideoSource::initializeCapabilities): (WebCore::MockRealtimeVideoSource::setFacingMode): (WebCore::MockRealtimeVideoSource::setFrameRate): (WebCore::MockRealtimeVideoSource::setSize): (WebCore::MockRealtimeVideoSource::drawAnimation): (WebCore::MockRealtimeVideoSource::drawBoxes): (WebCore::MockRealtimeVideoSource::drawText): (WebCore::MockRealtimeVideoSource::generateFrame): (WebCore::MockRealtimeVideoSource::imageBuffer): (WebCore::MockRealtimeVideoSource::paintCurrentFrameInContext): (WebCore::MockRealtimeVideoSource::currentFrameImage): * platform/mock/MockRealtimeVideoSource.h: Added. (WebCore::MockRealtimeVideoSource::~MockRealtimeVideoSource): (WebCore::MockRealtimeVideoSource::size): (WebCore::MockRealtimeVideoSource::updatePlatformLayer): Canonical link: https://commits.webkit.org/169251@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@192174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-11-09 21:20:08 +00:00
Web Inspector: Network: show secure certificate details per-request https://bugs.webkit.org/show_bug.cgi?id=191447 <rdar://problem/30019476> Reviewed by Joseph Pecoraro. Source/JavaScriptCore: Add Security domain to hold security related protocol types. * CMakeLists.txt: * DerivedSources.make: * inspector/protocol/Network.json: * inspector/protocol/Security.json: Added. * inspector/scripts/codegen/objc_generator.py: (ObjCGenerator): Source/WebCore: Test: http/tests/inspector/network/resource-response-security.html * loader/ResourceLoader.h: (WebCore::ResourceLoader::shouldIncludeCertificateInfo const): * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::shouldIncludeCertificateInfo const): Added. Always save certificate information when WebInspector is open. * platform/network/CertificateInfoBase.h: Added. (WebCore::CertificateInfoBase::containsNonRootSHA1SignedCertificate const): (WebCore::CertificateInfoBase::summaryInfo const): (WebCore::CertificateInfoBase::isEmpty const): * platform/network/cf/CertificateInfo.h: (WebCore::CertificateInfo::summaryInfo const): Added. * platform/network/cf/CertificateInfoCFNet.cpp: Renamed from Source/WebCore/platform/network/mac/CertificateInfoMac.mm. (WebCore::CertificateInfo::containsNonRootSHA1SignedCertificate): (WebCore::CertificateInfo::summaryInfo const): Added. * platform/network/curl/CertificateInfo.h: (WebCore::CertificateInfo::summaryInfo const): Added. (WebCore::CertificateInfo::isEmpty const): Added. * platform/network/soup/CertificateInfo.h: (WebCore::CertificateInfo::summaryInfo const): Added. (WebCore::CertificateInfo::isEmpty const): Added. Create base class for `CertificateInfo` so that `InspectorNetworkAgent` doesn't need to have platform-specific code in its implementation. * platform/network/cocoa/CertificateInfoCocoa.mm: Renamed from Source/WebCore/platform/network/mac/CertificateInfoMac.mm. * platform/network/curl/CertificateInfoCFNet.cpp: Renamed from Source/WebCore/platform/network/curl/CertificateInfo.cpp. * platform/network/soup/CertificateInfoSoup.cpp: Renamed from Source/WebCore/platform/network/soup/CertificateInfo.cpp. * inspector/NetworkResourcesData.h: (WebCore::NetworkResourcesData::ResourceData::certificateInfo const): Added. (WebCore::NetworkResourcesData::ResourceData::setCertificateInfo): Added. * inspector/NetworkResourcesData.cpp: (WebCore::NetworkResourcesData::responseReceived): * inspector/agents/InspectorNetworkAgent.cpp: (WebCore::InspectorNetworkAgent::buildObjectForResourceResponse): * PlatformAppleWin.cmake: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/Curl.cmake: * platform/SourcesSoup.txt: Source/WebInspectorUI: * UserInterface/Controllers/NetworkManager.js: (WI.NetworkManager.prototype.resourceRequestWasServedFromMemoryCache): (WI.NetworkManager.prototype.resourceRequestDidReceiveResponse): * UserInterface/Models/Resource.js: (WI.Resource.prototype.get responseSecurity): Added. (WI.Resource.prototype.get loadedSecurely): Added. (WI.Resource.prototype.updateForResponse): * UserInterface/Views/NetworkResourceDetailView.js: (WI.NetworkResourceDetailView): (WI.NetworkResourceDetailView.prototype.initialLayout): (WI.NetworkResourceDetailView.prototype.showContentViewForIdentifier): * UserInterface/Views/NetworkResourceDetailView.css: (.content-view.resource-details .go-to-arrow): Added. (.content-view.resource-details.showing-find-banner .search-highlight): Added. * UserInterface/Views/ResourceSecurityContentView.js: Added. (WI.ResourceSecurityContentView): (WI.ResourceSecurityContentView.prototype.initialLayout): (WI.ResourceSecurityContentView.prototype.layout): (WI.ResourceSecurityContentView.prototype.closed): (WI.ResourceSecurityContentView.prototype.get supportsSearch): (WI.ResourceSecurityContentView.prototype.get numberOfSearchResults): (WI.ResourceSecurityContentView.prototype.get hasPerformedSearch): (WI.ResourceSecurityContentView.prototype.set automaticallyRevealFirstSearchResult): (WI.ResourceSecurityContentView.prototype.performSearch): (WI.ResourceSecurityContentView.prototype.searchCleared): (WI.ResourceSecurityContentView.prototype.revealPreviousSearchResult): (WI.ResourceSecurityContentView.prototype.revealNextSearchResult): (WI.ResourceSecurityContentView.prototype._refreshCetificateSection): (WI.ResourceSecurityContentView.prototype._perfomSearchOnKeyValuePairs): (WI.ResourceSecurityContentView.prototype._revealSearchResult): (WI.ResourceSecurityContentView.prototype._handleResourceResponseReceived): * UserInterface/Views/ResourceSecurityContentView.css: Added. (body[dir] .resource-security > section.certificate > .details): (.resource-security .details .key): (.resource-security .dns-name + .dns-name > .key,): (.resource-security .show-more): (@media (prefers-dark-interface) body[dir] .resource-security > section.certificate > .details): (@media (prefers-dark-interface) .resource-security .details .key): * UserInterface/Views/ResourceCookiesContentView.js: (WI.ResourceCookiesContentView.prototype._refreshRequestCookiesSection): (WI.ResourceCookiesContentView.prototype._refreshResponseCookiesSection): (WI.ResourceCookiesContentView.prototype._markIncompleteSectionWithMessage): Deleted. (WI.ResourceCookiesContentView.prototype._markIncompleteSectionWithLoadingIndicator): Deleted. * UserInterface/Views/ResourceHeadersContentView.js: (WI.ResourceHeadersContentView.prototype._refreshSummarySection): (WI.ResourceHeadersContentView.prototype._refreshRedirectHeadersSections): (WI.ResourceHeadersContentView.prototype._refreshRequestHeadersSection): (WI.ResourceHeadersContentView.prototype._refreshResponseHeadersSection): (WI.ResourceHeadersContentView.prototype._refreshQueryStringSection): (WI.ResourceHeadersContentView.prototype._refreshRequestDataSection): (WI.ResourceHeadersContentView.prototype._markIncompleteSectionWithMessage): Deleted. (WI.ResourceHeadersContentView.prototype._markIncompleteSectionWithLoadingIndicator): Deleted. (WI.ResourceHeadersContentView.prototype._appendKeyValuePair): Deleted. * UserInterface/Views/ResourceHeadersContentView.css: (.resource-headers .h1-status > .key,): (body[dir] .resource-headers > section.error > .details): Deleted. (.resource-headers > section.error .key): Deleted. (.resource-headers .details): Deleted. (.resource-headers .details .pair): Deleted. (body[dir=rtl] .resource-headers .details .pair): Deleted. (.resource-headers .details .key): Deleted. (.resource-headers .value): Deleted. (.resource-headers .go-to-arrow): Deleted. (.resource-headers.showing-find-banner .search-highlight): Deleted. * UserInterface/Views/ResourceDetailsSection.js: (WI.ResourceDetailsSection.prototype.markIncompleteSectionWithMessage): Added. (WI.ResourceDetailsSection.prototype.markIncompleteSectionWithLoadingIndicator): Added. (WI.ResourceDetailsSection.prototype.appendKeyValuePair): Added. * UserInterface/Views/ResourceDetailsSection.css: (.resource-details > section > .details): Added. (.resource-details > section > .details > .pair): Added. (body[dir=rtl] .resource-details > section > .details > .pair): Added. (.resource-details > section > .details > .pair > .key): Added. (.resource-details > section > .details > .pair > .value): Added. (body[dir] .resource-details > section.error > .details): Added. (.resource-details > section.error > .details > .pair > .key): Added. Move commonly used functions/styles from container classes onto this object. * UserInterface/Main.html: * Localizations/en.lproj/localizedStrings.js: LayoutTests: * http/tests/inspector/network/resource-response-security-expected.txt: Added. * http/tests/inspector/network/resource-response-security.html: Added. * platform/gtk/TestExpectations: * platform/wincairo/TestExpectations: * platform/wpe/TestExpectations: Canonical link: https://commits.webkit.org/206331@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238122 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-11-13 07:07:21 +00:00
platform/network/cf/CertificateInfoCFNet.cpp
Make NetworkRTCResolver port agnostic https://bugs.webkit.org/show_bug.cgi?id=178855 Patch by Alejandro G. Castro <alex@igalia.com> on 2018-03-07 Reviewed by Youenn Fablet. Source/WebCore: Add new API in the DNSResolveQueue allowing to revolve hostnames and get the result. Add platform specific code for soup platform and refactor the other platforms. Added new API to the DNS API header and move the general code to the DNS.cpp file, that way we can reuse that code in all the platforms and leave the ResolveQueue class of the platforms in a file. No new tests because this is a refactor. * PlatformAppleWin.cmake: Move the DNSCFNet class to DNSResolveQueueCFNet. * PlatformMac.cmake: Ditto. * Sources.txt: Add the DNS.cpp for compilation. * SourcesCocoa.txt: Move the DNSCFNet class to DNSResolveQueueCFNet. * WebCore.xcodeproj/project.pbxproj: Move the DNSCFNet class to DNSResolveQueueCFNet, add the DNS.cpp for compilation. Add the new DNSResolveQueueCFNet class. * platform/Curl.cmake: Move the DNSCFNet class to DNSResolveQueueCurl. * platform/network/DNS.cpp: Add this file with the default implementation of the DNS functions for all the platforms. (WebCore::prefetchDNS): Copied from every platform implementation. (WebCore::resolveDNS): Add the function, resolves a hostname, receives the identifier of the operation and the completion handler. (WebCore::stopResolveDNS): Add the function, stops a resolution operation, receives the identifier of the operation. * platform/network/DNS.h: Add the new APIs resolveDNS and stopResolveDNS with the classes used for the implementation. (WebCore::IPAddress::IPAddress): Add this class used to send the resolved address information, it does not depend on libwebrtc rtc classes. (WebCore::IPAddress::get): Get a reference to the struct sockaddr_in in the IPAddress class. (WebCore::DNSCompletionHandler): Add this CompletionHandler type to be used when resolving the DNS address. * platform/network/DNSResolveQueue.cpp: Add the DNSResolveQueue platform instantiation in the singleton. (WebCore::DNSResolveQueue::singleton): Use DNSResolveQueue platform classes when creating the singleton.. (WebCore::DNSResolveQueue::resolve): Add this method to get the address of a hostname, it sends the identifier and the completion handler to use when returning the result. (WebCore::DNSResolveQueue::stopResolve): Add this method to stop the resolve operation when required. * platform/network/DNSResolveQueue.h: Add the new methods and make the class abstract, so that every platform can implement the functions. * platform/network/cf/DNSResolveQueueCFNet.cpp: Renamed from Source/WebCore/platform/network/cf/DNSCFNet.cpp. Add the methods to the new class DNSResolveQueueCFNet, move the prefetchDNS to the DNS.cpp general implementation. * platform/network/cf/DNSResolveQueueCFNet.h: Add the new class inheriting from the DNSResolveQueue. Add the new methods, we have to implement these methods and move the NetworkRTCResolver for COCOA code here. (WebCore::DNSResolveQueueCF::resolve): Dummy method, not implemented. (WebCore::DNSResolveQueueCF::stopResolve): Ditto. * platform/network/curl/DNSResolveQueueCurl.cpp: Renamed from Source/WebCore/platform/network/curl/DNSCurl.cpp. * platform/network/curl/DNSResolveQueueCurl.h: Add the new class inheriting from the DNSResolveQueue. (WebCore::DNSResolveQueueCurl::resolve): Ditto. (WebCore::DNSResolveQueueCurl::stopResolve): Ditto. * platform/network/soup/DNSResolveQueueSoup.h: New class inheriting from the DNSResolveQueue class, adding a HasMap with the active operations, it allows stopping them. * platform/network/soup/DNSResolveQueueSoup.cpp: Renamed from Source/WebCore/platform/network/curl/DNSSoup.cpp. (WebCore::resolvedWithObserverCallback): Called when the result address from the soup platform is ready, sends the address to the completion handler. (WebCore::DNSResolveQueueSoup::resolve): Launch the resolve operation with the soup library. (WebCore::DNSResolveQueueSoup::stopResolve): Stop the resolve operation on process with a GCancellable. Source/WebKit: Create a specific Cocoa class to isolate the generic code in the base class, make the base implementation port agnostic and dependent on DNS API in the platform directory which encapsulates the platform specific details. * NetworkProcess/webrtc/NetworkRTCProvider.cpp: Create an alias class name defined per platform to instantiate the resolver. (WebKit::NetworkRTCProvider::createResolver): Used the alias class name and receive a new IPAddress class that is not dependent on rtc libwebrtc library. * NetworkProcess/webrtc/NetworkRTCResolver.cpp: Remove the platform specific code. Use the DNS API to implement the platform specific code in the default start and stop methods. Add the identifier of the resolve operation to the class. (WebKit::NetworkRTCResolver::NetworkRTCResolver): Add the identifier in the initialization. (WebKit::NetworkRTCResolver::~NetworkRTCResolver): Remove the platform specific code. (WebKit::NetworkRTCResolver::completed): Ditto. (WebKit::NetworkRTCResolver::start): Add a new implementation using the DNS API. (WebKit::NetworkRTCResolver::stop): Ditto * NetworkProcess/webrtc/NetworkRTCResolver.h: Remove the platform specific code and use the DNSResolveQueue for a general solution to implement the platform specific code. Avoid using the IPAddress class that depends on libwertc classes to make it more general regarding DNS name resolution. (WebKit::NetworkRTCResolver::start): Make this class virtual. (WebKit::NetworkRTCResolver::stop): Ditto. * NetworkProcess/webrtc/NetworkRTCResolverCocoa.cpp: Copied Cocoa code from Source/WebKit/NetworkProcess/webrtc/NetworkRTCResolver.cpp. Now this class overrides the start and stop methods that use DNS, cocoa implementation should use the DNS methods in the future and remove this class, making sure all the platform specific class is in the platform directory. * NetworkProcess/webrtc/NetworkRTCResolverCocoa.h: Copied Cocoa code from Source/WebKit/NetworkProcess/webrtc/NetworkRTCResolver.h. * PlatformGTK.cmake: Add NetworkRTCResolver compilation for GTK. * WebKit.xcodeproj/project.pbxproj: Add the NetworkRTCResolverCocoa class to the compilation. Tools: Added new unit tests for he resolve and stopResolve functions. We need to compile them for the other platforms when the APIs are supported. * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/Tests/WebCore/DNS.cpp: Canonical link: https://commits.webkit.org/199068@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@229359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-03-07 15:21:24 +00:00
platform/network/cf/DNSResolveQueueCFNet.cpp
platform/network/cf/FormDataStreamCFNet.cpp
platform/network/cf/NetworkStorageSessionCFNet.cpp
platform/network/cf/ProxyServerCFNet.cpp
platform/network/cf/ResourceRequestCFNet.cpp
Rename SocketStreamHandleBase to SocketStreamHandle and SocketStreamHandle to SocketStreamHandleImpl https://bugs.webkit.org/show_bug.cgi?id=160858 Reviewed by Brady Eidson. Source/WebCore: No new tests. No change in behavior, except GTK's SocketStreamHandleImpl is now safely ThreadSafeRefCounted. This is preparation for making a new kind of SocketStreamHandle which is a proxy that communicates with the NetworkProcess in WebKit2. * CMakeLists.txt: * PlatformAppleWin.cmake: * PlatformEfl.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWinCairo.cmake: * WebCore.xcodeproj/project.pbxproj: * page/SocketProvider.cpp: (WebCore::SocketProvider::createSocketStreamHandle): * platform/network/SocketStreamHandle.cpp: Copied from Source/WebCore/platform/network/SocketStreamHandleBase.cpp. (WebCore::SocketStreamHandle::SocketStreamHandle): (WebCore::SocketStreamHandle::state): (WebCore::SocketStreamHandle::send): (WebCore::SocketStreamHandle::close): (WebCore::SocketStreamHandle::disconnect): (WebCore::SocketStreamHandle::sendPendingData): (WebCore::SocketStreamHandleBase::SocketStreamHandleBase): Deleted. (WebCore::SocketStreamHandleBase::state): Deleted. (WebCore::SocketStreamHandleBase::send): Deleted. (WebCore::SocketStreamHandleBase::close): Deleted. (WebCore::SocketStreamHandleBase::disconnect): Deleted. (WebCore::SocketStreamHandleBase::sendPendingData): Deleted. * platform/network/SocketStreamHandle.h: Copied from Source/WebCore/platform/network/SocketStreamHandleBase.h. (WebCore::SocketStreamHandle::~SocketStreamHandle): (WebCore::SocketStreamHandle::client): (WebCore::SocketStreamHandleBase::~SocketStreamHandleBase): Deleted. (WebCore::SocketStreamHandleBase::client): Deleted. * platform/network/SocketStreamHandleBase.cpp: Removed. * platform/network/SocketStreamHandleBase.h: Removed. * platform/network/cf/SocketStreamHandle.h: Removed. * platform/network/cf/SocketStreamHandleCFNet.cpp: Removed. * platform/network/cf/SocketStreamHandleImpl.h: Copied from Source/WebCore/platform/network/cf/SocketStreamHandle.h. (WebCore::SocketStreamHandleImpl::create): (WebCore::SocketStreamHandle::create): Deleted. * platform/network/cf/SocketStreamHandleImplCFNet.cpp: Copied from Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp. (WebCore::SocketStreamHandleImpl::SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::scheduleStreams): (WebCore::SocketStreamHandleImpl::retainSocketStreamHandle): (WebCore::SocketStreamHandleImpl::releaseSocketStreamHandle): (WebCore::SocketStreamHandleImpl::copyPACExecutionDescription): (WebCore::SocketStreamHandleImpl::pacExecutionCallback): (WebCore::SocketStreamHandleImpl::executePACFileURL): (WebCore::SocketStreamHandleImpl::removePACRunLoopSource): (WebCore::SocketStreamHandleImpl::chooseProxy): (WebCore::SocketStreamHandleImpl::chooseProxyFromArray): (WebCore::SocketStreamHandleImpl::createStreams): (WebCore::SocketStreamHandleImpl::getStoredCONNECTProxyCredentials): (WebCore::authenticationSchemeFromAuthenticationMethod): (WebCore::SocketStreamHandleImpl::addCONNECTCredentials): (WebCore::SocketStreamHandleImpl::copyCFStreamDescription): (WebCore::SocketStreamHandleImpl::readStreamCallback): (WebCore::SocketStreamHandleImpl::writeStreamCallback): (WebCore::SocketStreamHandleImpl::reportErrorToClient): (WebCore::SocketStreamHandleImpl::~SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::platformSend): (WebCore::SocketStreamHandleImpl::platformClose): (WebCore::SocketStreamHandleImpl::port): (WebCore::SocketStreamHandle::SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::scheduleStreams): Deleted. (WebCore::SocketStreamHandle::retainSocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::releaseSocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::copyPACExecutionDescription): Deleted. (WebCore::SocketStreamHandle::pacExecutionCallback): Deleted. (WebCore::SocketStreamHandle::executePACFileURL): Deleted. (WebCore::SocketStreamHandle::removePACRunLoopSource): Deleted. (WebCore::SocketStreamHandle::chooseProxy): Deleted. (WebCore::SocketStreamHandle::chooseProxyFromArray): Deleted. (WebCore::SocketStreamHandle::createStreams): Deleted. (WebCore::SocketStreamHandle::getStoredCONNECTProxyCredentials): Deleted. (WebCore::SocketStreamHandle::addCONNECTCredentials): Deleted. (WebCore::SocketStreamHandle::copyCFStreamDescription): Deleted. (WebCore::SocketStreamHandle::readStreamCallback): Deleted. (WebCore::SocketStreamHandle::writeStreamCallback): Deleted. (WebCore::SocketStreamHandle::reportErrorToClient): Deleted. (WebCore::SocketStreamHandle::~SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::platformSend): Deleted. (WebCore::SocketStreamHandle::platformClose): Deleted. (WebCore::SocketStreamHandle::port): Deleted. * platform/network/curl/SocketStreamHandle.h: Removed. * platform/network/curl/SocketStreamHandleCurl.cpp: Removed. * platform/network/curl/SocketStreamHandleImpl.h: Copied from Source/WebCore/platform/network/curl/SocketStreamHandle.h. (WebCore::SocketStreamHandleImpl::create): (WebCore::SocketStreamHandle::create): Deleted. * platform/network/curl/SocketStreamHandleImplCurl.cpp: Copied from Source/WebCore/platform/network/curl/SocketStreamHandleCurl.cpp. (WebCore::SocketStreamHandleImpl::SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::~SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::platformSend): (WebCore::SocketStreamHandleImpl::platformClose): (WebCore::SocketStreamHandleImpl::readData): (WebCore::SocketStreamHandleImpl::sendData): (WebCore::SocketStreamHandleImpl::waitForAvailableData): (WebCore::SocketStreamHandleImpl::startThread): (WebCore::SocketStreamHandleImpl::stopThread): (WebCore::SocketStreamHandleImpl::didReceiveData): (WebCore::SocketStreamHandleImpl::didOpenSocket): (WebCore::SocketStreamHandleImpl::createCopy): (WebCore::SocketStreamHandle::SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::~SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::platformSend): Deleted. (WebCore::SocketStreamHandle::platformClose): Deleted. (WebCore::SocketStreamHandle::readData): Deleted. (WebCore::SocketStreamHandle::sendData): Deleted. (WebCore::SocketStreamHandle::waitForAvailableData): Deleted. (WebCore::SocketStreamHandle::startThread): Deleted. (WebCore::SocketStreamHandle::stopThread): Deleted. (WebCore::SocketStreamHandle::didReceiveData): Deleted. (WebCore::SocketStreamHandle::didOpenSocket): Deleted. (WebCore::SocketStreamHandle::createCopy): Deleted. * platform/network/soup/SocketStreamHandle.h: Removed. * platform/network/soup/SocketStreamHandleImpl.h: Copied from Source/WebCore/platform/network/soup/SocketStreamHandle.h. * platform/network/soup/SocketStreamHandleImplSoup.cpp: Copied from Source/WebCore/platform/network/soup/SocketStreamHandleSoup.cpp. (WebCore::SocketStreamHandleImpl::create): (WebCore::SocketStreamHandleImpl::SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::~SocketStreamHandleImpl): (WebCore::SocketStreamHandleImpl::connected): (WebCore::SocketStreamHandleImpl::connectedCallback): (WebCore::SocketStreamHandleImpl::readBytes): (WebCore::SocketStreamHandleImpl::readReadyCallback): (WebCore::SocketStreamHandleImpl::didFail): (WebCore::SocketStreamHandleImpl::writeReady): (WebCore::SocketStreamHandleImpl::platformSend): (WebCore::SocketStreamHandleImpl::platformClose): (WebCore::SocketStreamHandleImpl::beginWaitingForSocketWritability): (WebCore::SocketStreamHandleImpl::stopWaitingForSocketWritability): (WebCore::SocketStreamHandleImpl::writeReadyCallback): (WebCore::SocketStreamHandle::create): Deleted. (WebCore::SocketStreamHandle::SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::~SocketStreamHandle): Deleted. (WebCore::SocketStreamHandle::connected): Deleted. (WebCore::SocketStreamHandle::connectedCallback): Deleted. (WebCore::SocketStreamHandle::readBytes): Deleted. (WebCore::SocketStreamHandle::readReadyCallback): Deleted. (WebCore::SocketStreamHandle::didFail): Deleted. (WebCore::SocketStreamHandle::writeReady): Deleted. (WebCore::SocketStreamHandle::platformSend): Deleted. (WebCore::SocketStreamHandle::platformClose): Deleted. (WebCore::SocketStreamHandle::beginWaitingForSocketWritability): Deleted. (WebCore::SocketStreamHandle::stopWaitingForSocketWritability): Deleted. (WebCore::SocketStreamHandle::writeReadyCallback): Deleted. * platform/network/soup/SocketStreamHandleSoup.cpp: Removed. Source/WebKit2: * WebProcess/Network/WebSocketProvider.cpp: (WebKit::WebSocketProvider::createSocketStreamHandle): Canonical link: https://commits.webkit.org/178981@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@204483 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-08-15 21:23:32 +00:00
platform/network/cf/SocketStreamHandleImplCFNet.cpp
platform/network/cocoa/CookieCocoa.mm
platform/network/cocoa/CookieStorageObserver.mm
platform/network/cocoa/CredentialCocoa.mm
[Resource Timing] Gather timing information with reliable responseEnd time https://bugs.webkit.org/show_bug.cgi?id=168351 Reviewed by Alex Christensen. LayoutTests/imported/w3c: * web-platform-tests/fetch/api/redirect/redirect-count-cross-origin-expected.txt: * web-platform-tests/fetch/api/redirect/redirect-count-cross-origin-worker-expected.txt: * web-platform-tests/fetch/api/redirect/redirect-count-expected.txt: * web-platform-tests/fetch/api/redirect/redirect-count-worker-expected.txt: * web-platform-tests/fetch/api/redirect/redirect-location-expected.txt: * web-platform-tests/fetch/api/redirect/redirect-location-worker-expected.txt: New behavior for too many redirects caused by <rdar://problem/30610988>. * web-platform-tests/resource-timing/rt-nextHopProtocol-expected.txt: Added. * web-platform-tests/resource-timing/rt-nextHopProtocol.html: Added. * web-platform-tests/resource-timing/rt-nextHopProtocol.js: Added. * web-platform-tests/resource-timing/rt-nextHopProtocol.worker-expected.txt: Added. * web-platform-tests/resource-timing/rt-nextHopProtocol.worker.html: Added. * web-platform-tests/resource-timing/rt-nextHopProtocol.worker.js: Added. New tests specific to just checking the nextHopProtocol property with a non-cached resource to avoid flakeyness. Source/WebCore: This patch replaces the unused `double finishTime` in ResourceLoader's didFinishLoad with a complete WebCore::NetworkLoadMetrics object. This allows the NetworkProcess to give complete timing information, and more final metrics about the load, to WebCore. Currently this is only used by ResourceTiming, but it will soon be used by Web Inspector as well. We may also end up extending this to the didFail path as well, since it is possible that we have some metrics for load failures. At the same time we want to start moving away from the legacy path that populated a subset of this information in ResourceResponse's NetworkLoadMetrics. It doesn't make sense to store this information on the ResourceResponse for a few reasons: We don't want to store the metrics in our Network Cache and not all of the load timing metrics have been populated yet (responseEnd). In an effort to move off of this data we've renamed the accessor to "deprecatedNetworkLoadMetrics". There are a few remaining clients (ResourceHandle, PerformanceTiming, InspectorNetworkAgent) which can be migrated separately from this patch. Having both the legacy and new code paths adds a little bit of complexity. One advantage of the new path is that the complete load timing data (fetchStart -> dns -> connect -> request -> response -> responseEnd) can be packaged together. The legacy path could not include a responseEnd, so WebCore faked that value with its own timestamp. Having the fake responseEnd caused issues as timestamps / clocks are different between processes. In order for PerformanceResponseTiming to know whether or not the NetworkLoadMetrics has the complete network timing metrics it checks isComplete(). If true it knows it can use the responseEnd time from NetworkLoadMetrics, otherwise it must fallback to the legacy value from LoadTiming. Once all of the deprecatedNetworkLoadMetrics clients go away, we should always have the complete data and this can be eliminated. Tests: imported/w3c/web-platform-tests/resource-timing/rt-nextHopProtocol.html imported/w3c/web-platform-tests/resource-timing/rt-nextHopProtocol.worker.html * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: Rename NetworkLoadTiming -> NetworkLoadMetrics. * page/PerformanceResourceTiming.cpp: (WebCore::entryStartTime): (WebCore::entryEndTime): (WebCore::PerformanceResourceTiming::PerformanceResourceTiming): (WebCore::PerformanceResourceTiming::nextHopProtocol): (WebCore::PerformanceResourceTiming::domainLookupStart): (WebCore::PerformanceResourceTiming::domainLookupEnd): (WebCore::PerformanceResourceTiming::connectStart): (WebCore::PerformanceResourceTiming::connectEnd): (WebCore::PerformanceResourceTiming::secureConnectionStart): (WebCore::PerformanceResourceTiming::requestStart): (WebCore::PerformanceResourceTiming::responseStart): (WebCore::PerformanceResourceTiming::responseEnd): (WebCore::PerformanceResourceTiming::networkLoadTimeToDOMHighResTimeStamp): * page/PerformanceResourceTiming.h: Mostly just updating names and types. This does however need to get the correct endTime based on whether the NetworkLoadMetrics are complete (meaning includes responseEnd) or not (legacy, use LoadTiming value). * page/PerformanceResourceTiming.idl: Add nextHopProtocol. * page/PerformanceTiming.cpp: (WebCore::PerformanceTiming::domainLookupStart): (WebCore::PerformanceTiming::domainLookupEnd): (WebCore::PerformanceTiming::connectStart): (WebCore::PerformanceTiming::connectEnd): (WebCore::PerformanceTiming::secureConnectionStart): (WebCore::PerformanceTiming::requestStart): (WebCore::PerformanceTiming::responseStart): (WebCore::PerformanceTiming::resourceLoadTimeRelativeToFetchStart): * page/PerformanceTiming.h: Navigation Timing values still uses the NetworkLoadTiming values stored on the DocumentLoader. This should be moved off of the deprecated path separately. * platform/network/NetworkLoadMetrics.h: Renamed from Source/WebCore/platform/network/NetworkLoadTiming.h. (WebCore::NetworkLoadMetrics::NetworkLoadMetrics): (WebCore::NetworkLoadMetrics::isolatedCopy): (WebCore::NetworkLoadMetrics::reset): (WebCore::NetworkLoadMetrics::operator==): (WebCore::NetworkLoadMetrics::operator!=): (WebCore::NetworkLoadMetrics::isComplete): (WebCore::NetworkLoadMetrics::markComplete): (WebCore::NetworkLoadMetrics::encode): (WebCore::NetworkLoadMetrics::decode): Re-introduce a reset() method (for NetworkLoadSoup to reset between redirects). Add protocolName and "complete" boolean. * platform/network/cocoa/NetworkLoadMetrics.mm: Renamed from Source/WebCore/platform/network/cocoa/NetworkLoadTiming.mm. (WebCore::timingValue): (WebCore::copyTimingData): (WebCore::setCollectsTimingData): Use this opportunity to convert NetworkLoadTiming timestamps to WTF::Seconds. Since we already have to modify all the clients this moves us to use the more strongly typed units that are less ambiguous then "double". The rest of the Performance API has already moved to these units. * inspector/InspectorNetworkAgent.cpp: (WebCore::InspectorNetworkAgent::buildObjectForTiming): (WebCore::InspectorNetworkAgent::buildObjectForResourceResponse): (WebCore::InspectorNetworkAgent::didFinishLoading): * inspector/InspectorNetworkAgent.h: Inspector was the only client of the finishTime, and since the value was erratically coming from clients in different ways it was almost certainly inaccurate. Simplify this in preparation for using NetworkLoadMetrics. * Modules/fetch/FetchLoader.cpp: (WebCore::FetchLoader::didFinishLoading): * Modules/fetch/FetchLoader.h: * fileapi/FileReaderLoader.cpp: (WebCore::FileReaderLoader::didFinishLoading): * fileapi/FileReaderLoader.h: * html/MediaFragmentURIParser.cpp: (WebCore::MediaFragmentURIParser::parseNPTTime): * inspector/InspectorInstrumentation.cpp: (WebCore::InspectorInstrumentation::didFinishLoadingImpl): * inspector/InspectorInstrumentation.h: (WebCore::InspectorInstrumentation::didFinishLoading): * loader/CrossOriginPreflightChecker.cpp: (WebCore::CrossOriginPreflightChecker::validatePreflightResponse): * loader/DocumentLoader.cpp: (WebCore::DocumentLoader::notifyFinished): (WebCore::DocumentLoader::finishedLoading): (WebCore::DocumentLoader::continueAfterContentPolicy): (WebCore::DocumentLoader::maybeLoadEmpty): * loader/DocumentLoader.h: * loader/DocumentThreadableLoader.cpp: (WebCore::DocumentThreadableLoader::didReceiveResponse): (WebCore::DocumentThreadableLoader::notifyFinished): (WebCore::DocumentThreadableLoader::didFinishLoading): (WebCore::DocumentThreadableLoader::loadRequest): * loader/DocumentThreadableLoader.h: * loader/NetscapePlugInStreamLoader.cpp: (WebCore::NetscapePlugInStreamLoader::didFinishLoading): * loader/NetscapePlugInStreamLoader.h: * loader/ResourceLoadNotifier.cpp: (WebCore::ResourceLoadNotifier::didFinishLoad): (WebCore::ResourceLoadNotifier::dispatchDidFinishLoading): (WebCore::ResourceLoadNotifier::sendRemainingDelegateMessages): * loader/ResourceLoadNotifier.h: * loader/ResourceLoader.cpp: (WebCore::ResourceLoader::deliverResponseAndData): (WebCore::ResourceLoader::loadDataURL): (WebCore::ResourceLoader::didFinishLoading): (WebCore::ResourceLoader::didFinishLoadingOnePart): * loader/ResourceLoader.h: * loader/ResourceTiming.cpp: (WebCore::ResourceTiming::fromLoad): (WebCore::ResourceTiming::fromSynchronousLoad): (WebCore::ResourceTiming::ResourceTiming): (WebCore::ResourceTiming::isolatedCopy): * loader/ResourceTiming.h: (WebCore::ResourceTiming::networkLoadMetrics): (WebCore::ResourceTiming::ResourceTiming): (WebCore::ResourceTiming::networkLoadTiming): Deleted. * loader/SubresourceLoader.cpp: (WebCore::SubresourceLoader::SubresourceLoader): (WebCore::SubresourceLoader::willSendRequestInternal): (WebCore::SubresourceLoader::didReceiveResponse): (WebCore::SubresourceLoader::didFinishLoading): (WebCore::SubresourceLoader::reportResourceTiming): * loader/SubresourceLoader.h: * loader/ThreadableLoaderClient.h: (WebCore::ThreadableLoaderClient::didFinishLoading): * loader/ThreadableLoaderClientWrapper.h: (WebCore::ThreadableLoaderClientWrapper::didFinishLoading): * loader/WorkerThreadableLoader.cpp: (WebCore::WorkerThreadableLoader::MainThreadBridge::didFinishLoading): * loader/WorkerThreadableLoader.h: * loader/appcache/ApplicationCacheGroup.cpp: (WebCore::ApplicationCacheGroup::didFinishLoading): * loader/appcache/ApplicationCacheGroup.h: * loader/cache/CachedResource.h: (WebCore::CachedResource::setLoadFinishTime): * loader/ios/QuickLook.mm: (-[WebPreviewLoader connectionDidFinishLoading:]): * page/EventSource.cpp: (WebCore::EventSource::didFinishLoading): * page/EventSource.h: * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp: (ResourceHandleStreamingClient::didFinishLoading): * platform/network/BlobResourceHandle.cpp: (WebCore::doNotifyFinish): * platform/network/PingHandle.h: * platform/network/ResourceHandle.h: * platform/network/ResourceHandleClient.h: (WebCore::ResourceHandleClient::didFinishLoading): * platform/network/ResourceResponseBase.cpp: (WebCore::ResourceResponseBase::crossThreadData): (WebCore::ResourceResponseBase::fromCrossThreadData): (WebCore::ResourceResponseBase::compare): * platform/network/ResourceResponseBase.h: (WebCore::ResourceResponseBase::deprecatedNetworkLoadMetrics): (WebCore::ResourceResponseBase::encode): (WebCore::ResourceResponseBase::decode): (WebCore::ResourceResponseBase::networkLoadTiming): Deleted. * platform/network/SynchronousLoaderClient.cpp: (WebCore::SynchronousLoaderClient::didFinishLoading): * platform/network/SynchronousLoaderClient.h: * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp: (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse): (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didFinishLoading): * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp: (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse): (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didFinishLoading): * platform/network/curl/ResourceHandleCurl.cpp: (WebCore::WebCoreSynchronousLoader::didFinishLoading): * platform/network/curl/ResourceHandleManager.cpp: (WebCore::calculateWebTimingInformations): (WebCore::ResourceHandleManager::downloadTimerCallback): (WebCore::handleDataURL): (WebCore::milisecondsSinceRequest): Deleted. * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::getConnectionTimingData): * platform/network/mac/WebCoreResourceHandleAsDelegate.mm: (-[WebCoreResourceHandleAsDelegate connection:didReceiveResponse:]): (-[WebCoreResourceHandleAsDelegate connectionDidFinishLoading:]): * platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm: (-[WebCoreResourceHandleAsOperationQueueDelegate connection:didReceiveResponse:]): (-[WebCoreResourceHandleAsOperationQueueDelegate connectionDidFinishLoading:]): * platform/network/soup/ResourceHandleSoup.cpp: (WebCore::restartedCallback): (WebCore::nextMultipartResponsePartCallback): (WebCore::sendRequestCallback): (WebCore::ResourceHandle::didStartRequest): (WebCore::networkEventCallback): (WebCore::ResourceHandle::sendPendingRequest): (WebCore::readCallback): (WebCore::milisecondsSinceRequest): Deleted. * workers/WorkerScriptLoader.cpp: (WebCore::WorkerScriptLoader::didFinishLoading): * workers/WorkerScriptLoader.h: * xml/XMLHttpRequest.cpp: (WebCore::XMLHttpRequest::didFinishLoading): * xml/XMLHttpRequest.h: Eliminate the unused finishTime double. Source/WebKit2: Change from an unused `double finishTime` to a complete WebCore::NetworkLoadMetrics object in the didFinishLoad ResourceLoader path. We may also extend this in the didFail path later on. This allows the NetworkProcess to give complete timing information, and more final metrics about the load, to WebCore. * NetworkProcess/NetworkDataTask.h: (WebKit::NetworkDataTaskClient::didCompleteWithError): Give the NetworkDataTaskClient a basic didCompleteWithError for a completion without metrics. For loads that complete with an error, or haven't populated any metrics, this will pass empty metrics onward. * NetworkProcess/Downloads/BlobDownloadClient.cpp: (WebKit::BlobDownloadClient::didFinishLoading): * NetworkProcess/Downloads/BlobDownloadClient.h: * NetworkProcess/Downloads/PendingDownload.h: * NetworkProcess/PingLoad.h: * NetworkProcess/cache/NetworkCacheSpeculativeLoad.cpp: (WebKit::NetworkCache::SpeculativeLoad::didFinishLoading): * NetworkProcess/cache/NetworkCacheSpeculativeLoad.h: * NetworkProcess/NetworkDataTaskBlob.cpp: (WebKit::NetworkDataTaskBlob::didFail): * NetworkProcess/NetworkLoad.cpp: (WebKit::NetworkLoad::continueWillSendRequest): (WebKit::NetworkLoad::didCompleteWithError): (WebKit::NetworkLoad::didFinishLoading): * NetworkProcess/NetworkLoad.h: * NetworkProcess/NetworkLoadClient.h: * NetworkProcess/NetworkResourceLoader.cpp: (WebKit::NetworkResourceLoader::didFinishLoading): (WebKit::NetworkResourceLoader::sendResultForCacheEntry): * NetworkProcess/NetworkResourceLoader.h: * WebProcess/Network/WebResourceLoader.cpp: (WebKit::WebResourceLoader::didFinishResourceLoad): (WebKit::WebResourceLoader::didReceiveResource): * WebProcess/Network/WebResourceLoader.h: * WebProcess/Network/WebResourceLoader.messages.in: Change didFinishLoad paths to take a NetworkLoadMetrics object instead of finishTime. Change didCompleteWithError pathes to include a NetworkLoadMetrics object instead of finishTime. * NetworkProcess/cocoa/NetworkDataTaskCocoa.h: * NetworkProcess/cocoa/NetworkDataTaskCocoa.mm: (WebKit::NetworkDataTaskCocoa::didCompleteWithError): Own a NetworkLoadTiming that will be populated with the load. * NetworkProcess/cocoa/NetworkSessionCocoa.h: * NetworkProcess/cocoa/NetworkSessionCocoa.mm: (-[WKNetworkSessionDelegate URLSession:task:didCompleteWithError:]): (-[WKNetworkSessionDelegate URLSession:task:didFinishCollectingMetrics:]): (-[WKNetworkSessionDelegate URLSession:dataTask:didReceiveResponse:completionHandler:]): Populate NetworkLoadMetrics in the didFinishCollectingMetrics NSURLSessionTaskDelegate method. * NetworkProcess/soup/NetworkDataTaskSoup.cpp: (WebKit::NetworkDataTaskSoup::NetworkDataTaskSoup): (WebKit::NetworkDataTaskSoup::timeoutFired): (WebKit::NetworkDataTaskSoup::didSendRequest): (WebKit::NetworkDataTaskSoup::dispatchDidReceiveResponse): (WebKit::NetworkDataTaskSoup::dispatchDidCompleteWithError): (WebKit::NetworkDataTaskSoup::tlsErrorsChanged): (WebKit::NetworkDataTaskSoup::continueHTTPRedirection): (WebKit::NetworkDataTaskSoup::didFinishRead): (WebKit::NetworkDataTaskSoup::didFinishRequestNextPart): (WebKit::NetworkDataTaskSoup::didFailDownload): (WebKit::NetworkDataTaskSoup::didFail): (WebKit::NetworkDataTaskSoup::networkEvent): (WebKit::NetworkDataTaskSoup::didStartRequest): (WebKit::NetworkDataTaskSoup::didRestart): * NetworkProcess/soup/NetworkDataTaskSoup.h: Instead of populating the NetworkLoadMetrics on the ResourceResponse, populate a member variable during the entire load and dispatch didFinishCollectingMetrics right before didCompleteLoadWithError. Source/WTF: * wtf/persistence/Coders.h: (WTF::Persistence::Coder<Seconds>::encode): (WTF::Persistence::Coder<Seconds>::decode): LayoutTests: * TestExpectations: Now that nextHopProtocol is available on Mac mark the test as flakey because the value can be set or not depending on whether or not the resource was loaded from a cache. * platform/ios-simulator/TestExpectations: * platform/gtk/TestExpectations: * platform/mac/TestExpectations: * platform/win/TestExpectations: Mark nextHopProtocol tests as expected to fail on ports that do not yet support those values. Mark redirect tests as failing on ports that encounter the CFNetwork issue causing unexpected callbacks. * performance-api/resource-timing-apis-expected.txt: * performance-api/resources/resource-timing-api.js: Progressions. * platform/mac-elcapitan/imported/w3c/web-platform-tests/resource-timing/test_resource_timing-expected.txt: Added. * platform/mac/imported/w3c/web-platform-tests/resource-timing/test_resource_timing-expected.txt: Added. Expected passing values on mac, except el capitan where this new resource timing data is unavailable. Canonical link: https://commits.webkit.org/185854@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@212993 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-25 05:48:51 +00:00
platform/network/cocoa/NetworkLoadMetrics.mm
platform/network/cocoa/NetworkStorageSessionCocoa.mm
platform/network/cocoa/ProtectionSpaceCocoa.mm
platform/network/cocoa/ResourceRequestCocoa.mm
[CF] Replace CFNetwork-related WebKitSystemInterface calls with SPI https://bugs.webkit.org/show_bug.cgi?id=152463 Reviewed by Alexey Proskuryakov. Replaced WebkitSystemInterface calls that wrapped CFNetwork SPI with direct calls to SPI that is now forward declared in CFNetworkSPI.h. Source/WebCore: Also removed some unused declarations and renamed ResourceResponseMac.mm to ResourceResponseCocoa.mm. * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * platform/ios/WebCoreSystemInterfaceIOS.mm: * platform/mac/WebCoreSystemInterface.h: * platform/mac/WebCoreSystemInterface.mm: * platform/network/NetworkStorageSession.h: * platform/network/cf/CredentialStorageCFNet.cpp: (WebCore::copyCredentialFromProtectionSpace): (WebCore::CredentialStorage::getFromPersistentStorage): * platform/network/cf/NetworkStorageSessionCFNet.cpp: (WebCore::NetworkStorageSession::cookieStorage): * platform/network/cf/ResourceHandleCFNet.cpp: (WebCore::ResourceHandle::createCFURLConnection): * platform/network/cf/ResourceHandleCFURLConnectionDelegate.cpp: (WebCore::ResourceHandleCFURLConnectionDelegate::createResourceRequest): * platform/network/cf/ResourceHandleCFURLConnectionDelegateWithOperationQueue.cpp: (WebCore::ResourceHandleCFURLConnectionDelegateWithOperationQueue::didReceiveResponse): * platform/network/cf/ResourceRequestCFNet.cpp: (WebCore::ResourceRequest::doUpdatePlatformRequest): (WebCore::ResourceRequest::doUpdateResourceRequest): (WebCore::ResourceRequest::setStorageSession): (WebCore::initializeMaximumHTTPConnectionCountPerHost): (WebCore::initializeHTTPConnectionSettingsOnStartup): * platform/network/cf/ResourceRequestCFNet.h: (WebCore::toResourceLoadPriority): (WebCore::toPlatformRequestPriority): * platform/network/cf/ResourceResponse.h: * platform/network/cf/ResourceResponseCFNet.cpp: (WebCore::ResourceResponse::platformCertificateInfo): * platform/network/cf/SynchronousResourceHandleCFURLConnectionDelegate.cpp: (WebCore::SynchronousResourceHandleCFURLConnectionDelegate::didReceiveResponse): * platform/network/cocoa/ResourceRequestCocoa.mm: (WebCore::ResourceRequest::doUpdateResourceRequest): (WebCore::ResourceRequest::doUpdatePlatformRequest): * platform/network/cocoa/ResourceResponseCocoa.mm: Renamed from Source/WebCore/platform/network/mac/ResourceResponseMac.mm. (WebCore::ResourceResponse::platformCertificateInfo): (WebCore::copyNSURLResponseStatusLine): (WebCore::ResourceResponse::platformLazyInit): * platform/network/ios/QuickLook.h: * platform/network/ios/QuickLook.mm: * platform/network/ios/WebCoreURLResponseIOS.mm: (WebCore::adjustMIMETypeIfNecessary): * platform/network/mac/ResourceHandleMac.mm: (WebCore::ResourceHandle::createNSURLConnection): * platform/network/mac/WebCoreURLResponse.h: * platform/network/mac/WebCoreURLResponse.mm: (WebCore::adjustMIMETypeIfNecessary): * platform/spi/cf/CFNetworkConnectionCacheSPI.h: * platform/spi/cf/CFNetworkSPI.h: Source/WebKit/mac: * Plugins/Hosted/HostedNetscapePluginStream.mm: (WebKit::HostedNetscapePluginStream::didReceiveResponse): * Plugins/WebNetscapePluginStream.mm: (WebNetscapePluginStream::didReceiveResponse): * WebCoreSupport/WebSystemInterface.mm: (InitWebCoreSystemInterface): Deleted. * WebView/WebPreferences.mm: (+[WebPreferences _setCurrentNetworkLoaderSessionCookieAcceptPolicy:]): Source/WebKit2: * NetworkProcess/cocoa/NetworkProcessCocoa.mm: (WebKit::initializeNetworkSettings): * NetworkProcess/mac/NetworkProcessMac.mm: (WebKit::overrideSystemProxies): * WebProcess/WebCoreSupport/mac/WebFrameNetworkingContext.mm: (WebKit::WebFrameNetworkingContext::setCookieAcceptPolicyForAllContexts): * WebProcess/WebCoreSupport/mac/WebSystemInterface.mm: (InitWebCoreSystemInterface): Canonical link: https://commits.webkit.org/170617@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194378 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-12-22 23:52:00 +00:00
platform/network/cocoa/ResourceResponseCocoa.mm
platform/network/cocoa/WebCoreNSURLSession.mm
platform/network/mac/AuthenticationMac.mm
platform/network/mac/BlobDataFileReferenceMac.mm
platform/network/mac/CookieStorageMac.mm
platform/network/mac/CredentialStorageMac.mm
platform/network/mac/FormDataStreamMac.mm
platform/network/mac/NetworkStateNotifierMac.cpp
platform/network/mac/ResourceErrorMac.mm
platform/network/mac/ResourceHandleMac.mm
platform/network/mac/SynchronousLoaderClient.mm
platform/network/mac/UTIUtilities.mm
platform/network/mac/WebCoreResourceHandleAsOperationQueueDelegate.mm
platform/network/mac/WebCoreURLResponse.mm
platform/text/cocoa/LocaleCocoa.mm
platform/text/cf/HyphenationCF.cpp
platform/text/mac/TextBoundaries.mm
Replace TextCheckingTypeMask with OptionSet https://bugs.webkit.org/show_bug.cgi?id=188678 Reviewed by Antti Koivisto. Source/WebCore: Replaces TextCheckingTypeMask with an OptionSet to improve type safety and code clarity. Additionally change the values of TextCheckingType such that all the enumerators fit within an uint8_t. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::hasMisspelling const): * accessibility/mac/WebAccessibilityObjectWrapperMac.mm: (AXAttributeStringSetSpelling): * editing/AlternativeTextController.cpp: (WebCore::AlternativeTextController::timerFired): (WebCore::AlternativeTextController::processMarkersOnTextToBeReplacedByResult): * editing/Editor.cpp: (WebCore::Editor::replaceSelectionWithFragment): (WebCore::Editor::markMisspellingsAfterTypingToWord): (WebCore::Editor::markAllMisspellingsAndBadGrammarInRanges): (WebCore::isAutomaticTextReplacementType): (WebCore::Editor::markAndReplaceFor): For now, change a local variable from const to non-const to work around the following MSVC compiler bug: <https://developercommunity.visualstudio.com/content/problem/316713/msvc-cant-compile-webkits-optionsetcontainsany.html>. (WebCore::Editor::markMisspellingsAndBadGrammar): (WebCore::Editor::updateMarkersForWordsAffectedByEditing): (WebCore::Editor::editorUIUpdateTimerFired): (WebCore::Editor::resolveTextCheckingTypeMask): * editing/Editor.h: * editing/SpellChecker.cpp: (WebCore::SpellCheckRequest::SpellCheckRequest): (WebCore::SpellCheckRequest::create): (WebCore::SpellChecker::didCheckSucceed): * editing/SpellChecker.h: * editing/TextCheckingHelper.cpp: (WebCore::findGrammaticalErrors): (WebCore::findMisspellings): (WebCore::TextCheckingHelper::findFirstMisspellingOrBadGrammar): (WebCore::TextCheckingHelper::guessesForMisspelledOrUngrammaticalRange const): (WebCore::checkTextOfParagraph): * editing/TextCheckingHelper.h: * loader/EmptyClients.cpp: * platform/text/TextCheckerClient.h: * platform/text/TextChecking.h: Remove TextCheckingTypeMask. Reorganized the fields of TextCheckingRequestData to coallesce padding and move it to the end of class. Also used default initializer syntax and defaulted (= default) the default constructor of TextCheckingRequestData, removing the need for a user-defined default constructor. (WebCore::TextCheckingRequestData::TextCheckingRequestData): (WebCore::TextCheckingRequestData::text const): Changed return type from String to const String& to avoid unnecessary ref-count churn for callers that do not need to take a shared ownership in this string. (WebCore::TextCheckingRequestData::checkingTypes const): Renamed; formerly named mask. (WebCore::TextCheckingRequestData::mask const): Deleted. * platform/text/mac/TextCheckingMac.mm: Added. (WebCore::nsTextCheckingTypes): * testing/Internals.cpp: (WebCore::Internals::handleAcceptedCandidate): Source/WebKit: * Scripts/webkit/messages.py: Add WebCore::TextCheckingType to the special case map so that the generator knows what header has the definition for this type. * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder<TextCheckingRequestData>::encode): (IPC::ArgumentCoder<TextCheckingRequestData>::decode): * UIProcess/Cocoa/WebViewImpl.mm: (WebKit::coreTextCheckingType): (WebKit::textCheckingResultFromNSTextCheckingResult): * UIProcess/TextChecker.h: * UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::checkTextOfParagraph): * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/gtk/TextCheckerGtk.cpp: (WebKit::TextChecker::requestCheckingOfString): (WebKit::TextChecker::checkTextOfParagraph): Also simplified return expressions. * UIProcess/ios/TextCheckerIOS.mm: (WebKit::TextChecker::checkTextOfParagraph): * UIProcess/mac/TextCheckerMac.mm: (WebKit::TextChecker::checkTextOfParagraph): * UIProcess/win/TextCheckerWin.cpp: (WebKit::TextChecker::checkTextOfParagraph): * WebProcess/WebCoreSupport/WebEditorClient.cpp: (WebKit::WebEditorClient::shouldEraseMarkersAfterChangeSelection const): (WebKit::WebEditorClient::checkTextOfParagraph): * WebProcess/WebCoreSupport/WebEditorClient.h: Source/WebKitLegacy/mac: Currently we have code in WebEditorClient::checkTextOfParagraph() that incorrectly assumes that the enumerators of TextCheckingType have a one-to-one correspondence with NSTextCheckingType. (This is not the case because there is not corresponding NSTextCheckingType for TextCheckingTypeShowCorrectionPanel). We now explicitly convert from OptionSet<TextCheckingType> to NSTextCheckingTypes. * WebCoreSupport/WebEditorClient.h: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::checkTextOfParagraph): (WebEditorClient::shouldEraseMarkersAfterChangeSelection const): (core): Fix up code style nits; compare resultType on the right-hand side instead of the left as this is more readable and unncessary now that modern compilers like Clang have diagnostics to catch accidental assignments when equality was intended. (WebEditorClient::didCheckSucceed): * WebView/WebView.mm: (coreTextCheckingType): (textCheckingResultFromNSTextCheckingResult): Canonical link: https://commits.webkit.org/203837@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@235120 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-21 16:47:43 +00:00
platform/text/mac/TextCheckingMac.mm
platform/text/mac/TextEncodingRegistryMac.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
rendering/RenderThemeCocoa.mm
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
rendering/RenderThemeMac.mm
rendering/TextAutoSizing.cpp
xml/SoftLinkLibxslt.cpp
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=135819 Reviewed by Laszlo Gombos. .: * Source/cmake/OptionsMac.cmake: Disable some more features temporarily to get CMake working. * Source/cmake/WebKitMacros.cmake: Added an extension parameter to GENERATE_BINDINGS to allow ObjC bindings to generate .mm files. Source/JavaScriptCore: * CMakeLists.txt: Add the remote inspector headers to the forwarding headers list. Source/WebCore: * CMakeLists.txt: Include derived sources directory, which is needed by Apple ports. Separated svg and non-svg idls for ObjC bindings. Don't build the new gamepad API right now. It's causing naming conflicts and it's not done. Process CSSUnknownRule.idl. * PlatformGTK.cmake: Added cpp as the extension of the generated bindings. * PlatformMac.cmake: Include more directories and sources. Add forwarding headers. Generate ObjC bindings. * bindings/objc/DOMUIKitExtensions.mm: Moved config.h to recognize the PLATFORM macro. * bindings/scripts/CodeGeneratorObjC.pm: (ReadPublicInterfaces): (GenerateInterface): Added some workarounds for CMake. * bindings/scripts/IDLAttributes.txt: Added missing attribute names. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: Added PLATFORM(IOS) to protect IOS_AIRPLAY code. * platform/mac/PasteboardMac.mm: Added necessary DRAG_SUPPORT protection. * platform/text/mac/TextCodecMac.cpp: Moved config.h to recognize the PLATFORM macro. Tools: * WebKitTestRunner/CMakeLists.txt: Added new cpp parameter for the extension of the generated files. Canonical link: https://commits.webkit.org/153773@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-08-13 22:53:12 +00:00
)
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/airplay/WebMediaSessionManager.h
Modules/airplay/WebMediaSessionManagerClient.h
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayCouponCodeUpdate.h
Modules/applepay/ApplePayDateComponents.h
Modules/applepay/ApplePayDateComponentsRange.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/applepay/ApplePayDetailsUpdateBase.h
Modules/applepay/ApplePayDetailsUpdateData.h
Modules/applepay/ApplePayError.h
Modules/applepay/ApplePayErrorCode.h
Modules/applepay/ApplePayErrorContactField.h
Modules/applepay/ApplePayLineItem.h
Modules/applepay/ApplePayPaymentMethodUpdate.h
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayPaymentTiming.h
Modules/applepay/ApplePayRecurringPaymentDateUnit.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/applepay/ApplePaySetupConfiguration.h
Modules/applepay/ApplePaySetupFeatureWebCore.h
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayShippingContactEditingMode.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/applepay/ApplePayShippingContactUpdate.h
Modules/applepay/ApplePayShippingMethod.h
Modules/applepay/ApplePayShippingMethodUpdate.h
Modules/applepay/PaymentInstallmentConfigurationWebCore.h
Modules/applepay/PaymentSessionError.h
Modules/applepay/PaymentSummaryItems.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/encryptedmedia/legacy/LegacyCDM.h
Modules/encryptedmedia/legacy/LegacyCDMPrivate.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/mediasession/MediaPositionState.h
Modules/mediasession/MediaSession.h
Modules/mediasession/MediaSessionAction.h
Modules/mediasession/MediaSessionActionDetails.h
Modules/mediasession/MediaSessionActionHandler.h
Modules/mediasession/MediaSessionCoordinator.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/mediasession/MediaSessionCoordinatorPrivate.h
Modules/mediasession/MediaSessionCoordinatorState.h
Modules/mediasession/MediaSessionPlaybackState.h
Modules/mediasession/MediaSessionReadyState.h
Modules/mediasession/NavigatorMediaSession.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
accessibility/mac/WebAccessibilityObjectWrapperBase.h
accessibility/mac/WebAccessibilityObjectWrapperMac.h
bridge/objc/WebScriptObject.h
bridge/objc/WebScriptObjectPrivate.h
crypto/CryptoAlgorithmIdentifier.h
crypto/CryptoKey.h
crypto/CryptoKeyType.h
crypto/CryptoKeyUsage.h
crypto/CryptoKeyPair.h
crypto/CommonCryptoUtilities.h
crypto/keys/CryptoKeyHMAC.h
crypto/keys/CryptoAesKeyAlgorithm.h
crypto/keys/CryptoEcKeyAlgorithm.h
crypto/keys/CryptoHmacKeyAlgorithm.h
crypto/keys/CryptoKeyAES.h
crypto/keys/CryptoKeyAlgorithm.h
crypto/keys/CryptoRsaHashedKeyAlgorithm.h
crypto/keys/CryptoRsaKeyAlgorithm.h
crypto/keys/CryptoKeyEC.h
dom/EventLoop.h
dom/WindowEventLoop.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
editing/cocoa/AlternativeTextContextController.h
editing/cocoa/AlternativeTextUIController.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
editing/cocoa/AttributedString.h
editing/cocoa/AutofillElements.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
editing/cocoa/DataDetection.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
editing/cocoa/DataDetectorType.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
editing/cocoa/HTMLConverter.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
editing/mac/DictionaryLookup.h
editing/mac/TextAlternativeWithRange.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
editing/mac/TextUndoInsertionMarkupMac.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
editing/mac/UniversalAccessZoom.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
loader/archive/cf/LegacyWebArchive.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
loader/mac/LoaderNSURLExtras.h
Modules/webauthn/AuthenticatorAssertionResponse.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/webauthn/AuthenticatorAttachment.h
Modules/webauthn/AuthenticatorAttestationResponse.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
Modules/webauthn/AuthenticatorResponse.h
Modules/webauthn/fido/Pin.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
page/mac/TextIndicatorWindow.h
page/mac/WebCoreFrameView.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 Reviewed by Keith Miller. Source/WebCore: No new tests. No change in behavior. * CMakeLists.txt: * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/ImageDecoders.cmake: * platform/TextureMapper.cmake: * platform/graphics/win/LocalWindowsContext.h: Source/WebKit: * CMakeLists.txt: * NetworkProcess/capture/NetworkCaptureManager.cpp: * NetworkProcess/webrtc/NetworkRTCMonitor.h: * PlatformWPE.cmake: * Scripts/generate-forwarding-headers.pl: * Shared/gtk/WebEventFactory.cpp: * UIProcess/API/gtk/PageClientImpl.cpp: * UIProcess/API/gtk/WebKitWebViewBase.cpp: * UIProcess/gtk/WebPageProxyGtk.cpp: * WebProcess/Plugins/Netscape/x11/NetscapePluginX11.cpp: * WebProcess/WebCoreSupport/gtk/WebEditorClientGtk.cpp: * WebProcess/WebCoreSupport/wpe/WebEditorClientWPE.cpp: * WebProcess/WebPage/gtk/WebPageGtk.cpp: * WebProcess/WebPage/wpe/WebPageWPE.cpp: Source/WebKitLegacy: * PlatformWin.cmake: Source/WebKitLegacy/win: * FullscreenVideoController.h: * Plugins/PluginDatabase.cpp: * Plugins/PluginDatabaseWin.cpp: * Plugins/PluginDebug.cpp: * Plugins/PluginMainThreadScheduler.cpp: * Plugins/PluginMessageThrottlerWin.cpp: * Plugins/PluginPackage.cpp: * Plugins/PluginPackageWin.cpp: * Plugins/PluginStream.cpp: * Plugins/PluginView.cpp: * Plugins/PluginViewWin.cpp: * Plugins/npapi.cpp: * WebKitMessageLoop.cpp: * WebKitPrefix.h: * storage/WebDatabaseProvider.cpp: Tools: * DumpRenderTree/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformWPE.cmake: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/win/TestWebCoreStubs.cpp: (loadResourceIntoBuffer): * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp: * WebKitTestRunner/InjectedBundle/wpe/AccessibilityControllerWPE.cpp: * WebKitTestRunner/InjectedBundle/wpe/AccessibilityUIElementWPE.cpp: * WebKitTestRunner/gtk/EventSenderProxyGtk.cpp: * WebKitTestRunner/wpe/EventSenderProxyWPE.cpp: Canonical link: https://commits.webkit.org/198527@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@228431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-02-13 21:31:41 +00:00
page/scrolling/ScrollingStateOverflowScrollProxyNode.h
Progress towards successful CMake build on Mac https://bugs.webkit.org/show_bug.cgi?id=202426 Rubber-stamped by Tim Horton. Source/WebCore: * PlatformMac.cmake: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: * Platform/cocoa/PaymentAuthorizationViewController.h: * Platform/cocoa/PaymentAuthorizationViewController.mm: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: * PlatformMac.cmake: * Shared/SandboxExtension.h: (WebKit::SandboxExtension::createHandleForReadByPid): * SourcesCocoa.txt: * UIProcess/API/Cocoa/WKWebView.mm: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: (-[WKWebsiteDataStore _hasRegisteredServiceWorker]): * UIProcess/API/mac/WKView.mm: * UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm: * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: * UIProcess/Cocoa/WKFullKeyboardAccessWatcher.mm: * UIProcess/Cocoa/WKShareSheet.mm: (-[WKShareSheet delegate]): (-[WKShareSheet setDelegate:]): * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp: * WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.h: * WebProcess/WebPage/Cocoa/WebRemoteObjectRegistry.cpp: Source/WebKitLegacy: * PlatformMac.cmake: Source/WebKitLegacy/mac: * WebView/WebDataSource.mm: Canonical link: https://commits.webkit.org/215948@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-01 20:35:50 +00:00
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
page/scrolling/cocoa/ScrollingTreeFixedNode.h
Progress towards successful CMake build on Mac https://bugs.webkit.org/show_bug.cgi?id=202426 Rubber-stamped by Tim Horton. Source/WebCore: * PlatformMac.cmake: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: * Platform/cocoa/PaymentAuthorizationViewController.h: * Platform/cocoa/PaymentAuthorizationViewController.mm: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: * PlatformMac.cmake: * Shared/SandboxExtension.h: (WebKit::SandboxExtension::createHandleForReadByPid): * SourcesCocoa.txt: * UIProcess/API/Cocoa/WKWebView.mm: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: (-[WKWebsiteDataStore _hasRegisteredServiceWorker]): * UIProcess/API/mac/WKView.mm: * UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm: * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: * UIProcess/Cocoa/WKFullKeyboardAccessWatcher.mm: * UIProcess/Cocoa/WKShareSheet.mm: (-[WKShareSheet delegate]): (-[WKShareSheet setDelegate:]): * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp: * WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.h: * WebProcess/WebPage/Cocoa/WebRemoteObjectRegistry.cpp: Source/WebKitLegacy: * PlatformMac.cmake: Source/WebKitLegacy/mac: * WebView/WebDataSource.mm: Canonical link: https://commits.webkit.org/215948@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-01 20:35:50 +00:00
page/scrolling/cocoa/ScrollingTreeOverflowScrollProxyNode.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
page/scrolling/cocoa/ScrollingTreePositionedNode.h
page/scrolling/cocoa/ScrollingTreeStickyNode.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
page/scrolling/mac/ScrollingTreeFrameScrollingNodeMac.h
page/scrolling/mac/ScrollingTreeOverflowScrollingNodeMac.h
page/scrolling/mac/ScrollingTreeScrollingNodeDelegateMac.h
platform/FrameRateMonitor.h
platform/ImageExtractionResult.h
platform/MainThreadSharedTimer.h
platform/PictureInPictureSupport.h
platform/PlatformContentFilter.h
platform/ScrollController.h
platform/ScrollSnapAnimatorState.h
platform/SharedTimer.h
platform/SystemSoundManager.h
platform/audio/cocoa/AudioDestinationCocoa.h
platform/audio/cocoa/AudioOutputUnitAdaptor.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/audio/cocoa/AudioSampleBufferList.h
platform/audio/cocoa/AudioSampleDataSource.h
platform/audio/cocoa/CAAudioStreamDescription.h
platform/audio/cocoa/CARingBuffer.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/audio/cocoa/MediaSessionManagerCocoa.h
platform/audio/cocoa/WebAudioBufferList.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/audio/ios/MediaSessionManagerIOS.h
platform/cf/RunLoopObserver.h
platform/cocoa/AGXCompilerService.h
platform/cocoa/CoreVideoSoftLink.h
Adapt LocalCurrentGraphicsContext for iOS <https://webkit.org/b/211660> Reviewed by Darin Adler. Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: - Update build files for: - Rename of LocalCurrentGraphicsContext.mm to LocalCurrentGraphicsContextMac.mm. - Move of LocalCurrentGraphicsContext.h from platform/mac to platform/cocoa. - Addition of LocalCurrentGraphicsContextIOS.mm. * platform/cocoa/LocalCurrentGraphicsContext.h: Renamed from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.h. - Make this work for iOS by using PLATFORM(COCOA) for the outer guard and USE(APPKIT) for the Mac-specific bits. - Use RetainPtr<> for NSGraphicsContext to clean up code in LocalCurrentGraphicsContextMac.mm. (WebCore::LocalCurrentGraphicsContext::cgContext): - Inline from LocalCurrentGraphicsContextMac.mm. * platform/ios/LocalCurrentGraphicsContextIOS.mm: Copied from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.mm. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext): (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext): - Implement based on LocalCurrentGraphicsContextMac.mm. Use UIGraphics{GetCurrent,Pop,Push}Context() functions added to UIKitSoftLink.h. * platform/mac/LocalCurrentGraphicsContextMac.mm: Renamed from Source/WebCore/platform/mac/LocalCurrentGraphicsContext.mm. (WebCore::LocalCurrentGraphicsContext::LocalCurrentGraphicsContext): - Use m_savedGraphicsContext instead of graphicsContext in the body of the constructor. - Remove set-to-nil/retain of m_savedNSGraphicsContext since that is handled by RetainPtr<> now. (WebCore::LocalCurrentGraphicsContext::~LocalCurrentGraphicsContext): - Remove release of m_savedNSGraphicsContext since that is handled by RetainPtr<> now. (WebCore::LocalCurrentGraphicsContext::cgContext): Delete. - Inline into header to share implementation with iOS. Source/WebCore/PAL: * pal/ios/UIKitSoftLink.h: * pal/ios/UIKitSoftLink.mm: - Add soft linking of UIGraphics{GetCurrent,Pop,Push}Context() functions. Source/WebKit: * UIProcess/Cocoa/WebPageProxyCocoa.mm: (WebKit::convertPlatformImageToBitmap): - Use LocalCurrentGraphicsContext for both iOS and Mac code paths. * WebProcess/WebCoreSupport/mac/WebDragClientMac.mm: - Switch from PLATFORM(MAC) and PLATFORM(IOS_FAMIY) to USE(APPKIT) to separate platform code. (WebKit::convertDragImageToBitmap): (WebKit::convertImageToBitmap): Delete. (WebKit::convertCGImageToBitmap): Delete. - Combine Mac-specific convertImageToBitmap() and iOS-specific convertCGImageToBitmap() into a single method using DragImage type and special-casing one line of code. (WebKit::WebDragClient::startDrag): (WebKit::WebDragClient::didConcludeEditDrag): - Combine iOS and Mac methods into a singe method. Canonical link: https://commits.webkit.org/224588@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@261442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-05-09 23:10:41 +00:00
platform/cocoa/LocalCurrentGraphicsContext.h
platform/cocoa/NetworkExtensionContentFilter.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/cocoa/PlatformView.h
platform/cocoa/PlaybackSessionModel.h
platform/cocoa/PlaybackSessionModelMediaElement.h
platform/cocoa/PowerSourceNotifier.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/cocoa/SearchPopupMenuCocoa.h
platform/cocoa/SystemBattery.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/cocoa/SystemVersion.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/cocoa/VersionChecks.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/cocoa/VideoFullscreenChangeObserver.h
platform/cocoa/VideoFullscreenModel.h
platform/cocoa/VideoFullscreenModelVideoElement.h
platform/gamepad/cocoa/GameControllerGamepadProvider.h
platform/gamepad/mac/HIDGamepad.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/gamepad/mac/HIDGamepadElement.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/gamepad/mac/HIDGamepadProvider.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/gamepad/mac/MultiGamepadProvider.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/ImageDecoder.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/ImageDecoderIdentifier.h
platform/graphics/ImageUtilities.h
platform/graphics/MIMETypeCache.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/Model.h
platform/graphics/angle/GraphicsContextGLANGLEEGLUtilities.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/avfoundation/AudioSourceProviderAVFObjC.h
[iPad] YouTube does not automatically AirPlay when a route is selected from Control Center https://bugs.webkit.org/show_bug.cgi?id=206539 Source/WebCore: Patch by Jer Noble <jer.noble@apple.com> on 2020-01-21 Reviewed by Eric Carlson. No new tests; change affects an interaction with two platform features (local AirPlay route picking and actual remote playback over AirPlay routes) that is not testable in an automated fashion. The underlying source of the bug is the difference in how the platform communitcates that an AirPlay route was picked between iOS and macOS. On iOS, route changes are global and are generally pushed up from AVPlayer notifications. On macOS, route changes are local to the app and are pushed down from the UIProcess. But when MSE playback was enabled on iPadOS, there was now a limbo where media playback was no longer using an AVPlayer, but at the same time, route changes could be initiated globally. The end result is that MSE-based media elements are never notified that they "should play to playback target", and no remote playback events are ever fired. To re-create the same macOS behavior when MSE-backed media elements are used on iPadOS, re-use the existing route change detection logic in MediaSessionManageriOS to query whether the newly established route supports AirPlay Video, and if so, send a message to the "now playing" media element that it should begin AirPlaying, which will fail, but will trigger the YouTube player to switch to a HLS-backed media element. This requires renaming MediaPlaybackTargetMac -> MediaPlaybackTargetCocoa. * SourcesCocoa.txt: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * platform/audio/ios/MediaSessionManagerIOS.h: * platform/audio/ios/MediaSessionManagerIOS.mm: (WebCore::MediaSessionManageriOS::activeVideoRouteDidChange): (-[WebMediaSessionHelper activeAudioRouteDidChange:]): * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.h: Renamed from Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetMac.h. (WebCore::MediaPlaybackTargetCocoa::outputContext const): * platform/graphics/avfoundation/MediaPlaybackTargetCocoa.mm: Renamed from Source/WebCore/platform/graphics/avfoundation/MediaPlaybackTargetMac.mm. (WebCore::MediaPlaybackTargetCocoa::create): (WebCore::MediaPlaybackTargetCocoa::MediaPlaybackTargetCocoa): (WebCore::MediaPlaybackTargetCocoa::~MediaPlaybackTargetCocoa): (WebCore::MediaPlaybackTargetCocoa::targetContext const): (WebCore::MediaPlaybackTargetCocoa::hasActiveRoute const): (WebCore::MediaPlaybackTargetCocoa::deviceName const): (WebCore::toMediaPlaybackTargetCocoa): * platform/graphics/avfoundation/objc/MediaPlaybackTargetPickerMac.mm: (WebCore::MediaPlaybackTargetPickerMac::playbackTarget): * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: (WebCore::MediaPlayerPrivateAVFoundationObjC::setWirelessPlaybackTarget): Source/WebKit: <rdar://problem/54173689> Patch by Jer Noble <jer.noble@apple.com> on 2020-01-21 Reviewed by Eric Carlson. * WebProcess/WebPage/mac/WebPageMac.mm: (WebKit::WebPage::playbackTargetSelected const): Canonical link: https://commits.webkit.org/219613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254878 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-21 21:44:00 +00:00
platform/graphics/avfoundation/MediaPlaybackTargetCocoa.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/avfoundation/SampleBufferDisplayLayer.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/avfoundation/WebMediaSessionManagerMac.h
Progress towards successful CMake build on Mac https://bugs.webkit.org/show_bug.cgi?id=202426 Rubber-stamped by Tim Horton. Source/WebCore: * PlatformMac.cmake: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: * Platform/cocoa/PaymentAuthorizationViewController.h: * Platform/cocoa/PaymentAuthorizationViewController.mm: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: * PlatformMac.cmake: * Shared/SandboxExtension.h: (WebKit::SandboxExtension::createHandleForReadByPid): * SourcesCocoa.txt: * UIProcess/API/Cocoa/WKWebView.mm: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: (-[WKWebsiteDataStore _hasRegisteredServiceWorker]): * UIProcess/API/mac/WKView.mm: * UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm: * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: * UIProcess/Cocoa/WKFullKeyboardAccessWatcher.mm: * UIProcess/Cocoa/WKShareSheet.mm: (-[WKShareSheet delegate]): (-[WKShareSheet setDelegate:]): * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp: * WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.h: * WebProcess/WebPage/Cocoa/WebRemoteObjectRegistry.cpp: Source/WebKitLegacy: * PlatformMac.cmake: Source/WebKitLegacy/mac: * WebView/WebDataSource.mm: Canonical link: https://commits.webkit.org/215948@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-01 20:35:50 +00:00
platform/graphics/avfoundation/objc/AVAssetMIMETypeCache.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/avfoundation/objc/ImageDecoderAVFObjC.h
platform/graphics/avfoundation/objc/LocalSampleBufferDisplayLayer.h
platform/graphics/avfoundation/objc/MediaSampleAVFObjC.h
platform/graphics/avfoundation/objc/VideoLayerManagerObjC.h
Progress towards successful CMake build on Mac https://bugs.webkit.org/show_bug.cgi?id=202426 Rubber-stamped by Tim Horton. Source/WebCore: * PlatformMac.cmake: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: * Platform/cocoa/PaymentAuthorizationViewController.h: * Platform/cocoa/PaymentAuthorizationViewController.mm: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: * PlatformMac.cmake: * Shared/SandboxExtension.h: (WebKit::SandboxExtension::createHandleForReadByPid): * SourcesCocoa.txt: * UIProcess/API/Cocoa/WKWebView.mm: * UIProcess/API/Cocoa/WKWebsiteDataStore.mm: (-[WKWebsiteDataStore _hasRegisteredServiceWorker]): * UIProcess/API/mac/WKView.mm: * UIProcess/Cocoa/SOAuthorization/PopUpSOAuthorizationSession.mm: * UIProcess/Cocoa/SOAuthorization/SOAuthorizationSession.mm: * UIProcess/Cocoa/WKFullKeyboardAccessWatcher.mm: * UIProcess/Cocoa/WKShareSheet.mm: (-[WKShareSheet delegate]): (-[WKShareSheet setDelegate:]): * UIProcess/Cocoa/WebProcessPoolCocoa.mm: * UIProcess/Cocoa/WebViewImpl.h: * WebKit.xcodeproj/project.pbxproj: * WebProcess/WebCoreSupport/WebResourceLoadObserver.cpp: * WebProcess/WebCoreSupport/ios/WebPreviewLoaderClient.h: * WebProcess/WebPage/Cocoa/WebRemoteObjectRegistry.cpp: Source/WebKitLegacy: * PlatformMac.cmake: Source/WebKitLegacy/mac: * WebView/WebDataSource.mm: Canonical link: https://commits.webkit.org/215948@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-10-01 20:35:50 +00:00
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/ca/GraphicsLayerCA.h
platform/graphics/ca/LayerPool.h
platform/graphics/ca/PlatformCAAnimation.h
platform/graphics/ca/PlatformCAFilters.h
platform/graphics/ca/PlatformCALayer.h
platform/graphics/ca/PlatformCALayerClient.h
platform/graphics/ca/TileController.h
platform/graphics/ca/cocoa/PlatformCAAnimationCocoa.h
platform/graphics/ca/cocoa/PlatformCALayerCocoa.h
platform/graphics/ca/cocoa/WebVideoContainerLayer.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
Simplify adding new color spaces to WebCore https://bugs.webkit.org/show_bug.cgi?id=220146 Reviewed by Dean Jackson. Reduce the number of places one needs to touch when adding new color types to: - ColorTypes.h - ColorConversion.h/cpp - ColorSpace.h/cpp (only needed if support in Color is required). - ColorSerialization.h (only needed if support in Color is required). - ColorSpaceCG.h/cpp (only needed if support in Color is required). * Sources.txt: * WebCore.xcodeproj/project.pbxproj: Add ColorSpace.cpp, ColorSpaceCG.h and ColorSpaceCG.cpp. * platform/graphics/Color.cpp: * platform/graphics/Color.h: (WebCore::Color::Color): (WebCore::Color::setColor): Replace specific overloads of the contructor and setColor with template functions that do the same things. These are safe to make as if a non-supported color type (one that doesn't have a colorSpace member) is passed it will fail to compile due to use beneath ExtendedColor::create(). Also moves WTF::TextStream operator<< overload for ColorSpace out and into ColorSpace.cpp where it makes more sense. * platform/graphics/ColorConversion.cpp: * platform/graphics/ColorConversion.h: Re-order and explicitly comment conversion functions to be more clear. As the comment indicates, all color types must implement at least the following conversions: XYZA<float> toXYZA(const ColorType<float>&); ColorType<float> toColorType(const XYZA<float>&); This allows generic fallback code, inline at the bottom of the header, to support conversion to and from any set of colors. Additional conversion functions are useful for the cases where the optimal or base conversion is not through XYZ such as from SRGBA to LinearSRGBA. To allow this to work a few additional conversion functions were added which just combine existing conversions together and one was added for SRGBA to CMYKA which was missing, though currently unused. * platform/graphics/ColorSpace.cpp: Added. (WebCore::operator<<): * platform/graphics/ColorSpace.h: Moved from Color.h * platform/graphics/ColorTypes.h: (WebCore::callWithColorType): This is a generalization of ExtendedColor::callOnUnderlyingType() that also has the benefit of now being in the same file as the color type definitions, reducing the number of files people need to touch. * platform/graphics/ColorUtilities.h: (WebCore::colorByModifingEachNonAlphaComponent): Update to not assume that colors use the names red/green/blue for non-alpha components. This makes it work generically for all four component color types. * platform/graphics/ExtendedColor.h: (WebCore::ExtendedColor::callOnUnderlyingType const): Use generalized form, callWithColorType to avoid requiring modiftying this when new color types are added. * platform/graphics/cg/ColorCG.cpp: (WebCore::leakCGColor): When going to generalize this (we could have simply called `return CGColorCreate(cachedCGColorSpace(colorSpace), cgFloatComponents))` I noticed this was not doing the right thing for CG ports that don't support all the color spaces WebCore requires (such as Windows). For instance, displayP3ColorSpaceRef() just returns sRGBColorSpaceRef() on windows, meaning we would be taking some DisplayP3 components and having CG interpret them as sRGB. To avoid this, we now check if the color space returned is the fallback color space, sRGB, and do our own conversion to sRGB using ColorConversion before creating the color. This also resolves a long standing bug / FIXME around LinearRGB where we were using sRGBColorSpaceRef() for them. In practice, we don't actually ever create LinearRGB CGColorRefs right now, but if we ever do in the future, makes sense to use the right color space. * platform/graphics/cg/ColorSpaceCG.cpp: Added. (WebCore::sRGBColorSpaceRef): (WebCore::linearRGBColorSpaceRef): (WebCore::displayP3ColorSpaceRef): (WebCore::extendedSRGBColorSpaceRef): * platform/graphics/cg/ColorSpaceCG.h: Added. (WebCore::cachedCGColorSpace): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::sRGBColorSpaceRef): Deleted. (WebCore::linearRGBColorSpaceRef): Deleted. (WebCore::extendedSRGBColorSpaceRef): Deleted. (WebCore::displayP3ColorSpaceRef): Deleted. * platform/graphics/cg/GraphicsContextCG.h: (WebCore::cachedCGColorSpace): Deleted. Moved color space specific CG code to its own files to make it more clear where to find them. Canonical link: https://commits.webkit.org/232686@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@271089 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-12-26 17:42:33 +00:00
platform/graphics/cg/ColorSpaceCG.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/cg/GraphicsContextCG.h
platform/graphics/cg/IOSurfacePool.h
Allow different back-ends for ImageBuffer https://bugs.webkit.org/show_bug.cgi?id=207048 Patch by Said Abou-Hallawa <sabouhallawa@apple.com> on 2020-02-18 Reviewed by Tim Horton. Source/WebCore: ImageBuffer will be re-factored to decouple the platform specifics and the back-end details from the interface "ImageBuffer". A class hierarchy for the ImageBufferBackend will added to allow code sharing and to split the code according to the platform and the back-end details. ImageBuffer will be kept interface with the rest of the code but different back-ends will be created. ConcreteImageBuffer is a template class which inherits ImageBuffer and will act as a bridge to the concrete ImageBufferBackend. Based on the RenderingMode, a ConcreteImageBuffer<BackendType> will be created. Instead of checking the renderingMode in many places of the code and instead of and using preprocessor directives, all these decisions will be made in the concrete ImageBufferBackend. This re-factoring will allow creating new types of ImageBuffers backed by new ImageBufferBackends. These new ImageBufferBackends will implement DisplayList drawing and synchronize remote rendering. * Headers.cmake: * PlatformAppleWin.cmake: * PlatformFTW.cmake: * PlatformMac.cmake: * PlatformWin.cmake: * Sources.txt: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * html/CanvasBase.cpp: (WebCore::CanvasBase::setImageBuffer const): * platform/Cairo.cmake: * platform/SourcesCairo.txt: * platform/graphics/BitmapImage.cpp: (WebCore::BitmapImage::nativeImageForCurrentFrameRespectingOrientation): * platform/graphics/ConcreteImageBuffer.h: Added. (WebCore::ConcreteImageBuffer::create): (WebCore::ConcreteImageBuffer::ConcreteImageBuffer): (WebCore::ConcreteImageBuffer::ensureBackend const): (WebCore::ConcreteImageBuffer::putImageData): * platform/graphics/ImageBuffer.cpp: (WebCore::ImageBuffer::create): (WebCore::ImageBuffer::createCompatibleBuffer): (WebCore::ImageBuffer::sizeNeedsClamping): (WebCore::ImageBuffer::compatibleBufferSize): (WebCore::ImageBuffer::sinkIntoNativeImage): (WebCore::ImageBuffer::sinkIntoImage): (WebCore::ImageBuffer::drawConsuming): (WebCore::ImageBuffer::toBGRAData const): Deleted. (WebCore::ImageBuffer::transformColorSpace): Deleted. (WebCore::ImageBuffer::genericConvertToLuminanceMask): Deleted. (WebCore::ImageBuffer::convertToLuminanceMask): Deleted. (WebCore::ImageBuffer::platformLayer const): Deleted. (WebCore::ImageBuffer::copyToPlatformTexture): Deleted. (WebCore::ImageBuffer::memoryCost const): Deleted. (WebCore::ImageBuffer::externalMemoryCost const): Deleted. * platform/graphics/ImageBuffer.h: (WebCore::ImageBuffer::draw): (WebCore::ImageBuffer::drawPattern): (WebCore::ImageBuffer::drawConsuming): (WebCore::ImageBuffer::putImageData): (): Deleted. (WebCore::ImageBuffer::internalSize const): Deleted. (WebCore::ImageBuffer::logicalSize const): Deleted. (WebCore::ImageBuffer::resolutionScale const): Deleted. (WebCore::ImageBuffer::baseTransform const): Deleted. * platform/graphics/ImageBufferBackend.cpp: Added. (WebCore::ImageBufferBackend::ImageBufferBackend): (WebCore::ImageBufferBackend::calculateBackendSize): (WebCore::ImageBufferBackend::sinkIntoNativeImage): (WebCore::ImageBufferBackend::sinkIntoImage): (WebCore::ImageBufferBackend::drawConsuming): (WebCore::ImageBufferBackend::convertToLuminanceMask): (WebCore::ImageBufferBackend::toBGRAData const): (WebCore::copyPremultipliedToPremultiplied): (WebCore::copyPremultipliedToUnpremultiplied): (WebCore::copyUnpremultipliedToPremultiplied): (WebCore::copyFunctor): (WebCore::ImageBufferBackend::copyImagePixels const): (WebCore::ImageBufferBackend::getImageData const): (WebCore::ImageBufferBackend::putImageData): * platform/graphics/ImageBufferBackend.h: Added. (WebCore::ImageBufferBackend::flushContext): (WebCore::ImageBufferBackend::logicalSize const): (WebCore::ImageBufferBackend::backendSize const): (WebCore::ImageBufferBackend::resolutionScale const): (WebCore::ImageBufferBackend::colorSpace const): (WebCore::ImageBufferBackend::baseTransform const): (WebCore::ImageBufferBackend::memoryCost const): (WebCore::ImageBufferBackend::externalMemoryCost const): (WebCore::ImageBufferBackend::transformColorSpace): (WebCore::ImageBufferBackend::platformLayer const): (WebCore::ImageBufferBackend::copyToPlatformTexture const): (WebCore::ImageBufferBackend::bytesPerRow const): (WebCore::ImageBufferBackend::backendColorFormat const): (WebCore::ImageBufferBackend::toBackendCoordinates const): (WebCore::ImageBufferBackend::logicalRect const): (WebCore::ImageBufferBackend::backendRect const): * platform/graphics/PlatformImageBuffer.h: Added. * platform/graphics/ShadowBlur.cpp: (WebCore::ShadowBlur::drawShadowBuffer): * platform/graphics/cairo/CairoOperations.cpp: (WebCore::Cairo::drawShadowLayerBuffer): (WebCore::Cairo::drawShadowImage): (WebCore::Cairo::fillShadowBuffer): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::clipToImageBuffer): * platform/graphics/cairo/GraphicsContextImplCairo.cpp: (WebCore::GraphicsContextImplCairo::clipToImageBuffer): * platform/graphics/cairo/ImageBufferCairo.cpp: Removed. * platform/graphics/cairo/ImageBufferCairoBackend.cpp: Added. (WebCore::ImageBufferCairoBackend::copyImage const): (WebCore::ImageBufferCairoBackend::draw): (WebCore::ImageBufferCairoBackend::drawPattern): (WebCore::ImageBufferCairoBackend::transformColorSpace): (WebCore::ImageBufferCairoBackend::toDataURL const): (WebCore::ImageBufferCairoBackend::toData const): * platform/graphics/cairo/ImageBufferCairoBackend.h: Added. (WebCore::ImageBufferCairoBackend::platformTransformColorSpace): * platform/graphics/cairo/ImageBufferCairoGLSurfaceBackend.cpp: Added. (WebCore::clearSurface): (WebCore::ImageBufferCairoGLSurfaceBackend::create): (WebCore::ImageBufferCairoGLSurfaceBackend::ImageBufferCairoGLSurfaceBackend): (WebCore::ImageBufferCairoGLSurfaceBackend::~ImageBufferCairoGLSurfaceBackend): (WebCore::ImageBuffer::platformLayer const): (WebCore::ImageBufferCairoGLSurfaceBackend::copyToPlatformTexture): (WebCore::ImageBufferCairoGLSurfaceBackend::createCompositorBuffer): (WebCore::ImageBufferCairoGLSurfaceBackend::swapBuffersIfNeeded): (WebCore::ImageBufferCairoGLSurfaceBackend::paintToTextureMapper): * platform/graphics/cairo/ImageBufferCairoGLSurfaceBackend.h: Added. * platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.cpp: Added. (WebCore::ImageBufferCairoImageSurfaceBackend::create): (WebCore::ImageBufferCairoImageSurfaceBackend::ImageBufferCairoImageSurfaceBackend): (WebCore::ImageBufferCairoImageSurfaceBackend::platformTransformColorSpace): * platform/graphics/cairo/ImageBufferCairoImageSurfaceBackend.h: Added. * platform/graphics/cairo/ImageBufferCairoSurfaceBackend.cpp: Added. (WebCore::ImageBufferCairoSurfaceBackend::ImageBufferCairoSurfaceBackend): (WebCore::ImageBufferCairoSurfaceBackend::context const): (WebCore::ImageBufferCairoSurfaceBackend::bytesPerRow const): (WebCore::ImageBufferCairoSurfaceBackend::copyNativeImage const): (WebCore::ImageBufferCairoSurfaceBackend::cairoSurfaceCoerceToImage const): (WebCore::ImageBufferCairoSurfaceBackend::toBGRAData const): (WebCore::ImageBufferCairoSurfaceBackend::getImageData const): (WebCore::ImageBufferCairoSurfaceBackend::putImageData): * platform/graphics/cairo/ImageBufferCairoSurfaceBackend.h: Added. * platform/graphics/cg/ImageBufferCG.cpp: Removed. * platform/graphics/cg/ImageBufferCGBackend.cpp: Added. (WebCore::ImageBufferCGBackend::contextColorSpace): (WebCore::ImageBufferCGBackend::setupContext): (WebCore::createCroppedImageIfNecessary): (WebCore::createBitmapImageAfterScalingIfNeeded): (WebCore::ImageBufferCGBackend::copyImage const): (WebCore::ImageBufferCGBackend::sinkIntoImage): (WebCore::ImageBufferCGBackend::draw): (WebCore::ImageBufferCGBackend::drawPattern): (WebCore::ImageBufferCGBackend::baseTransform const): (WebCore::ImageBufferCGBackend::toCFData const): (WebCore::ImageBufferCGBackend::toData const): (WebCore::ImageBufferCGBackend::toDataURL const): (WebCore::makeVImageBuffer): (WebCore::copyImagePixelsAccelerated): (WebCore::ImageBufferCGBackend::copyImagePixels const): * platform/graphics/cg/ImageBufferCGBackend.h: Added. * platform/graphics/cg/ImageBufferCGBitmapBackend.cpp: Added. (WebCore::ImageBufferCGBitmapBackend::create): (WebCore::ImageBufferCGBitmapBackend::ImageBufferCGBitmapBackend): (WebCore::ImageBufferCGBitmapBackend::context const): (WebCore::ImageBufferCGBitmapBackend::copyNativeImage const): (WebCore::ImageBufferCGBitmapBackend::toBGRAData const): (WebCore::ImageBufferCGBitmapBackend::getImageData const): (WebCore::ImageBufferCGBitmapBackend::putImageData): * platform/graphics/cg/ImageBufferCGBitmapBackend.h: Added. * platform/graphics/cg/ImageBufferDataCG.cpp: Removed. * platform/graphics/cg/ImageBufferIOSurfaceBackend.cpp: Added. (WebCore::ImageBufferIOSurfaceBackend::calculateBackendSize): (WebCore::ImageBufferIOSurfaceBackend::contextColorSpace): (WebCore::ImageBufferIOSurfaceBackend::create): (WebCore::ImageBufferIOSurfaceBackend::ImageBufferIOSurfaceBackend): (WebCore::ImageBufferIOSurfaceBackend::context const): (WebCore::ImageBufferIOSurfaceBackend::flushContext): (WebCore::ImageBufferIOSurfaceBackend::memoryCost const): (WebCore::ImageBufferIOSurfaceBackend::externalMemoryCost const): (WebCore::ImageBufferIOSurfaceBackend::bytesPerRow const): (WebCore::ImageBufferIOSurfaceBackend::backendColorFormat const): (WebCore::ImageBufferIOSurfaceBackend::copyNativeImage const): (WebCore::ImageBufferIOSurfaceBackend::sinkIntoNativeImage): (WebCore::ImageBufferIOSurfaceBackend::drawConsuming): (WebCore::ImageBufferIOSurfaceBackend::toBGRAData const): (WebCore::ImageBufferIOSurfaceBackend::getImageData const): (WebCore::ImageBufferIOSurfaceBackend::putImageData): * platform/graphics/cg/ImageBufferIOSurfaceBackend.h: Added. * platform/graphics/cg/PDFDocumentImage.cpp: (WebCore::PDFDocumentImage::updateCachedImageIfNeeded): * platform/graphics/cocoa/IOSurface.mm: (WebCore::IOSurface::createFromImageBuffer): Deleted. * platform/graphics/opengl/GraphicsContextGLOpenGLCommon.cpp: (WebCore::GraphicsContextGLOpenGL::paintRenderingResultsToCanvas): * platform/graphics/win/ImageBufferDataDirect2D.cpp: Removed. * platform/graphics/win/ImageBufferDataDirect2D.h: Removed. * platform/graphics/win/ImageBufferDirect2D.cpp: Removed. * platform/graphics/win/ImageBufferDirect2DBackend.cpp: Added. (WebCore::ImageBufferDirect2DBackend::create): (WebCore::ImageBufferDirect2DBackend::ImageBufferDirect2DBackend): (WebCore::ImageBufferDirect2DBackend::context const): (WebCore::ImageBufferDirect2DBackend::flushContext): (WebCore::ImageBufferDirect2DBackend::copyNativeImage const): (WebCore::createCroppedImageIfNecessary): (WebCore::createBitmapImageAfterScalingIfNeeded): (WebCore::ImageBufferDirect2DBackend::copyImage const): (WebCore::ImageBufferDirect2DBackend::sinkIntoImage): (WebCore::ImageBufferDirect2DBackend::compatibleBitmap): (WebCore::ImageBufferDirect2DBackend::draw): (WebCore::ImageBufferDirect2DBackend::drawPattern): (WebCore::ImageBufferDirect2DBackend::toDataURL const): (WebCore::ImageBufferDirect2DBackend::toData const): (WebCore::ImageBufferDirect2DBackend::toBGRAData const): (WebCore::ImageBufferDirect2DBackend::getImageData const): (WebCore::ImageBufferDirect2DBackend::putImageData): * platform/graphics/win/ImageBufferDirect2DBackend.h: Added. * platform/mediastream/gstreamer/MockGStreamerVideoCaptureSource.cpp: (WebCore::WrappedMockRealtimeVideoSource::updateSampleBuffer): * rendering/svg/SVGRenderingContext.cpp: (WebCore::SVGRenderingContext::bufferForeground): Source/WebKit: * WebProcess/WebPage/WebFrame.cpp: (WebKit::WebFrame::createSelectionSnapshot const): Canonical link: https://commits.webkit.org/220895@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@256892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-19 01:12:47 +00:00
platform/graphics/cg/ImageBufferCGBackend.h
platform/graphics/cg/ImageBufferCGBitmapBackend.h
platform/graphics/cg/ImageBufferIOSurfaceBackend.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/cg/ImageBufferUtilitiesCG.h
platform/graphics/cg/PDFDocumentImage.h
platform/graphics/cg/UTIRegistry.h
platform/graphics/cocoa/ColorCocoa.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/cocoa/FontCacheCoreText.h
platform/graphics/cocoa/FontFamilySpecificationCoreText.h
platform/graphics/cocoa/GraphicsContextGLIOSurfaceSwapChain.h
platform/graphics/cocoa/IOSurface.h
platform/graphics/cocoa/MediaPlaybackTargetContext.h
platform/graphics/cocoa/SourceBufferParser.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/cocoa/SourceBufferParserWebM.h
platform/graphics/cocoa/VP9UtilitiesCocoa.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/cocoa/WebActionDisablingCALayerDelegate.h
platform/graphics/cocoa/WebCoreCALayerExtras.h
platform/graphics/cocoa/WebMAudioUtilitiesCocoa.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/cv/GraphicsContextGLCV.h
platform/graphics/cv/ImageRotationSessionVT.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/cv/PixelBufferConformerCV.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/mac/ColorMac.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/mac/FontCustomPlatformData.h
platform/graphics/mac/GraphicsChecksMac.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/graphics/mac/ScopedHighPerformanceGPURequest.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/mac/SwitchingGPUClient.h
platform/graphics/mac/WebLayer.h
platform/ios/LocalizedDeviceModel.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/ios/PlaybackSessionInterfaceAVKit.h
platform/ios/WebAVPlayerController.h
platform/ios/wak/FloatingPointEnvironment.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/ios/wak/WebCoreThreadRun.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/mac/DynamicLinkerInterposing.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mac/HIDDevice.h
platform/mac/HIDElement.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/mac/LegacyNSPasteboardTypes.h
platform/mac/LocalDefaultSystemAppearance.h
platform/mac/NSScrollerImpDetails.h
platform/mac/PasteboardWriter.h
platform/mac/PlatformEventFactoryMac.h
platform/mac/PlaybackSessionInterfaceMac.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mac/PluginBlocklist.h
platform/mac/PowerObserverMac.h
platform/mac/SerializedPlatformDataCueMac.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/mac/ScrollbarThemeMac.h
platform/mac/StringUtilities.h
platform/mac/VideoFullscreenInterfaceMac.h
platform/mac/WebCoreFullScreenPlaceholderView.h
platform/mac/WebCoreFullScreenWindow.h
platform/mac/WebCoreNSFontManagerExtras.h
platform/mac/WebCoreNSURLExtras.h
platform/mac/WebCoreObjCExtras.h
platform/mac/WebCoreView.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mac/WebGLBlocklist.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/mac/WebNSAttributedStringExtras.h
platform/mac/WebPlaybackControlsManager.h
platform/mediarecorder/MediaRecorderPrivateOptions.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
platform/mediarecorder/cocoa/MediaRecorderPrivateWriterCocoa.h
platform/mediastream/AudioMediaStreamTrackRenderer.h
platform/mediastream/RealtimeIncomingVideoSource.h
platform/mediastream/RealtimeMediaSourceIdentifier.h
platform/mediastream/mac/RealtimeIncomingVideoSourceCocoa.h
platform/mediastream/mac/RealtimeVideoUtilities.h
platform/mediastream/mac/WebAudioSourceProviderCocoa.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/mediastream/libwebrtc/LibWebRTCProviderCocoa.h
platform/network/cf/AuthenticationCF.h
platform/network/cf/AuthenticationChallenge.h
platform/network/cf/CertificateInfo.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/network/cf/DownloadBundle.h
platform/network/cf/LoaderRunLoopCF.h
platform/network/cf/ProtectionSpaceCFNet.h
platform/network/cf/ResourceError.h
platform/network/cf/ResourceRequest.h
platform/network/cf/ResourceRequestCFNet.h
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=135819 Reviewed by Laszlo Gombos. .: * Source/cmake/OptionsMac.cmake: Disable some more features temporarily to get CMake working. * Source/cmake/WebKitMacros.cmake: Added an extension parameter to GENERATE_BINDINGS to allow ObjC bindings to generate .mm files. Source/JavaScriptCore: * CMakeLists.txt: Add the remote inspector headers to the forwarding headers list. Source/WebCore: * CMakeLists.txt: Include derived sources directory, which is needed by Apple ports. Separated svg and non-svg idls for ObjC bindings. Don't build the new gamepad API right now. It's causing naming conflicts and it's not done. Process CSSUnknownRule.idl. * PlatformGTK.cmake: Added cpp as the extension of the generated bindings. * PlatformMac.cmake: Include more directories and sources. Add forwarding headers. Generate ObjC bindings. * bindings/objc/DOMUIKitExtensions.mm: Moved config.h to recognize the PLATFORM macro. * bindings/scripts/CodeGeneratorObjC.pm: (ReadPublicInterfaces): (GenerateInterface): Added some workarounds for CMake. * bindings/scripts/IDLAttributes.txt: Added missing attribute names. * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm: Added PLATFORM(IOS) to protect IOS_AIRPLAY code. * platform/mac/PasteboardMac.mm: Added necessary DRAG_SUPPORT protection. * platform/text/mac/TextCodecMac.cpp: Moved config.h to recognize the PLATFORM macro. Tools: * WebKitTestRunner/CMakeLists.txt: Added new cpp parameter for the extension of the generated files. Canonical link: https://commits.webkit.org/153773@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@172540 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2014-08-13 22:53:12 +00:00
platform/network/cf/ResourceResponse.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/network/cf/SocketStreamHandleImpl.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/network/cocoa/CookieStorageObserver.h
platform/network/cocoa/CredentialCocoa.h
platform/network/cocoa/HTTPCookieAcceptPolicyCocoa.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/network/cocoa/ProtectionSpaceCocoa.h
platform/network/cocoa/WebCoreNSURLSession.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/network/mac/AuthenticationMac.h
platform/network/mac/FormDataStreamMac.h
platform/network/mac/UTIUtilities.h
platform/network/mac/WebCoreURLResponse.h
testing/MockWebAuthenticationConfiguration.h
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
testing/cocoa/WebViewVisualIdentificationOverlay.h
)
list(APPEND WebCore_IDL_FILES
Modules/applepay/ApplePayCancelEvent.idl
Modules/applepay/ApplePayContactField.idl
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayCouponCodeChangedEvent.idl
Modules/applepay/ApplePayCouponCodeDetails.idl
Modules/applepay/ApplePayCouponCodeUpdate.idl
Modules/applepay/ApplePayDateComponents.idl
Modules/applepay/ApplePayDateComponentsRange.idl
[Payment Request] add an `object data` to `PaymentDetailsBase` so that data specific to Apple Pay can be provided https://bugs.webkit.org/show_bug.cgi?id=222002 <rdar://problem/72319946> Reviewed by Tim Horton. Source/WebCore: * Modules/paymentrequest/PaymentDetailsBase.idl: * Modules/paymentrequest/PaymentDetailsBase.h: * Modules/applepay/ApplePayDetailsUpdateBase.idl: Added. * Modules/applepay/ApplePayDetailsUpdateBase.h: Added. (WebCore::ApplePayDetailsUpdateBase::encode const): (WebCore::ApplePayDetailsUpdateBase::decode): (WebCore::ApplePayDetailsUpdateBase::decodeBase): * Modules/applepay/ApplePayPaymentMethodUpdate.h: * Modules/applepay/ApplePayPaymentMethodUpdate.idl: (WebCore::ApplePayPaymentMethodUpdate::encode const): Added. (WebCore::ApplePayPaymentMethodUpdate::decode): Added. * Modules/applepay/ApplePayShippingContactUpdate.idl: * Modules/applepay/ApplePayShippingContactUpdate.h: (WebCore::ApplePayShippingContactUpdate::encode const): Added. (WebCore::ApplePayShippingContactUpdate::decode): Added. * Modules/applepay/ApplePayShippingMethodUpdate.idl: * Modules/applepay/ApplePayShippingMethodUpdate.h: (WebCore::ApplePayShippingMethodUpdate::encode const): Added. (WebCore::ApplePayShippingMethodUpdate::decode): Added. Introduce a common base class `ApplePayDetailsUpdateBase` instead of repeating members on each of the `ApplePay*Update` final classes. * Modules/applepay/ApplePayDetailsUpdateData.idl: Added. * Modules/applepay/ApplePayDetailsUpdateData.h: Added. (WebCore::ApplePayDetailsUpdateData::encode const): (WebCore::ApplePayDetailsUpdateData::decode): (WebCore::ApplePayDetailsUpdateData::decodeData): * Modules/paymentrequest/PaymentRequest.cpp: (WebCore::checkAndCanonicalizeDetails): (WebCore::PaymentRequest::settleDetailsPromise): Have the common base class above extend from `ApplePayDetailsUpdateData`, which is used to pull values out of the `object data` from `PaymentDetailsBase`. This way, both Apple Pay JS and PaymentRequest can be given the same data (albeit in slightly different places) and have the same capabilities. * Modules/applepay/ApplePayError.h: (WebCore::ApplePayError::encode const): Added. (WebCore::ApplePayError::decode): Added. * Modules/applepay/ApplePayError.cpp: Removed. * Modules/applepay/ApplePayErrorCode.h: * Modules/applepay/ApplePayErrorContactField.h: * Modules/applepay/ApplePayPaymentAuthorizationResult.h: * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::shippingMethods const): (WebCore::ApplePaySessionPaymentRequest::setShippingMethods): * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeShippingContactSelection): (WebCore::ApplePaySession::didSelectShippingMethod): (WebCore::finishConverting): Deleted. (WebCore::convert): Deleted. * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): Added. (WebCore::ApplePayShippingMethod::decode): Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: (WebCore::ApplePayShippingMethodSelectedEvent::ApplePayShippingMethodSelectedEvent): (WebCore::convert): Deleted. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeShippingMethodSelection): (WebCore::PaymentCoordinator::completeShippingContactSelection): (WebCore::PaymentCoordinator::completePaymentMethodSelection): (WebCore::PaymentCoordinator::didSelectShippingMethod): * Modules/applepay/PaymentCoordinatorClient.h: * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentRequestValidator.mm: (WebCore::validateShippingMethod): (WebCore::validateShippingMethods): * Modules/applepay/PaymentSession.h: * Modules/applepay/PaymentSummaryItems.h: * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::convertAndValidate): (WebCore::validate): (WebCore::merge): (WebCore::ApplePayPaymentHandler::show): (WebCore::ApplePayPaymentHandler::computeShippingMethods): (WebCore::ApplePayPaymentHandler::computeTotalAndLineItems const): (WebCore::appendShippingContactInvalidError): (WebCore::ApplePayPaymentHandler::computeErrors const): (WebCore::ApplePayPaymentHandler::computeAddressErrors const): (WebCore::ApplePayPaymentHandler::computePayerErrors const): (WebCore::ApplePayPaymentHandler::computePaymentMethodErrors const): (WebCore::ApplePayPaymentHandler::shippingAddressUpdated): (WebCore::ApplePayPaymentHandler::shippingOptionUpdated): (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::retry): (WebCore::ApplePayPaymentHandler::didSelectShippingMethod): * loader/EmptyClients.cpp: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeShippingMethodSelection): (WebCore::convert): (WebCore::MockPaymentCoordinator::completeShippingContactSelection): (WebCore::MockPaymentCoordinator::completePaymentMethodSelection): (WebCore::MockPaymentCoordinator::changeShippingOption): (WebCore::MockPaymentCoordinator::completePaymentSession): (WebCore::MockPaymentCoordinator::updateTotalAndLineItems): Deleted. * testing/MockPaymentError.h: Use `ApplePay*Update` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::*Update`). Use `ApplePayLineItem` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::TotalAndLineItems`). Use `ApplePayShippingMethod` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::ShippingMethod`). Use `ApplePayError*` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::PaymentError::*`). * Modules/applepay/PaymentMethodUpdate.h: * Modules/applepay/cocoa/PaymentMethodUpdateCocoa.mm: Removed. Do the conversion from `ApplePayPaymentMethodUpdate` to `PKPaymentRequestPaymentMethodUpdate` in the UIProcess. * Modules/applepay/ApplePayPaymentRequest.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePayRequestBase.h: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: Source/WebKit: * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::toNSError): (WebKit::toNSErrors): (WebKit::toPKShippingMethods): (WebKit::PaymentAuthorizationPresenter::completePaymentMethodSelection): (WebKit::PaymentAuthorizationPresenter::completeShippingContactSelection): (WebKit::PaymentAuthorizationPresenter::completeShippingMethodSelection): * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (toShippingMethod): * Scripts/webkit/messages.py: * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeShippingMethodSelection): (WebKit::WebPaymentCoordinatorProxy::completeShippingContactSelection): (WebKit::WebPaymentCoordinatorProxy::completePaymentMethodSelection): (WebKit::WebPaymentCoordinatorProxy::presenterDidSelectShippingMethod): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toPKShippingMethod): (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteShippingMethodSelection): (WebKit::WebPaymentCoordinatorProxy::platformCompleteShippingContactSelection): (WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodSelection): (WebKit::finishCreating): Deleted. * Shared/WebCoreArgumentCoders.h: * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::PaymentAuthorizationResult>::decode): (IPC::ArgumentCoder<ApplePaySessionPaymentRequest>::decode): (IPC::ArgumentCoder<Vector<RefPtr<ApplePayError>>>::encode): Added. (IPC::ArgumentCoder<Vector<RefPtr<ApplePayError>>>::decode): Added. (IPC::ArgumentCoder<WebCore::PaymentError>::encode): Deleted. (IPC::ArgumentCoder<WebCore::PaymentError>::decode): Deleted. (IPC::ArgumentCoder<WebCore::PaymentMethodUpdate>::encode): Deleted. (IPC::ArgumentCoder<WebCore::PaymentMethodUpdate>::decode): Deleted. (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ShippingMethod>::encode): Deleted. (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::ShippingMethod>::decode): Deleted. (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::TotalAndLineItems>::encode): Deleted. (IPC::ArgumentCoder<ApplePaySessionPaymentRequest::TotalAndLineItems>::decode): Deleted. (IPC::ArgumentCoder<WebCore::ShippingContactUpdate>::encode): Deleted. (IPC::ArgumentCoder<WebCore::ShippingContactUpdate>::decode): Deleted. (IPC::ArgumentCoder<WebCore::ShippingMethodUpdate>::encode): Deleted. (IPC::ArgumentCoder<WebCore::ShippingMethodUpdate>::decode): Deleted. * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeShippingMethodSelection): (WebKit::WebPaymentCoordinator::completeShippingContactSelection): (WebKit::WebPaymentCoordinator::completePaymentMethodSelection): (WebKit::WebPaymentCoordinator::didSelectShippingMethod): Use `ApplePay*Update` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::*Update`). Use `ApplePayShippingMethod` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::ShippingMethod`). Use `ApplePayError*` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::PaymentError::*`). Source/WebKitLegacy/mac: * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeShippingMethodSelection): (WebPaymentCoordinatorClient::completeShippingContactSelection): (WebPaymentCoordinatorClient::completePaymentMethodSelection): Use `ApplePay*Update` instead of duplicating its structure in another object (`ApplePaySessionPaymentRequest::*Update`). Canonical link: https://commits.webkit.org/234340@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@273143 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-02-19 17:38:37 +00:00
Modules/applepay/ApplePayDetailsUpdateBase.idl
Modules/applepay/ApplePayDetailsUpdateData.idl
Modules/applepay/ApplePayError.idl
Modules/applepay/ApplePayErrorCode.idl
Modules/applepay/ApplePayErrorContactField.idl
Modules/applepay/ApplePayInstallmentItem.idl
Modules/applepay/ApplePayInstallmentItemType.idl
Modules/applepay/ApplePayInstallmentConfiguration.idl
Modules/applepay/ApplePayInstallmentRetailChannel.idl
Modules/applepay/ApplePayLineItem.idl
Modules/applepay/ApplePayMerchantCapability.idl
Modules/applepay/ApplePayPayment.idl
Modules/applepay/ApplePayPaymentAuthorizationResult.idl
Modules/applepay/ApplePayPaymentAuthorizedEvent.idl
Modules/applepay/ApplePayPaymentContact.idl
Modules/applepay/ApplePayPaymentMethod.idl
Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl
Modules/applepay/ApplePayPaymentMethodType.idl
Modules/applepay/ApplePayPaymentMethodUpdate.idl
Modules/applepay/ApplePayPaymentPass.idl
Modules/applepay/ApplePayPaymentRequest.idl
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayPaymentTiming.idl
Modules/applepay/ApplePayRecurringPaymentDateUnit.idl
Modules/applepay/ApplePayRequestBase.idl
Modules/applepay/ApplePaySession.idl
Modules/applepay/ApplePaySessionError.idl
Modules/applepay/ApplePaySetup.idl
Modules/applepay/ApplePaySetupConfiguration.idl
Modules/applepay/ApplePaySetupFeature.idl
Modules/applepay/ApplePaySetupFeatureState.idl
Modules/applepay/ApplePaySetupFeatureType.idl
[Payment Request] upstream new features https://bugs.webkit.org/show_bug.cgi?id=226740 <rdar://problem/78963132> Reviewed by Andy Estes. Source/WebCore: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) Tests: http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html http/tests/paymentrequest/ApplePayModifier-total.https.html http/tests/paymentrequest/paymentmethodchange-couponCode.https.html http/tests/paymentrequest/paymentrequest-couponCode.https.html http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html * Modules/applepay/ApplePayCouponCodeUpdate.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. * Modules/applepay/ApplePayCouponCodeUpdate.h: Renamed from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.h. (WebCore::ApplePayCouponCodeUpdate::encode const): (WebCore::ApplePayCouponCodeUpdate::decode): Object used to update the payment request via `ApplePaySession.prototype.completeCouponCodeChange` when responding to the user modifying the coupon code. * Modules/applepay/ApplePayErrorCode.idl: * Modules/applepay/ApplePayErrorCode.h: Add `"couponCodeInvalid"` and `"couponCodeExpired"`. * Modules/applepay/ApplePayLineItem.idl: * Modules/applepay/ApplePayLineItem.h: (WebCore::ApplePayLineItem::encode const): (WebCore::ApplePayLineItem::decode): * Modules/applepay/ApplePayPaymentTiming.idl: Added. * Modules/applepay/ApplePayPaymentTiming.h: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.idl: Added. * Modules/applepay/ApplePayRecurringPaymentDateUnit.h: Added. Add members that indicate whether this line item is immediate, recurring, or deferred. Depending on that timing, additional members are added for further configuration (e.g. the start and/or end date of a recurring payment, it's frequency, etc.). * Modules/applepay/ApplePayShippingMethod.idl: * Modules/applepay/ApplePayShippingMethod.h: (WebCore::ApplePayShippingMethod::encode const): (WebCore::ApplePayShippingMethod::decode): * Modules/applepay/ApplePayDateComponentsRange.idl: Added. * Modules/applepay/ApplePayDateComponentsRange.h: Added. (WebCore::ApplePayDateComponentsRange::encode const): (WebCore::ApplePayDateComponentsRange::decode): * Modules/applepay/ApplePayDateComponents.idl: Added. * Modules/applepay/ApplePayDateComponents.h: Added. (WebCore::ApplePayDateComponents::encode const): (WebCore::ApplePayDateComponents::decode): Add members that can be used to indicate the estimated shipping dates for this shipping method. * Modules/applepay/ApplePayRequestBase.idl: * Modules/applepay/ApplePayRequestBase.h: * Modules/applepay/ApplePayRequestBase.cpp: (WebCore::convertAndValidate): * Modules/applepay/ApplePaySessionPaymentRequest.h: (WebCore::ApplePaySessionPaymentRequest::supportsCouponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setSupportsCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::couponCode const): Added. (WebCore::ApplePaySessionPaymentRequest::setCouponCode): Added. (WebCore::ApplePaySessionPaymentRequest::shippingContactEditingMode const): Added. (WebCore::ApplePaySessionPaymentRequest::setShippingContactEditingMode): Added. * Modules/applepay/ApplePayShippingContactEditingMode.idl: Added. * Modules/applepay/ApplePayShippingContactEditingMode.h: Added. Add members that indicate: - whether this payment request supports a coupon code at all - the initial coupon code (assuming the above) - whether this payment request allows editing the shipping contact (i.e. in-store pickup does not) * dom/EventNames.h: * dom/EventNames.in: * Modules/applepay/ApplePayCouponCodeChangedEvent.idl: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.h: Added. * Modules/applepay/ApplePayCouponCodeChangedEvent.cpp: Added. (WebCore::ApplePayCouponCodeChangedEvent::ApplePayCouponCodeChangedEvent): (WebCore::ApplePayCouponCodeChangedEvent::eventInterface const): Add a `"couponcodechange"` event that is dispatched whenever the user modifies the coupon code for an `ApplePaySession`. * Modules/applepay/ApplePayCouponCodeDetails.idl: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeDetails.idl. * Modules/applepay/ApplePayCouponCodeDetails.h: Copied from Source/WebCore/Modules/applepay/ApplePayPaymentMethodModeUpdate.idl. Used as the `object methodData` when a `PaymentMethodChangeEvent` is dispatched for a `PaymentRequest`. * Modules/applepay/ApplePaySession.idl: * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::completeCouponCodeChange): Added. (WebCore::ApplePaySession::didChangeCouponCode): Renamed from `WebCore::ApplePaySession::didChangePaymentMethodMode`. (WebCore::ApplePaySession::canSuspendWithoutCanceling const): (WebCore::ApplePaySession::canBegin const): (WebCore::ApplePaySession::canAbort const): (WebCore::ApplePaySession::canCancel const): (WebCore::ApplePaySession::canCompleteShippingMethodSelection const): (WebCore::ApplePaySession::canCompleteShippingContactSelection const): (WebCore::ApplePaySession::canCompletePaymentMethodSelection const): (WebCore::ApplePaySession::canCompleteCouponCodeChange const): Renamed from `WebCore::ApplePaySession::canCompletePaymentMethodModeChange const`. (WebCore::ApplePaySession::canCompletePayment const): (WebCore::ApplePaySession::isFinalState const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::paymentMethodUpdated): (WebCore::ApplePayPaymentHandler::didChangeCouponCode): Renamed from `WebCore::ApplePayPaymentHandler::didChangePaymentMethodMode`. Add methods for JS to call and state logic to handle coupon code changes. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::PaymentCoordinator::completePaymentMethodModeChange`. (WebCore::PaymentCoordinator::didChangeCouponCode): Renamed from `WebCore::PaymentCoordinator::didChangePaymentMethodMode`. * Modules/applepay/PaymentCoordinatorClient.h: * loader/EmptyClients.cpp: (WebCore::EmptyPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebCore::EmptyPaymentCoordinatorClient::completePaymentMethodModeChange`. Plumbing up to WebKit. * Modules/applepay/cocoa/PaymentSummaryItemsCocoa.mm: (WebCore::toDate): Added. (WebCore::toCalendarUnit): Added. (WebCore::toPKPaymentSummaryItem): Convert WebCore objects to PassKit objects. * testing/MockPaymentCoordinator.idl: * testing/MockPaymentCoordinator.h: * testing/MockPaymentCoordinator.cpp: (WebCore::MockPaymentCoordinator::showPaymentUI): (WebCore::MockPaymentCoordinator::completeCouponCodeChange): Renamed from `WebCore::MockPaymentCoordinator::completePaymentMethodModeChange`. (WebCore::MockPaymentCoordinator::changeCouponCode): Added. * Modules/applepay/cocoa/PaymentAPIVersionCocoa.mm: (WebCore::PaymentAPIVersion::current): * Modules/applepay/PaymentHeaders.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/ApplePayLineItemData.idl: Removed. * Modules/applepay/ApplePayLineItemData.h: Removed. * Modules/applepay/ApplePayShippingMethodData.idl: Removed. * Modules/applepay/ApplePayShippingMethodData.h: Removed. Remove unnecessary base types after r275169. * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * DerivedSources-input.xcfilelist: * DerivedSources-output.xcfilelist: * DerivedSources.make: Source/WebCore/PAL: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * pal/cocoa/PassKitSoftLink.h: * pal/cocoa/PassKitSoftLink.mm: * pal/spi/cocoa/PassKitSPI.h: Source/WebKit: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * Platform/cocoa/PaymentAuthorizationViewController.mm: (-[WKPaymentAuthorizationViewControllerDelegate paymentAuthorizationViewController:didChangeCouponCode:handler:]): Added. * Platform/ios/PaymentAuthorizationController.mm: (-[WKPaymentAuthorizationControllerDelegate paymentAuthorizationController:didChangeCouponCode:handler:]): Added. * Platform/cocoa/PaymentAuthorizationPresenter.h: * Platform/cocoa/PaymentAuthorizationPresenter.mm: (WebKit::toPKPaymentErrorCode): (WebKit::PaymentAuthorizationPresenter::completeCouponCodeChange): Renamed from `WebKit::PaymentAuthorizationPresenter::completePaymentMethodModeChange`. * Platform/cocoa/WKPaymentAuthorizationDelegate.h: * Platform/cocoa/WKPaymentAuthorizationDelegate.mm: (-[WKPaymentAuthorizationDelegate completeCouponCodeChange:]): Added. (toDateComponents): Added. (toDateComponentsRange): Added. (toShippingMethod): (-[WKPaymentAuthorizationDelegate _didChangeCouponCode:completion:]): Added. Add plumbing from/to PassKit for coupon code changes. * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: * Shared/ApplePay/WebPaymentCoordinatorProxy.h: * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: (WebKit::WebPaymentCoordinatorProxy::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinatorProxy::presenterDidChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinatorProxy::presenterDidChangePaymentMethodMode`. (WebKit::WebPaymentCoordinatorProxy::canBegin const): (WebKit::WebPaymentCoordinatorProxy::canCancel const): (WebKit::WebPaymentCoordinatorProxy::canCompletePayment const): (WebKit::WebPaymentCoordinatorProxy::canAbort const): * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: (WebKit::toNSDateComponents): Added. (WebKit::toPKDateComponentsRange): Added. (WebKit::toPKShippingMethod): (WebKit::toPKShippingContactEditingMode): Added. (WebKit::WebPaymentCoordinatorProxy::platformPaymentRequest): (WebKit::WebPaymentCoordinatorProxy::platformCompleteCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinatorProxy::platformCompletePaymentMethodModeChange`. Convert PassKit objects to/from WebCore objects. * Shared/Cocoa/WebCoreArgumentCodersCocoa.mm: (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::encode): (IPC::ArgumentCoder<WebCore::ApplePaySessionPaymentRequest>::decode): * WebProcess/ApplePay/WebPaymentCoordinator.messages.in: * WebProcess/ApplePay/WebPaymentCoordinator.h: * WebProcess/ApplePay/WebPaymentCoordinator.cpp: (WebKit::WebPaymentCoordinator::completeCouponCodeChange): Renamed from `WebKit::WebPaymentCoordinator::completePaymentMethodModeChange`. (WebKit::WebPaymentCoordinator::didChangeCouponCode): Renamed from `WebKit::WebPaymentCoordinator::didChangePaymentMethodMode`. Plumbing into/from WebCore. Source/WebKitLegacy/mac: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * WebCoreSupport/WebPaymentCoordinatorClient.h: * WebCoreSupport/WebPaymentCoordinatorClient.mm: (WebPaymentCoordinatorClient::completeCouponCodeChange): Renamed from `WebPaymentCoordinatorClient::completePaymentMethodModeChange`. Source/WTF: - recurring line items (`HAVE_PASSKIT_RECURRING_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_RECURRING_LINE_ITEM`) - deferred line items (`HAVE_PASSKIT_DEFERRED_SUMMARY_ITEM` and `ENABLE_APPLE_PAY_DEFERRED_LINE_ITEM`) - estimated shipping dates (`HAVE_PASSKIT_SHIPPING_METHOD_DATE_COMPONENTS_RANGE` and `ENABLE_APPLE_PAY_SHIPPING_METHOD_DATE_COMPONENTS_RANGE`) - coupon code entry (`HAVE_PASSKIT_COUPON_CODE` and `ENABLE_APPLE_PAY_COUPON_CODE`) - shipped vs in-store pickup (`HAVE_PASSKIT_SHIPPING_CONTACT_EDITING_MODE` and `ENABLE_APPLE_PAY_SHIPPING_CONTACT_EDITING_MODE`) * wtf/PlatformHave.h: * wtf/PlatformEnableCocoa.h: LayoutTests: * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalLineItems.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-additionalShippingMethods.https-expected.txt: Added. * http/tests/paymentrequest/ApplePayModifier-total.https.html: Added. * http/tests/paymentrequest/ApplePayModifier-total.https-expected.txt: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https.html: Added. * http/tests/paymentrequest/paymentmethodchange-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-couponCode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https.html: Added. * http/tests/paymentrequest/paymentrequest-shippingContactEditingMode.https-expected.txt: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https.html: Added. * http/tests/paymentrequest/paymentrequest-supportsCouponCode.https-expected.txt: Added. * http/tests/ssl/applepay/ApplePayError-expected.txt: * platform/ios-wk2/TestExpectations: * platform/mac-wk2/TestExpectations: Canonical link: https://commits.webkit.org/238613@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278630 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-08 22:15:18 +00:00
Modules/applepay/ApplePayShippingContactEditingMode.idl
Modules/applepay/ApplePayShippingContactSelectedEvent.idl
Modules/applepay/ApplePayShippingContactUpdate.idl
Modules/applepay/ApplePayShippingMethod.idl
Modules/applepay/ApplePayShippingMethodSelectedEvent.idl
Modules/applepay/ApplePayShippingMethodUpdate.idl
Modules/applepay/ApplePayValidateMerchantEvent.idl
Modules/applepay/paymentrequest/ApplePayModifier.idl
Modules/applepay/paymentrequest/ApplePayRequest.idl
Modules/plugins/QuickTimePluginReplacement.idl
)
set(FEATURE_DEFINES_OBJECTIVE_C "LANGUAGE_OBJECTIVE_C=1 ${FEATURE_DEFINES_WITH_SPACE_SEPARATOR}")
set(ADDITIONAL_BINDINGS_DEPENDENCIES
${WINDOW_CONSTRUCTORS_FILE}
${WORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
${DEDICATEDWORKERGLOBALSCOPE_CONSTRUCTORS_FILE}
)
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
set(CSS_VALUE_PLATFORM_DEFINES "WTF_PLATFORM_MAC=1 HAVE_OS_DARK_MODE_SUPPORT=1 WTF_PLATFORM_COCOA=1")
set(MODERN_MEDIA_CONTROLS_STYLE_SHEETS
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/activity-indicator.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/airplay-button.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/background-tint.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/button.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/buttons-container.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/controls-bar.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/inline-media-controls.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/macos-inline-media-controls.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/media-controls.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/media-document.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/placard.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/slider.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/status-label.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/text-tracks.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/time-label.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/watchos-activity-indicator.css"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/watchos-media-controls.css"
)
add_custom_command(
OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.css
DEPENDS ${MODERN_MEDIA_CONTROLS_STYLE_SHEETS}
COMMAND cat ${MODERN_MEDIA_CONTROLS_STYLE_SHEETS} > ${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.css
VERBATIM)
set(MODERN_MEDIA_CONTROLS_SCRIPTS
"${WEBCORE_DIR}/Modules/modern-media-controls/main.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/gesture-recognizers/gesture-recognizer.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/gesture-recognizers/tap.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/gesture-recognizers/pinch.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/scheduler.js"
[Modern Media Controls] Modern media controls should not need to know about specific platforms in shared code https://bugs.webkit.org/show_bug.cgi?id=227423 Reviewed by Eric Carlson. Source/WebCore: Rather than requiring the shared media control classes to know specifics about the various platforms via the LayoutTraits flags, we now abstract those decisions via a new polymorphic LayoutTraits class, which each platform subclasses and implements. This will gives better separation and will allow easier experimentation with new control patterns. * DerivedSources-input.xcfilelist: * DerivedSources.make: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * Modules/modern-media-controls/js-files: Adds new files for layout traits and its subclasses. * Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::layoutTraitsClassName const): (WebCore::MediaControlsHost::platform const): Deleted. * Modules/mediacontrols/MediaControlsHost.h: * Modules/mediacontrols/MediaControlsHost.idl: Replace platform accessor with a new layoutTraitsClassName, which allows the platform to spcecify which of the trait subclasses to use. * Modules/modern-media-controls/controls/layout-traits.js: Added. * Modules/modern-media-controls/controls/ios-layout-traits.js: Added. * Modules/modern-media-controls/controls/macos-layout-traits.js: Added. * Modules/modern-media-controls/controls/watchos-layout-traits.js: Added. Add new layout trait files. * Modules/modern-media-controls/controls/fullscreen-button.js: * Modules/modern-media-controls/controls/icon-service.js: * Modules/modern-media-controls/controls/ios-inline-media-controls.js: * Modules/modern-media-controls/controls/layout-item.js: * Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js: * Modules/modern-media-controls/controls/macos-inline-media-controls.js: * Modules/modern-media-controls/controls/media-controls.js: * Modules/modern-media-controls/controls/play-pause-button.js: * Modules/modern-media-controls/controls/time-control.js: * Modules/modern-media-controls/controls/watchos-media-controls.js: * Modules/modern-media-controls/media/media-controller.js: * Modules/modern-media-controls/media/tracks-support.js: Replace explicit checks for platform with queries to the layout traits interface. LayoutTests: Update tests and results to use LayoutTraits class. * media/modern-media-controls/airplay-button/airplay-button-on.html: * media/modern-media-controls/airplay-button/airplay-button.html: * media/modern-media-controls/airplay-placard/airplay-placard.html: * media/modern-media-controls/button/button-active-state.html: * media/modern-media-controls/button/button-click-on-edges.html: * media/modern-media-controls/button/button-focus-state.html: * media/modern-media-controls/button/button-icon-name-expected.txt: * media/modern-media-controls/button/button-icon-name.html: * media/modern-media-controls/button/button-on.html: * media/modern-media-controls/forward-button/forward-button.html: * media/modern-media-controls/fullscreen-button/fullscreen-button.html: * media/modern-media-controls/icon-service/icon-service-expected.txt: * media/modern-media-controls/icon-service/icon-service.html: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics-expected.txt: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics.html: * media/modern-media-controls/invalid-placard/invalid-placard.html: * media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-constructor.html: * media/modern-media-controls/layout-item/layout-item-expected.txt: * media/modern-media-controls/layout-item/layout-item.html: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor.html: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor.html: * media/modern-media-controls/media-controller/media-controller-fullscreen-change.html: * media/modern-media-controls/media-controls/media-controls-appear-when-focus.html: * media/modern-media-controls/media-controls/media-controls-constructor-expected.txt: * media/modern-media-controls/media-controls/media-controls-constructor.html: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics-expected.txt: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics.html: * media/modern-media-controls/mute-button/mute-button.html: * media/modern-media-controls/overflow-button/overflow-button.html: * media/modern-media-controls/pip-button/pip-button.html: * media/modern-media-controls/pip-placard/pip-placard.html: * media/modern-media-controls/placard/placard-expected.txt: * media/modern-media-controls/placard/placard.html: * media/modern-media-controls/play-pause-button/play-pause-button.html: * media/modern-media-controls/rewind-button/rewind-button.html: * media/modern-media-controls/skip-back-button/skip-back-button.html: * media/modern-media-controls/skip-forward-button/skip-forward-button.html: * media/modern-media-controls/time-control/time-control-expected.txt: * media/modern-media-controls/time-control/time-control.html: * media/modern-media-controls/tracks-button/tracks-button.html: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor-expected.txt: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor.html: Canonical link: https://commits.webkit.org/239185@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-27 01:07:51 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/layout-traits.js"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/layout-node.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/layout-item.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/icon-service.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/background-tint.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/time-control.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/time-label.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/slider.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/play-pause-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/skip-back-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/skip-forward-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/mute-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/airplay-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/pip-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/tracks-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/fullscreen-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/seek-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/rewind-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/forward-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/overflow-button.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/buttons-container.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/status-label.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/controls-bar.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/auto-hide-controller.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/media-controls.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/background-click-delegate-notifier.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/inline-media-controls.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/ios-inline-media-controls.js"
[Modern Media Controls] Modern media controls should not need to know about specific platforms in shared code https://bugs.webkit.org/show_bug.cgi?id=227423 Reviewed by Eric Carlson. Source/WebCore: Rather than requiring the shared media control classes to know specifics about the various platforms via the LayoutTraits flags, we now abstract those decisions via a new polymorphic LayoutTraits class, which each platform subclasses and implements. This will gives better separation and will allow easier experimentation with new control patterns. * DerivedSources-input.xcfilelist: * DerivedSources.make: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * Modules/modern-media-controls/js-files: Adds new files for layout traits and its subclasses. * Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::layoutTraitsClassName const): (WebCore::MediaControlsHost::platform const): Deleted. * Modules/mediacontrols/MediaControlsHost.h: * Modules/mediacontrols/MediaControlsHost.idl: Replace platform accessor with a new layoutTraitsClassName, which allows the platform to spcecify which of the trait subclasses to use. * Modules/modern-media-controls/controls/layout-traits.js: Added. * Modules/modern-media-controls/controls/ios-layout-traits.js: Added. * Modules/modern-media-controls/controls/macos-layout-traits.js: Added. * Modules/modern-media-controls/controls/watchos-layout-traits.js: Added. Add new layout trait files. * Modules/modern-media-controls/controls/fullscreen-button.js: * Modules/modern-media-controls/controls/icon-service.js: * Modules/modern-media-controls/controls/ios-inline-media-controls.js: * Modules/modern-media-controls/controls/layout-item.js: * Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js: * Modules/modern-media-controls/controls/macos-inline-media-controls.js: * Modules/modern-media-controls/controls/media-controls.js: * Modules/modern-media-controls/controls/play-pause-button.js: * Modules/modern-media-controls/controls/time-control.js: * Modules/modern-media-controls/controls/watchos-media-controls.js: * Modules/modern-media-controls/media/media-controller.js: * Modules/modern-media-controls/media/tracks-support.js: Replace explicit checks for platform with queries to the layout traits interface. LayoutTests: Update tests and results to use LayoutTraits class. * media/modern-media-controls/airplay-button/airplay-button-on.html: * media/modern-media-controls/airplay-button/airplay-button.html: * media/modern-media-controls/airplay-placard/airplay-placard.html: * media/modern-media-controls/button/button-active-state.html: * media/modern-media-controls/button/button-click-on-edges.html: * media/modern-media-controls/button/button-focus-state.html: * media/modern-media-controls/button/button-icon-name-expected.txt: * media/modern-media-controls/button/button-icon-name.html: * media/modern-media-controls/button/button-on.html: * media/modern-media-controls/forward-button/forward-button.html: * media/modern-media-controls/fullscreen-button/fullscreen-button.html: * media/modern-media-controls/icon-service/icon-service-expected.txt: * media/modern-media-controls/icon-service/icon-service.html: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics-expected.txt: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics.html: * media/modern-media-controls/invalid-placard/invalid-placard.html: * media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-constructor.html: * media/modern-media-controls/layout-item/layout-item-expected.txt: * media/modern-media-controls/layout-item/layout-item.html: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor.html: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor.html: * media/modern-media-controls/media-controller/media-controller-fullscreen-change.html: * media/modern-media-controls/media-controls/media-controls-appear-when-focus.html: * media/modern-media-controls/media-controls/media-controls-constructor-expected.txt: * media/modern-media-controls/media-controls/media-controls-constructor.html: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics-expected.txt: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics.html: * media/modern-media-controls/mute-button/mute-button.html: * media/modern-media-controls/overflow-button/overflow-button.html: * media/modern-media-controls/pip-button/pip-button.html: * media/modern-media-controls/pip-placard/pip-placard.html: * media/modern-media-controls/placard/placard-expected.txt: * media/modern-media-controls/placard/placard.html: * media/modern-media-controls/play-pause-button/play-pause-button.html: * media/modern-media-controls/rewind-button/rewind-button.html: * media/modern-media-controls/skip-back-button/skip-back-button.html: * media/modern-media-controls/skip-forward-button/skip-forward-button.html: * media/modern-media-controls/time-control/time-control-expected.txt: * media/modern-media-controls/time-control/time-control.html: * media/modern-media-controls/tracks-button/tracks-button.html: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor-expected.txt: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor.html: Canonical link: https://commits.webkit.org/239185@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-27 01:07:51 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/ios-layout-traits.js"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/macos-inline-media-controls.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js"
[Modern Media Controls] Modern media controls should not need to know about specific platforms in shared code https://bugs.webkit.org/show_bug.cgi?id=227423 Reviewed by Eric Carlson. Source/WebCore: Rather than requiring the shared media control classes to know specifics about the various platforms via the LayoutTraits flags, we now abstract those decisions via a new polymorphic LayoutTraits class, which each platform subclasses and implements. This will gives better separation and will allow easier experimentation with new control patterns. * DerivedSources-input.xcfilelist: * DerivedSources.make: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * Modules/modern-media-controls/js-files: Adds new files for layout traits and its subclasses. * Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::layoutTraitsClassName const): (WebCore::MediaControlsHost::platform const): Deleted. * Modules/mediacontrols/MediaControlsHost.h: * Modules/mediacontrols/MediaControlsHost.idl: Replace platform accessor with a new layoutTraitsClassName, which allows the platform to spcecify which of the trait subclasses to use. * Modules/modern-media-controls/controls/layout-traits.js: Added. * Modules/modern-media-controls/controls/ios-layout-traits.js: Added. * Modules/modern-media-controls/controls/macos-layout-traits.js: Added. * Modules/modern-media-controls/controls/watchos-layout-traits.js: Added. Add new layout trait files. * Modules/modern-media-controls/controls/fullscreen-button.js: * Modules/modern-media-controls/controls/icon-service.js: * Modules/modern-media-controls/controls/ios-inline-media-controls.js: * Modules/modern-media-controls/controls/layout-item.js: * Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js: * Modules/modern-media-controls/controls/macos-inline-media-controls.js: * Modules/modern-media-controls/controls/media-controls.js: * Modules/modern-media-controls/controls/play-pause-button.js: * Modules/modern-media-controls/controls/time-control.js: * Modules/modern-media-controls/controls/watchos-media-controls.js: * Modules/modern-media-controls/media/media-controller.js: * Modules/modern-media-controls/media/tracks-support.js: Replace explicit checks for platform with queries to the layout traits interface. LayoutTests: Update tests and results to use LayoutTraits class. * media/modern-media-controls/airplay-button/airplay-button-on.html: * media/modern-media-controls/airplay-button/airplay-button.html: * media/modern-media-controls/airplay-placard/airplay-placard.html: * media/modern-media-controls/button/button-active-state.html: * media/modern-media-controls/button/button-click-on-edges.html: * media/modern-media-controls/button/button-focus-state.html: * media/modern-media-controls/button/button-icon-name-expected.txt: * media/modern-media-controls/button/button-icon-name.html: * media/modern-media-controls/button/button-on.html: * media/modern-media-controls/forward-button/forward-button.html: * media/modern-media-controls/fullscreen-button/fullscreen-button.html: * media/modern-media-controls/icon-service/icon-service-expected.txt: * media/modern-media-controls/icon-service/icon-service.html: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics-expected.txt: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics.html: * media/modern-media-controls/invalid-placard/invalid-placard.html: * media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-constructor.html: * media/modern-media-controls/layout-item/layout-item-expected.txt: * media/modern-media-controls/layout-item/layout-item.html: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor.html: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor.html: * media/modern-media-controls/media-controller/media-controller-fullscreen-change.html: * media/modern-media-controls/media-controls/media-controls-appear-when-focus.html: * media/modern-media-controls/media-controls/media-controls-constructor-expected.txt: * media/modern-media-controls/media-controls/media-controls-constructor.html: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics-expected.txt: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics.html: * media/modern-media-controls/mute-button/mute-button.html: * media/modern-media-controls/overflow-button/overflow-button.html: * media/modern-media-controls/pip-button/pip-button.html: * media/modern-media-controls/pip-placard/pip-placard.html: * media/modern-media-controls/placard/placard-expected.txt: * media/modern-media-controls/placard/placard.html: * media/modern-media-controls/play-pause-button/play-pause-button.html: * media/modern-media-controls/rewind-button/rewind-button.html: * media/modern-media-controls/skip-back-button/skip-back-button.html: * media/modern-media-controls/skip-forward-button/skip-forward-button.html: * media/modern-media-controls/time-control/time-control-expected.txt: * media/modern-media-controls/time-control/time-control.html: * media/modern-media-controls/tracks-button/tracks-button.html: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor-expected.txt: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor.html: Canonical link: https://commits.webkit.org/239185@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-27 01:07:51 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/macos-layout-traits.js"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/placard.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/airplay-placard.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/invalid-placard.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/pip-placard.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/watchos-activity-indicator.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/watchos-media-controls.js"
[Modern Media Controls] Modern media controls should not need to know about specific platforms in shared code https://bugs.webkit.org/show_bug.cgi?id=227423 Reviewed by Eric Carlson. Source/WebCore: Rather than requiring the shared media control classes to know specifics about the various platforms via the LayoutTraits flags, we now abstract those decisions via a new polymorphic LayoutTraits class, which each platform subclasses and implements. This will gives better separation and will allow easier experimentation with new control patterns. * DerivedSources-input.xcfilelist: * DerivedSources.make: * PlatformMac.cmake: * WebCore.xcodeproj/project.pbxproj: * Modules/modern-media-controls/js-files: Adds new files for layout traits and its subclasses. * Modules/mediacontrols/MediaControlsHost.cpp: (WebCore::MediaControlsHost::layoutTraitsClassName const): (WebCore::MediaControlsHost::platform const): Deleted. * Modules/mediacontrols/MediaControlsHost.h: * Modules/mediacontrols/MediaControlsHost.idl: Replace platform accessor with a new layoutTraitsClassName, which allows the platform to spcecify which of the trait subclasses to use. * Modules/modern-media-controls/controls/layout-traits.js: Added. * Modules/modern-media-controls/controls/ios-layout-traits.js: Added. * Modules/modern-media-controls/controls/macos-layout-traits.js: Added. * Modules/modern-media-controls/controls/watchos-layout-traits.js: Added. Add new layout trait files. * Modules/modern-media-controls/controls/fullscreen-button.js: * Modules/modern-media-controls/controls/icon-service.js: * Modules/modern-media-controls/controls/ios-inline-media-controls.js: * Modules/modern-media-controls/controls/layout-item.js: * Modules/modern-media-controls/controls/macos-fullscreen-media-controls.js: * Modules/modern-media-controls/controls/macos-inline-media-controls.js: * Modules/modern-media-controls/controls/media-controls.js: * Modules/modern-media-controls/controls/play-pause-button.js: * Modules/modern-media-controls/controls/time-control.js: * Modules/modern-media-controls/controls/watchos-media-controls.js: * Modules/modern-media-controls/media/media-controller.js: * Modules/modern-media-controls/media/tracks-support.js: Replace explicit checks for platform with queries to the layout traits interface. LayoutTests: Update tests and results to use LayoutTraits class. * media/modern-media-controls/airplay-button/airplay-button-on.html: * media/modern-media-controls/airplay-button/airplay-button.html: * media/modern-media-controls/airplay-placard/airplay-placard.html: * media/modern-media-controls/button/button-active-state.html: * media/modern-media-controls/button/button-click-on-edges.html: * media/modern-media-controls/button/button-focus-state.html: * media/modern-media-controls/button/button-icon-name-expected.txt: * media/modern-media-controls/button/button-icon-name.html: * media/modern-media-controls/button/button-on.html: * media/modern-media-controls/forward-button/forward-button.html: * media/modern-media-controls/fullscreen-button/fullscreen-button.html: * media/modern-media-controls/icon-service/icon-service-expected.txt: * media/modern-media-controls/icon-service/icon-service.html: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics-expected.txt: * media/modern-media-controls/invalid-placard/invalid-placard-constrained-metrics.html: * media/modern-media-controls/invalid-placard/invalid-placard.html: * media/modern-media-controls/ios-inline-media-controls/ios-inline-media-controls-constructor.html: * media/modern-media-controls/layout-item/layout-item-expected.txt: * media/modern-media-controls/layout-item/layout-item.html: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-fullscreen-media-controls/macos-fullscreen-media-controls-constructor.html: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor-expected.txt: * media/modern-media-controls/macos-inline-media-controls/macos-inline-media-controls-constructor.html: * media/modern-media-controls/media-controller/media-controller-fullscreen-change.html: * media/modern-media-controls/media-controls/media-controls-appear-when-focus.html: * media/modern-media-controls/media-controls/media-controls-constructor-expected.txt: * media/modern-media-controls/media-controls/media-controls-constructor.html: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics-expected.txt: * media/modern-media-controls/media-controls/media-controls-placard-compressed-metrics.html: * media/modern-media-controls/mute-button/mute-button.html: * media/modern-media-controls/overflow-button/overflow-button.html: * media/modern-media-controls/pip-button/pip-button.html: * media/modern-media-controls/pip-placard/pip-placard.html: * media/modern-media-controls/placard/placard-expected.txt: * media/modern-media-controls/placard/placard.html: * media/modern-media-controls/play-pause-button/play-pause-button.html: * media/modern-media-controls/rewind-button/rewind-button.html: * media/modern-media-controls/skip-back-button/skip-back-button.html: * media/modern-media-controls/skip-forward-button/skip-forward-button.html: * media/modern-media-controls/time-control/time-control-expected.txt: * media/modern-media-controls/time-control/time-control.html: * media/modern-media-controls/tracks-button/tracks-button.html: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor-expected.txt: * media/modern-media-controls/watchos-media-controls/watchos-media-controls-constructor.html: Canonical link: https://commits.webkit.org/239185@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@279309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-06-27 01:07:51 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/controls/watchos-layout-traits.js"
Resurrect Mac CMake build https://bugs.webkit.org/show_bug.cgi?id=224084 Patch by Alex Christensen <achristensen@webkit.org> on 2021-04-05 Reviewed by Tim Horton. .: * Source/cmake/OptionsMac.cmake: Source/JavaScriptCore: * PlatformMac.cmake: Source/ThirdParty/ANGLE: * PlatformMac.cmake: Added. Source/ThirdParty/libwebrtc: * CMakeLists.txt: Source/WebCore: * PlatformMac.cmake: * SourcesCocoa.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mac/WebGLBlocklist.mm: * platform/text/cocoa/LocalizedDateCache.h: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.h. * platform/text/cocoa/LocalizedDateCache.mm: Renamed from Source/WebCore/platform/text/ios/LocalizedDateCache.mm. (WebCore::localizedDateCache): (WebCore::_localeChanged): (WebCore::LocalizedDateCache::LocalizedDateCache): (WebCore::LocalizedDateCache::~LocalizedDateCache): (WebCore::LocalizedDateCache::localeChanged): (WebCore::LocalizedDateCache::formatterForDateType): (WebCore::LocalizedDateCache::maximumWidthForDateType): (WebCore::LocalizedDateCache::createFormatterForType): (WebCore::LocalizedDateCache::calculateMaximumWidth): * testing/cocoa/WebViewVisualIdentificationOverlay.mm: Source/WebCore/PAL: * pal/PlatformMac.cmake: Source/WebKit: * NetworkProcess/PrivateClickMeasurementNetworkLoader.cpp: (WebKit::PrivateClickMeasurementNetworkLoader::didReceiveBuffer): * PlatformMac.cmake: * Shared/Cocoa/SandboxExtensionCocoa.mm: * SourcesCocoa.txt: * UIProcess/Media/MediaSessionCoordinatorProxyPrivate.h: Source/WebKitLegacy: * PlatformMac.cmake: Source/WTF: * wtf/PlatformMac.cmake: Tools: * TestWebKitAPI/PlatformMac.cmake: * WebKitTestRunner/PlatformMac.cmake: Canonical link: https://commits.webkit.org/236142@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-04-06 03:19:14 +00:00
"${WEBCORE_DIR}/Modules/modern-media-controls/media/media-controller-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/airplay-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/audio-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/controls-visibility-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/fullscreen-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/mute-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/overflow-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/pip-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/placard-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/playback-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/scrubbing-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/seek-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/seek-backward-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/seek-forward-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/skip-back-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/skip-forward-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/start-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/status-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/time-control-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/tracks-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/volume-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/media-document-controller.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/watchos-media-controls-support.js"
"${WEBCORE_DIR}/Modules/modern-media-controls/media/media-controller.js"
)
add_custom_command(
OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.js
DEPENDS ${MODERN_MEDIA_CONTROLS_SCRIPTS}
COMMAND cat ${MODERN_MEDIA_CONTROLS_SCRIPTS} > ${WebCore_DERIVED_SOURCES_DIR}/ModernMediaControls.js
VERBATIM)
add_custom_command(
OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibraryFunctionMap.cpp
MAIN_DEPENDENCY Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt
DEPENDS Modules/webgpu/WHLSL/WHLSLBuildStandardLibraryFunctionMap.py
COMMAND ${PYTHON_EXECUTABLE} ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLBuildStandardLibraryFunctionMap.py ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibraryFunctionMap.cpp
VERBATIM)
add_custom_command(
OUTPUT ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibrary.h
DEPENDS ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt
COMMAND gzip -cn ${WEBCORE_DIR}/Modules/webgpu/WHLSL/WHLSLStandardLibrary.txt > ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibrary.gz
COMMAND ${PERL_EXECUTABLE} ${JavaScriptCore_SCRIPTS_DIR}/xxd.pl WHLSLStandardLibrary ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibrary.gz ${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibrary.h
VERBATIM)
list(APPEND WebCore_SOURCES
${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibrary.h
${WebCore_DERIVED_SOURCES_DIR}/WHLSLStandardLibraryFunctionMap.cpp
)
Progress towards CMake on Mac. https://bugs.webkit.org/show_bug.cgi?id=149123 Reviewed by Chris Dumez. .: * Source/cmake/OptionsMac.cmake: * Source/cmake/WebKitFeatures.cmake: Defined and enabled some more features needed on Mac. * Source/cmake/WebKitMacros.cmake: Objective C bindings need special changes when generating: Some of the bindings do not generate a .mm file but the header is needed. Some of the bindings do generate a .mm file that doesn't compile but the header is needed. In order to handle these cases, it is necessary to change the GENERATE_BINDINGS macro just for ObjC. Source/JavaScriptCore: * CMakeLists.txt: Make forwarding headers for the replay subdirectory. * PlatformMac.cmake: Make forwarding headers for the generated inspector headers. They should eventually either be packaged correctly with JavaScriptCore headers and included correctly. Source/WebCore: * CMakeLists.txt: Added some more files. * PlatformMac.cmake: Added more files and listed the strange ObjC bindings. * contentextensions/DFACombiner.cpp: * contentextensions/DFACombiner.h: Added preprocessor protection. * platform/FileSystem.h: Include utility. It's needed to compile the different configurations. * platform/ScrollAnimator.cpp: ScrollAnimator is an abstract class on Mac. Don't compile it. * platform/graphics/ca/cocoa/PlatformCALayerCocoa.mm: FontAntialiasingStateSaver.h is only used on iOS. * rendering/RenderThemeMac.mm: config.h needs to be outside the #if !PLATFORM(IOS) to compile correctly without precompiled headers. Source/WebKit: * CMakeLists.txt: * PlatformMac.cmake: Added more sources, make non-c99 sources compile as objc++ * PlatformWin.cmake: Moved WebCoreTestSupport sources and includes to CMakeLists.txt to share. Source/WebKit/mac: * WebView/WebPDFDocumentExtras.mm: (appendValuesInPDFNameSubtreeToVector): * WebView/WebPDFView.mm: Removed cmake include quirks that are not needed when we include things correctly from Quartz.framework/Frameworks. Source/WebKit2: * PlatformMac.cmake: Added some more sources. Canonical link: https://commits.webkit.org/167232@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@189749 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-09-14 21:22:46 +00:00
list(APPEND WebCoreTestSupport_LIBRARIES PRIVATE WebCore)
list(APPEND WebCoreTestSupport_SOURCES
testing/Internals.mm
testing/MockApplePaySetupFeature.cpp
testing/MockContentFilter.cpp
testing/MockContentFilterSettings.cpp
testing/MockMediaSessionCoordinator.cpp
testing/MockPaymentCoordinator.cpp
testing/MockPreviewLoaderClient.cpp
testing/ServiceWorkerInternals.mm
[Cocoa] Consolidate duplicate copies of WebArchiveDumpSupport in DRT and WKTR into WebCoreTestSupport https://bugs.webkit.org/show_bug.cgi?id=166789 Reviewed by Alex Christensen. Source/WebCore: There were duplicate implementations of WebArchiveDumpSupport in DumpRenderTree and WebKitTestRunner. This change consolidates these into a single implementation in WebCoreTestSupport. * PlatformMac.cmake: Added WebArchiveDumpSupport.mm to WebCoreTestSupport. * WebCore.xcodeproj/project.pbxproj: Ditto. Also made WebArchiveDumpSupport.h a Private header. * platform/spi/cf/CFNetworkSPI.h: Moved CFNetwork forward declarations from WebArchiveDumpSupport to here. * testing/cocoa/WebArchiveDumpSupport.h: Added. * testing/cocoa/WebArchiveDumpSupport.mm: Merged WebArchiveDumpSupport.cpp and WebArchiveDumpSupport{Cocoa,Mac}.mm into a single file. Tools: * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj: * DumpRenderTree/PlatformMac.cmake: * DumpRenderTree/cf/WebArchiveDumpSupport.cpp: Removed. * DumpRenderTree/cf/WebArchiveDumpSupport.h: Removed. * DumpRenderTree/mac/DumpRenderTree.mm: Called WebCoreTestSupport::createXMLStringFromWebArchiveData() instead of createXMLStringFromWebArchiveData(). * DumpRenderTree/mac/WebArchiveDumpSupportMac.mm: Removed. * WebKitTestRunner/Configurations/Base.xcconfig: Added $(BUILT_PRODUCTS_DIR)/WebCoreTestSupport to HEADER_SEARCH_PATHS. * WebKitTestRunner/InjectedBundle/InjectedBundlePage.cpp: (WTR::InjectedBundlePage::dumpDOMAsWebArchive): Called WebCoreTestSupport::createXMLStringFromWebArchiveData() instead of createXMLStringFromWebArchiveData(). * WebKitTestRunner/InjectedBundle/cocoa/WebArchiveDumpSupportCocoa.mm: Removed. * WebKitTestRunner/PlatformMac.cmake: * WebKitTestRunner/WebKitTestRunner.xcodeproj/project.pbxproj: * WebKitTestRunner/cf/WebArchiveDumpSupport.h: Removed. Canonical link: https://commits.webkit.org/183918@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@210467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-01-07 03:49:04 +00:00
testing/cocoa/WebArchiveDumpSupport.mm
)
list(APPEND WebCoreTestSupport_IDL_FILES
testing/MockPaymentAddress.idl
testing/MockPaymentContactFields.idl
testing/MockPaymentCoordinator.idl
testing/MockPaymentError.idl
testing/MockWebAuthenticationConfiguration.idl
)
set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-compatibility_version 1 -current_version ${WEBKIT_MAC_VERSION} -force_load ${CMAKE_BINARY_DIR}/lib/libPAL.a")
if (NOT EXISTS ${CMAKE_BINARY_DIR}/WebCore/WebKitAvailability.h)
file(COPY platform/cocoa/WebKitAvailability.h DESTINATION ${CMAKE_BINARY_DIR}/WebCore)
endif ()