Changeset 282567 in webkit
- Timestamp:
- Sep 16, 2021, 11:47:45 AM (4 years ago)
- Location:
- trunk/Source
- Files:
-
- 41 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r282523 r282567 1 2021-09-16 Tim Horton <[email protected]> 2 3 Adjust ARKIT_INLINE_PREVIEW* compile time flags 4 https://bugs.webkit.org/show_bug.cgi?id=230332 5 6 Reviewed by Sam Weinig. 7 8 * wtf/PlatformEnableCocoa.h: 9 Make these ENABLE()s instead of HAVE()s (as they control a WebKit feature). 10 Also, disable the ASVInlinePreview version if WKSeparatedModelView is enabled, 11 we don't need both, and we currently always make a WKSeparatedModelView 12 in that case anyway. 13 14 * wtf/PlatformHave.h: 15 Stop using __has_include in favor of version checks, now that 16 the header has been around for a while. 17 1 18 2021-09-16 Youenn Fablet <[email protected]> 2 19 -
trunk/Source/WTF/wtf/PlatformEnableCocoa.h
r282513 r282567 719 719 #define ENABLE_PREDEFINED_COLOR_SPACE_DISPLAY_P3 1 720 720 #endif 721 722 #if PLATFORM(IOS_FAMILY) && HAVE(ASV_INLINE_PREVIEW) && !ENABLE(SEPARATED_MODEL) 723 #define ENABLE_ARKIT_INLINE_PREVIEW_IOS 1 724 #endif 725 726 #if PLATFORM(MAC) && HAVE(ASV_INLINE_PREVIEW) 727 #define ENABLE_ARKIT_INLINE_PREVIEW_MAC 1 728 #endif 729 730 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) || ENABLE(ARKIT_INLINE_PREVIEW_MAC) 731 #define ENABLE_ARKIT_INLINE_PREVIEW 1 732 #endif -
trunk/Source/WTF/wtf/PlatformHave.h
r282513 r282567 1011 1011 #endif 1012 1012 1013 #if defined __has_include && __has_include(<AssetViewer/ASVInlinePreview.h>) 1014 #if (PLATFORM(IOS) || PLATFORM(MACCATALYST)) && !PLATFORM(IOS_SIMULATOR) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000 1015 #define HAVE_ARKIT_INLINE_PREVIEW_IOS 1 1016 #endif 1017 1018 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000 1019 #define HAVE_ARKIT_INLINE_PREVIEW_MAC 1 1020 #endif 1021 1022 #if defined(HAVE_ARKIT_INLINE_PREVIEW_IOS) || defined(HAVE_ARKIT_INLINE_PREVIEW_MAC) 1023 #define HAVE_ARKIT_INLINE_PREVIEW 1 1024 #endif 1013 #if (PLATFORM(IOS) && !PLATFORM(IOS_SIMULATOR) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000) \ 1014 || (PLATFORM(MACCATALYST) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 150000) \ 1015 || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 120000) 1016 #define HAVE_ASV_INLINE_PREVIEW 1 1025 1017 #endif 1026 1018 -
trunk/Source/WebCore/ChangeLog
r282563 r282567 1 2021-09-16 Tim Horton <[email protected]> 2 3 Adjust ARKIT_INLINE_PREVIEW* compile time flags 4 https://bugs.webkit.org/show_bug.cgi?id=230332 5 6 Reviewed by Sam Weinig. 7 8 * Modules/model-element/HTMLModelElement.cpp: 9 (WebCore::HTMLModelElement::~HTMLModelElement): 10 (WebCore::HTMLModelElement::setSourceURL): 11 (WebCore::HTMLModelElement::notifyFinished): 12 (WebCore::HTMLModelElement::enterFullscreen): 13 * Modules/model-element/HTMLModelElement.h: 14 * Modules/model-element/HTMLModelElementCocoa.mm: 15 * loader/EmptyClients.cpp: 16 * loader/EmptyClients.h: 17 * page/ChromeClient.h: 18 * rendering/RenderLayerBacking.cpp: 19 (WebCore::RenderLayerBacking::updateConfiguration): 20 Adopt the new name. 21 1 22 2021-09-16 Simon Fraser <[email protected]> 2 23 -
trunk/Source/WebCore/Modules/model-element/HTMLModelElement.cpp
r279477 r282567 43 43 #include <wtf/URL.h> 44 44 45 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)45 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 46 46 #include "Chrome.h" 47 47 #include "ChromeClient.h" … … 71 71 } 72 72 73 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)73 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 74 74 clearFile(); 75 75 #endif … … 137 137 138 138 if (m_sourceURL.isEmpty()) { 139 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)139 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 140 140 clearFile(); 141 141 #endif … … 168 168 } 169 169 170 #if HAVE(ARKIT_INLINE_PREVIEW)170 #if ENABLE(ARKIT_INLINE_PREVIEW) 171 171 static String& sharedModelElementCacheDirectory() 172 172 { … … 236 236 m_readyPromise->resolve(*this); 237 237 238 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)238 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 239 239 modelDidChange(); 240 240 #endif … … 243 243 void HTMLModelElement::enterFullscreen() 244 244 { 245 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)245 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 246 246 auto* page = document().page(); 247 247 if (!page) -
trunk/Source/WebCore/Modules/model-element/HTMLModelElement.h
r279477 r282567 36 36 #include <wtf/UniqueRef.h> 37 37 38 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)38 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 39 39 #include "PlatformLayer.h" 40 40 OBJC_CLASS ASVInlinePreview; … … 62 62 RefPtr<Model> model() const; 63 63 64 #if HAVE(ARKIT_INLINE_PREVIEW)64 #if ENABLE(ARKIT_INLINE_PREVIEW) 65 65 WEBCORE_EXPORT static void setModelElementCacheDirectory(const String&); 66 66 WEBCORE_EXPORT static const String& modelElementCacheDirectory(); 67 67 #endif 68 68 69 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)69 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 70 70 PlatformLayer* platformLayer() const; 71 71 WEBCORE_EXPORT void inlinePreviewDidObtainContextId(const String& uuid, uint32_t contextId); … … 80 80 HTMLModelElement& readyPromiseResolve(); 81 81 82 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)82 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 83 83 void clearFile(); 84 84 void createFile(); … … 103 103 bool m_dataComplete { false }; 104 104 105 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)105 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 106 106 String m_filePath; 107 107 RetainPtr<ASVInlinePreview> m_inlinePreview; -
trunk/Source/WebCore/Modules/model-element/HTMLModelElementCocoa.mm
r279477 r282567 27 27 #include "HTMLModelElement.h" 28 28 29 #if ENABLE(MODEL_ELEMENT) && HAVE(ARKIT_INLINE_PREVIEW_MAC)29 #if ENABLE(MODEL_ELEMENT) && ENABLE(ARKIT_INLINE_PREVIEW_MAC) 30 30 31 31 #include "Chrome.h" … … 131 131 } 132 132 133 #endif // ENABLE(MODEL_ELEMENT) && HAVE(ARKIT_INLINE_PREVIEW_MAC)133 #endif // ENABLE(MODEL_ELEMENT) && ENABLE(ARKIT_INLINE_PREVIEW_MAC) -
trunk/Source/WebCore/PAL/ChangeLog
r282464 r282567 1 2021-09-16 Tim Horton <[email protected]> 2 3 Adjust ARKIT_INLINE_PREVIEW* compile time flags 4 https://bugs.webkit.org/show_bug.cgi?id=230332 5 6 Reviewed by Sam Weinig. 7 8 * pal/spi/ios/SystemPreviewSPI.h: 9 * pal/spi/mac/SystemPreviewSPI.h: 10 Adopt the new name. 11 1 12 2021-09-15 Devin Rousso <[email protected]> 2 13 -
trunk/Source/WebCore/PAL/pal/spi/ios/SystemPreviewSPI.h
r279420 r282567 26 26 #if USE(APPLE_INTERNAL_SDK) 27 27 28 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)28 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 29 29 #import <AssetViewer/ARQuickLookWebKitItem.h> 30 30 #endif … … 34 34 #endif 35 35 36 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)36 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 37 37 #import <AssetViewer/ASVInlinePreview.h> 38 38 #endif … … 58 58 #endif 59 59 60 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)60 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 61 61 #import <ARKit/ARKit.h> 62 62 … … 73 73 #endif 74 74 75 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)75 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 76 76 77 77 @class ASVInlinePreview; -
trunk/Source/WebCore/PAL/pal/spi/mac/SystemPreviewSPI.h
r279451 r282567 26 26 #if USE(APPLE_INTERNAL_SDK) 27 27 28 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)28 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 29 29 #import <AssetViewer/ASVInlinePreview.h> 30 30 #endif … … 32 32 #else 33 33 34 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)34 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 35 35 36 36 @class ASVInlinePreview; -
trunk/Source/WebCore/loader/EmptyClients.cpp
r282429 r282567 582 582 } 583 583 584 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)584 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 585 585 void EmptyChromeClient::takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID) const 586 586 { … … 588 588 #endif 589 589 590 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)590 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 591 591 void EmptyChromeClient::modelElementDidCreatePreview(WebCore::HTMLModelElement&, const URL&, const String&, const WebCore::FloatSize&) const 592 592 { -
trunk/Source/WebCore/loader/EmptyClients.h
r279988 r282567 218 218 bool shouldNotifyOnFormChanges() final { return false; } 219 219 220 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)220 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 221 221 void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID) const final; 222 222 #endif … … 224 224 RefPtr<Icon> createIconForFiles(const Vector<String>& /* filenames */) final { return nullptr; } 225 225 226 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)226 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 227 227 void modelElementDidCreatePreview(WebCore::HTMLModelElement&, const URL&, const String&, const WebCore::FloatSize&) const final; 228 228 #endif -
trunk/Source/WebCore/page/ChromeClient.h
r282429 r282567 79 79 #endif 80 80 81 #if HAVE(ARKIT_INLINE_PREVIEW)81 #if ENABLE(ARKIT_INLINE_PREVIEW) 82 82 class HTMLModelElement; 83 83 #endif … … 605 605 #endif 606 606 607 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)607 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 608 608 virtual void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID) const { } 609 609 #endif 610 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)610 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 611 611 virtual void modelElementDidCreatePreview(WebCore::HTMLModelElement&, const URL&, const String&, const WebCore::FloatSize&) const { }; 612 612 #endif -
trunk/Source/WebCore/rendering/RenderLayerBacking.cpp
r282335 r282567 1098 1098 else if (is<RenderModel>(renderer())) { 1099 1099 auto element = downcast<HTMLModelElement>(renderer().element()); 1100 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)1100 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 1101 1101 if (auto* platformLayer = element->platformLayer()) 1102 1102 m_graphicsLayer->setContentsToPlatformLayer(platformLayer, GraphicsLayer::ContentsLayerPurpose::Model); -
trunk/Source/WebKit/ChangeLog
r282490 r282567 1 2021-09-16 Tim Horton <[email protected]> 2 3 Adjust ARKIT_INLINE_PREVIEW* compile time flags 4 https://bugs.webkit.org/show_bug.cgi?id=230332 5 6 Reviewed by Sam Weinig. 7 8 * Shared/WebProcessDataStoreParameters.h: 9 (WebKit::WebProcessDataStoreParameters::encode const): 10 (WebKit::WebProcessDataStoreParameters::decode): 11 * UIProcess/Cocoa/ModelElementControllerCocoa.mm: 12 * UIProcess/Cocoa/SystemPreviewControllerCocoa.mm: 13 * UIProcess/ModelElementController.cpp: 14 * UIProcess/ModelElementController.h: 15 * UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm: 16 (WebKit::RemoteLayerTreeHost::makeNode): 17 * UIProcess/WebPageProxy.cpp: 18 (WebKit::WebPageProxy::didAttachToRunningProcess): 19 (WebKit::WebPageProxy::resetState): 20 * UIProcess/WebPageProxy.h: 21 * UIProcess/WebPageProxy.messages.in: 22 * UIProcess/WebProcessPool.cpp: 23 (WebKit::WebProcessPool::webProcessDataStoreParameters): 24 * UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm: 25 * UIProcess/WebsiteData/WebsiteDataStore.cpp: 26 (WebKit::WebsiteDataStore::resolveDirectoriesIfNecessary): 27 * UIProcess/WebsiteData/WebsiteDataStore.h: 28 * UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp: 29 (WebKit::WebsiteDataStoreConfiguration::WebsiteDataStoreConfiguration): 30 (WebKit::WebsiteDataStoreConfiguration::copy const): 31 * UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h: 32 * UIProcess/ios/WKModelInteractionGestureRecognizer.h: 33 * UIProcess/ios/WKModelInteractionGestureRecognizer.mm: 34 * UIProcess/ios/WKModelView.h: 35 * UIProcess/ios/WKModelView.mm: 36 * WebProcess/WebCoreSupport/WebChromeClient.cpp: 37 * WebProcess/WebCoreSupport/WebChromeClient.h: 38 * WebProcess/WebPage/WebPage.cpp: 39 * WebProcess/WebPage/WebPage.h: 40 * WebProcess/WebPage/WebPage.messages.in: 41 * WebProcess/WebProcess.cpp: 42 (WebKit::WebProcess::setWebsiteDataStoreParameters): 43 * WebProcess/cocoa/WebProcessCocoa.mm: 44 (WebKit::WebProcess::platformSetWebsiteDataStoreParameters): 45 Adopt the new name. 46 1 47 2021-09-16 Carlos Garcia Campos <[email protected]> 2 48 -
trunk/Source/WebKit/Shared/WebProcessDataStoreParameters.h
r282429 r282567 52 52 HashMap<TopFrameDomain, SubResourceDomain> domainsWithStorageAccessQuirk; 53 53 #endif 54 #if HAVE(ARKIT_INLINE_PREVIEW)54 #if ENABLE(ARKIT_INLINE_PREVIEW) 55 55 String modelElementCacheDirectory; 56 56 SandboxExtension::Handle modelElementCacheDirectoryExtensionHandle; … … 80 80 encoder << domainsWithStorageAccessQuirk; 81 81 #endif 82 #if HAVE(ARKIT_INLINE_PREVIEW)82 #if ENABLE(ARKIT_INLINE_PREVIEW) 83 83 encoder << modelElementCacheDirectory; 84 84 encoder << modelElementCacheDirectoryExtensionHandle; … … 151 151 return std::nullopt; 152 152 #endif 153 #if HAVE(ARKIT_INLINE_PREVIEW)153 #if ENABLE(ARKIT_INLINE_PREVIEW) 154 154 String modelElementCacheDirectory; 155 155 if (!decoder.decode(modelElementCacheDirectory)) … … 182 182 WTFMove(*domainsWithStorageAccessQuirk), 183 183 #endif 184 #if HAVE(ARKIT_INLINE_PREVIEW)184 #if ENABLE(ARKIT_INLINE_PREVIEW) 185 185 WTFMove(modelElementCacheDirectory), 186 186 WTFMove(*modelElementCacheDirectoryExtensionHandle), -
trunk/Source/WebKit/UIProcess/Cocoa/ModelElementControllerCocoa.mm
r279501 r282567 27 27 #import "ModelElementController.h" 28 28 29 #if HAVE(ARKIT_INLINE_PREVIEW)29 #if ENABLE(ARKIT_INLINE_PREVIEW) 30 30 31 31 #import "Logging.h" 32 32 #import "WebPageProxy.h" 33 33 34 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)34 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 35 35 #import "APIUIClient.h" 36 36 #import "RemoteLayerTreeDrawingAreaProxy.h" … … 42 42 #endif 43 43 44 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)44 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 45 45 #import <pal/spi/mac/SystemPreviewSPI.h> 46 46 #import <wtf/MainThread.h> … … 52 52 namespace WebKit { 53 53 54 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)54 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 55 55 56 56 void ModelElementController::takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId) … … 123 123 #endif 124 124 125 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)125 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 126 126 127 127 void ModelElementController::modelElementDidCreatePreview(const WebCore::ElementContext& context, const URL& fileURL, const String& uuid, const WebCore::FloatSize& size) -
trunk/Source/WebKit/UIProcess/Cocoa/SystemPreviewControllerCocoa.mm
r272936 r282567 40 40 #import <wtf/WeakObjCPtr.h> 41 41 42 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)42 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 43 43 #import <pal/spi/ios/SystemPreviewSPI.h> 44 44 SOFT_LINK_PRIVATE_FRAMEWORK(ARKit); … … 58 58 #endif 59 59 RetainPtr<NSItemProvider> _itemProvider; 60 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)60 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 61 61 RetainPtr<ARQuickLookWebKitItem> _item; 62 62 #else … … 109 109 NSString *contentType = WebCore::UTIFromMIMEType("model/vnd.usdz+zip"_s); 110 110 111 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)111 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 112 112 auto previewItem = adoptNS([allocARQuickLookPreviewItemInstance() initWithFileAtURL:_downloadedURL]); 113 113 [previewItem setCanonicalWebPageURL:_originatingPageURL]; … … 160 160 } 161 161 162 #if HAVE(ARKIT_QUICK_LOOK_PREVIEW_ITEM)162 #if ENABLE(ARKIT_QUICK_LOOK_PREVIEW_ITEM) 163 163 - (void)previewItem:(ARQuickLookWebKitItem *)previewItem didReceiveMessage:(NSDictionary *)message 164 164 { -
trunk/Source/WebKit/UIProcess/ModelElementController.cpp
r279477 r282567 27 27 #include "ModelElementController.h" 28 28 29 #if HAVE(ARKIT_INLINE_PREVIEW)29 #if ENABLE(ARKIT_INLINE_PREVIEW) 30 30 31 31 #include "WebPageProxy.h" -
trunk/Source/WebKit/UIProcess/ModelElementController.h
r279477 r282567 26 26 #pragma once 27 27 28 #if HAVE(ARKIT_INLINE_PREVIEW)28 #if ENABLE(ARKIT_INLINE_PREVIEW) 29 29 30 30 #include <WebCore/ElementContext.h> … … 34 34 #include <wtf/WeakPtr.h> 35 35 36 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)36 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 37 37 OBJC_CLASS ASVInlinePreview; 38 38 #endif … … 49 49 WebPageProxy& page() { return m_webPageProxy; } 50 50 51 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)51 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 52 52 void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId); 53 53 #endif 54 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)54 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 55 55 void modelElementDidCreatePreview(const WebCore::ElementContext&, const URL&, const String&, const WebCore::FloatSize&); 56 56 #endif … … 58 58 private: 59 59 WebPageProxy& m_webPageProxy; 60 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)60 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 61 61 HashMap<String, RetainPtr<ASVInlinePreview>> m_inlinePreviews; 62 62 #endif -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm
r279312 r282567 36 36 #import <pal/spi/cocoa/QuartzCoreSPI.h> 37 37 38 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)38 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 39 39 #import "WKModelView.h" 40 40 #endif … … 100 100 #if ENABLE(SEPARATED_MODEL) 101 101 return makeWithView(adoptNS([[WKSeparatedModelView alloc] initWithModel:*properties.model])); 102 #elif HAVE(ARKIT_INLINE_PREVIEW_IOS)102 #elif ENABLE(ARKIT_INLINE_PREVIEW_IOS) 103 103 return makeWithView(adoptNS([[WKModelView alloc] initWithModel:*properties.model])); 104 104 #else -
trunk/Source/WebKit/UIProcess/WebPageProxy.cpp
r282429 r282567 1035 1035 #endif 1036 1036 1037 #if HAVE(ARKIT_INLINE_PREVIEW)1037 #if ENABLE(ARKIT_INLINE_PREVIEW) 1038 1038 if (m_preferences->modelElementEnabled()) { 1039 1039 ASSERT(!m_modelElementController); … … 7897 7897 #endif 7898 7898 7899 #if HAVE(ARKIT_INLINE_PREVIEW)7899 #if ENABLE(ARKIT_INLINE_PREVIEW) 7900 7900 m_modelElementController = nullptr; 7901 7901 #endif … … 10832 10832 #endif 10833 10833 10834 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)10834 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 10835 10835 void WebPageProxy::takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId) 10836 10836 { … … 10839 10839 #endif 10840 10840 10841 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)10841 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 10842 10842 void WebPageProxy::modelElementDidCreatePreview(const WebCore::ElementContext& context, const URL& url, const String& uuid, const FloatSize& size) 10843 10843 { -
trunk/Source/WebKit/UIProcess/WebPageProxy.h
r282429 r282567 193 193 #endif 194 194 195 #if HAVE(ARKIT_INLINE_PREVIEW)195 #if ENABLE(ARKIT_INLINE_PREVIEW) 196 196 #include "ModelElementController.h" 197 197 #endif … … 579 579 #endif 580 580 581 #if HAVE(ARKIT_INLINE_PREVIEW)581 #if ENABLE(ARKIT_INLINE_PREVIEW) 582 582 ModelElementController* modelElementController() { return m_modelElementController.get(); } 583 583 #endif 584 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)584 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 585 585 void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId); 586 586 #endif 587 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)587 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 588 588 void modelElementDidCreatePreview(const WebCore::ElementContext&, const URL&, const String&, const WebCore::FloatSize&); 589 589 void modelElementPreviewDidObtainContextId(const WebCore::ElementContext&, const String&, uint32_t); … … 2638 2638 #endif 2639 2639 2640 #if HAVE(ARKIT_INLINE_PREVIEW)2640 #if ENABLE(ARKIT_INLINE_PREVIEW) 2641 2641 std::unique_ptr<ModelElementController> m_modelElementController; 2642 2642 #endif -
trunk/Source/WebKit/UIProcess/WebPageProxy.messages.in
r282314 r282567 595 595 #endif 596 596 597 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)597 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 598 598 TakeModelElementFullscreen(uint64_t contentLayerID) 599 599 #endif 600 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)600 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 601 601 ModelElementDidCreatePreview(struct WebCore::ElementContext elementContext, URL url, String uuid, WebCore::FloatSize size) 602 602 #endif -
trunk/Source/WebKit/UIProcess/WebProcessPool.cpp
r282429 r282567 707 707 } 708 708 709 #if HAVE(ARKIT_INLINE_PREVIEW)709 #if ENABLE(ARKIT_INLINE_PREVIEW) 710 710 auto modelElementCacheDirectory = websiteDataStore.resolvedModelElementCacheDirectory(); 711 711 SandboxExtension::Handle modelElementCacheDirectoryExtensionHandle; … … 732 732 m_domainsWithCrossPageStorageAccessQuirk, 733 733 #endif 734 #if HAVE(ARKIT_INLINE_PREVIEW)734 #if ENABLE(ARKIT_INLINE_PREVIEW) 735 735 WTFMove(modelElementCacheDirectory), 736 736 WTFMove(modelElementCacheDirectoryExtensionHandle), -
trunk/Source/WebKit/UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm
r282429 r282567 332 332 } 333 333 334 #if HAVE(ARKIT_INLINE_PREVIEW)334 #if ENABLE(ARKIT_INLINE_PREVIEW) 335 335 String WebsiteDataStore::defaultModelElementCacheDirectory() 336 336 { -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.cpp
r282429 r282567 274 274 if (!m_configuration->generalStorageDirectory().isEmpty()) 275 275 m_resolvedConfiguration->setGeneralStorageDirectory(resolveAndCreateReadWriteDirectoryForSandboxExtension(m_configuration->generalStorageDirectory())); 276 #if HAVE(ARKIT_INLINE_PREVIEW)276 #if ENABLE(ARKIT_INLINE_PREVIEW) 277 277 if (!m_configuration->modelElementCacheDirectory().isEmpty()) 278 278 m_resolvedConfiguration->setModelElementCacheDirectory(resolveAndCreateReadWriteDirectoryForSandboxExtension(m_configuration->modelElementCacheDirectory())); -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStore.h
r282429 r282567 257 257 const String& resolvedResourceLoadStatisticsDirectory() const { return m_resolvedConfiguration->resourceLoadStatisticsDirectory(); } 258 258 const String& resolvedHSTSStorageDirectory() const { return m_resolvedConfiguration->hstsStorageDirectory(); } 259 #if HAVE(ARKIT_INLINE_PREVIEW)259 #if ENABLE(ARKIT_INLINE_PREVIEW) 260 260 const String& resolvedModelElementCacheDirectory() const { return m_resolvedConfiguration->modelElementCacheDirectory(); } 261 261 #endif … … 341 341 static WTF::String defaultHSTSDirectory(); 342 342 #endif 343 #if HAVE(ARKIT_INLINE_PREVIEW)343 #if ENABLE(ARKIT_INLINE_PREVIEW) 344 344 static WTF::String defaultModelElementCacheDirectory(); 345 345 #endif -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp
r282368 r282567 49 49 setDeviceIdHashSaltsStorageDirectory(WebsiteDataStore::defaultDeviceIdHashSaltsStorageDirectory()); 50 50 setJavaScriptConfigurationDirectory(WebsiteDataStore::defaultJavaScriptConfigurationDirectory()); 51 #if HAVE(ARKIT_INLINE_PREVIEW)51 #if ENABLE(ARKIT_INLINE_PREVIEW) 52 52 setModelElementCacheDirectory(WebsiteDataStore::defaultModelElementCacheDirectory()); 53 53 #endif … … 107 107 copy->m_proxyConfiguration = adoptCF(CFDictionaryCreateCopy(nullptr, this->m_proxyConfiguration.get())); 108 108 #endif 109 #if HAVE(ARKIT_INLINE_PREVIEW)109 #if ENABLE(ARKIT_INLINE_PREVIEW) 110 110 copy->m_modelElementCacheDirectory = this->m_modelElementCacheDirectory; 111 111 #endif -
trunk/Source/WebKit/UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h
r282368 r282567 75 75 void setLocalStorageDirectory(String&& directory) { m_localStorageDirectory = WTFMove(directory); } 76 76 77 #if HAVE(ARKIT_INLINE_PREVIEW)77 #if ENABLE(ARKIT_INLINE_PREVIEW) 78 78 const String& modelElementCacheDirectory() const { return m_modelElementCacheDirectory; } 79 79 void setModelElementCacheDirectory(String&& directory) { m_modelElementCacheDirectory = WTFMove(directory); } … … 198 198 String m_webSQLDatabaseDirectory; 199 199 String m_hstsStorageDirectory; 200 #if HAVE(ARKIT_INLINE_PREVIEW)200 #if ENABLE(ARKIT_INLINE_PREVIEW) 201 201 String m_modelElementCacheDirectory; 202 202 #endif -
trunk/Source/WebKit/UIProcess/ios/WKModelInteractionGestureRecognizer.h
r279402 r282567 24 24 */ 25 25 26 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)26 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 27 27 28 28 #import "UIKitSPI.h" -
trunk/Source/WebKit/UIProcess/ios/WKModelInteractionGestureRecognizer.mm
r279402 r282567 27 27 #import "WKModelInteractionGestureRecognizer.h" 28 28 29 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)29 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 30 30 31 31 #import "RemoteLayerTreeViews.h" -
trunk/Source/WebKit/UIProcess/ios/WKModelView.h
r279402 r282567 24 24 */ 25 25 26 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)26 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 27 27 28 28 #import "RemoteLayerTreeViews.h" -
trunk/Source/WebKit/UIProcess/ios/WKModelView.mm
r279402 r282567 27 27 #import "WKModelView.h" 28 28 29 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)29 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 30 30 31 31 #import "Logging.h" -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp
r282429 r282567 1527 1527 #endif 1528 1528 1529 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)1529 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 1530 1530 void WebChromeClient::takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId) const 1531 1531 { … … 1534 1534 #endif 1535 1535 1536 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)1536 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 1537 1537 void WebChromeClient::modelElementDidCreatePreview(WebCore::HTMLModelElement& element, const URL& url, const String& uuid, const WebCore::FloatSize& size) const 1538 1538 { -
trunk/Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h
r282429 r282567 456 456 #endif 457 457 458 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)458 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 459 459 void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId) const final; 460 460 #endif 461 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)461 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 462 462 void modelElementDidCreatePreview(WebCore::HTMLModelElement&, const URL&, const String&, const WebCore::FloatSize&) const final; 463 463 #endif -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.cpp
r282429 r282567 275 275 #endif 276 276 277 #if HAVE(ARKIT_INLINE_PREVIEW)277 #if ENABLE(ARKIT_INLINE_PREVIEW) 278 278 #include <WebCore/HTMLModelElement.h> 279 279 #endif … … 7723 7723 #endif 7724 7724 7725 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)7725 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 7726 7726 void WebPage::takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId) 7727 7727 { … … 7730 7730 #endif 7731 7731 7732 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)7732 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 7733 7733 void WebPage::modelElementDidCreatePreview(WebCore::HTMLModelElement& element, const URL& url, const String& uuid, const WebCore::FloatSize& size) 7734 7734 { -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.h
r282429 r282567 216 216 class VisiblePosition; 217 217 218 #if HAVE(ARKIT_INLINE_PREVIEW)218 #if ENABLE(ARKIT_INLINE_PREVIEW) 219 219 class HTMLModelElement; 220 220 #endif … … 1474 1474 #endif 1475 1475 1476 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)1476 #if ENABLE(ARKIT_INLINE_PREVIEW_IOS) 1477 1477 void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId); 1478 1478 #endif 1479 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)1479 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 1480 1480 void modelElementDidCreatePreview(WebCore::HTMLModelElement&, const URL&, const String&, const WebCore::FloatSize&); 1481 1481 void modelElementPreviewDidObtainContextId(const WebCore::ElementContext&, const String&, uint32_t); -
trunk/Source/WebKit/WebProcess/WebPage/WebPage.messages.in
r282429 r282567 640 640 ScrollToRect(WebCore::FloatRect targetRect, WebCore::FloatPoint origin) 641 641 642 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)642 #if ENABLE(ARKIT_INLINE_PREVIEW_MAC) 643 643 ModelElementPreviewDidObtainContextId(struct WebCore::ElementContext elementContext, String uuid, uint32_t contextId) 644 644 #endif -
trunk/Source/WebKit/WebProcess/WebProcess.cpp
r282483 r282567 145 145 #include <wtf/text/StringHash.h> 146 146 147 #if HAVE(ARKIT_INLINE_PREVIEW)147 #if ENABLE(ARKIT_INLINE_PREVIEW) 148 148 #include <WebCore/HTMLModelElement.h> 149 149 #endif … … 580 580 #endif 581 581 582 #if HAVE(ARKIT_INLINE_PREVIEW)582 #if ENABLE(ARKIT_INLINE_PREVIEW) 583 583 if (!parameters.modelElementCacheDirectory.isEmpty()) 584 584 WebCore::HTMLModelElement::setModelElementCacheDirectory(parameters.modelElementCacheDirectory); -
trunk/Source/WebKit/WebProcess/cocoa/WebProcessCocoa.mm
r282364 r282567 480 480 SandboxExtension::consumePermanently(parameters.mediaKeyStorageDirectoryExtensionHandle); 481 481 SandboxExtension::consumePermanently(parameters.javaScriptConfigurationDirectoryExtensionHandle); 482 #if HAVE(ARKIT_INLINE_PREVIEW)482 #if ENABLE(ARKIT_INLINE_PREVIEW) 483 483 SandboxExtension::consumePermanently(parameters.modelElementCacheDirectoryExtensionHandle); 484 484 #endif
Note:
See TracChangeset
for help on using the changeset viewer.