Ignore:
Timestamp:
Sep 16, 2021, 11:47:45 AM (4 years ago)
Author:
[email protected]
Message:

Adjust ARKIT_INLINE_PREVIEW* compile time flags
https://bugs.webkit.org/show_bug.cgi?id=230332

Reviewed by Sam Weinig.

Source/WebCore:

  • Modules/model-element/HTMLModelElement.cpp:

(WebCore::HTMLModelElement::~HTMLModelElement):
(WebCore::HTMLModelElement::setSourceURL):
(WebCore::HTMLModelElement::notifyFinished):
(WebCore::HTMLModelElement::enterFullscreen):

  • Modules/model-element/HTMLModelElement.h:
  • Modules/model-element/HTMLModelElementCocoa.mm:
  • loader/EmptyClients.cpp:
  • loader/EmptyClients.h:
  • page/ChromeClient.h:
  • rendering/RenderLayerBacking.cpp:

(WebCore::RenderLayerBacking::updateConfiguration):
Adopt the new name.

Source/WebCore/PAL:

  • pal/spi/ios/SystemPreviewSPI.h:
  • pal/spi/mac/SystemPreviewSPI.h:

Adopt the new name.

Source/WebKit:

  • Shared/WebProcessDataStoreParameters.h:

(WebKit::WebProcessDataStoreParameters::encode const):
(WebKit::WebProcessDataStoreParameters::decode):

  • UIProcess/Cocoa/ModelElementControllerCocoa.mm:
  • UIProcess/Cocoa/SystemPreviewControllerCocoa.mm:
  • UIProcess/ModelElementController.cpp:
  • UIProcess/ModelElementController.h:
  • UIProcess/RemoteLayerTree/ios/RemoteLayerTreeHostIOS.mm:

(WebKit::RemoteLayerTreeHost::makeNode):

  • UIProcess/WebPageProxy.cpp:

(WebKit::WebPageProxy::didAttachToRunningProcess):
(WebKit::WebPageProxy::resetState):

  • UIProcess/WebPageProxy.h:
  • UIProcess/WebPageProxy.messages.in:
  • UIProcess/WebProcessPool.cpp:

(WebKit::WebProcessPool::webProcessDataStoreParameters):

  • UIProcess/WebsiteData/Cocoa/WebsiteDataStoreCocoa.mm:
  • UIProcess/WebsiteData/WebsiteDataStore.cpp:

(WebKit::WebsiteDataStore::resolveDirectoriesIfNecessary):

  • UIProcess/WebsiteData/WebsiteDataStore.h:
  • UIProcess/WebsiteData/WebsiteDataStoreConfiguration.cpp:

(WebKit::WebsiteDataStoreConfiguration::WebsiteDataStoreConfiguration):
(WebKit::WebsiteDataStoreConfiguration::copy const):

  • UIProcess/WebsiteData/WebsiteDataStoreConfiguration.h:
  • UIProcess/ios/WKModelInteractionGestureRecognizer.h:
  • UIProcess/ios/WKModelInteractionGestureRecognizer.mm:
  • UIProcess/ios/WKModelView.h:
  • UIProcess/ios/WKModelView.mm:
  • WebProcess/WebCoreSupport/WebChromeClient.cpp:
  • WebProcess/WebCoreSupport/WebChromeClient.h:
  • WebProcess/WebPage/WebPage.cpp:
  • WebProcess/WebPage/WebPage.h:
  • WebProcess/WebPage/WebPage.messages.in:
  • WebProcess/WebProcess.cpp:

(WebKit::WebProcess::setWebsiteDataStoreParameters):

  • WebProcess/cocoa/WebProcessCocoa.mm:

(WebKit::WebProcess::platformSetWebsiteDataStoreParameters):
Adopt the new name.

Source/WTF:

  • wtf/PlatformEnableCocoa.h:

Make these ENABLE()s instead of HAVE()s (as they control a WebKit feature).
Also, disable the ASVInlinePreview version if WKSeparatedModelView is enabled,
we don't need both, and we currently always make a WKSeparatedModelView
in that case anyway.

  • wtf/PlatformHave.h:

Stop using has_include in favor of version checks, now that
the header has been around for a while.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/UIProcess/ModelElementController.h

    r279477 r282567  
    2626#pragma once
    2727
    28 #if HAVE(ARKIT_INLINE_PREVIEW)
     28#if ENABLE(ARKIT_INLINE_PREVIEW)
    2929
    3030#include <WebCore/ElementContext.h>
     
    3434#include <wtf/WeakPtr.h>
    3535
    36 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)
     36#if ENABLE(ARKIT_INLINE_PREVIEW_MAC)
    3737OBJC_CLASS ASVInlinePreview;
    3838#endif
     
    4949    WebPageProxy& page() { return m_webPageProxy; }
    5050
    51 #if HAVE(ARKIT_INLINE_PREVIEW_IOS)
     51#if ENABLE(ARKIT_INLINE_PREVIEW_IOS)
    5252    void takeModelElementFullscreen(WebCore::GraphicsLayer::PlatformLayerID contentLayerId);
    5353#endif
    54 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)
     54#if ENABLE(ARKIT_INLINE_PREVIEW_MAC)
    5555    void modelElementDidCreatePreview(const WebCore::ElementContext&, const URL&, const String&, const WebCore::FloatSize&);
    5656#endif
     
    5858private:
    5959    WebPageProxy& m_webPageProxy;
    60 #if HAVE(ARKIT_INLINE_PREVIEW_MAC)
     60#if ENABLE(ARKIT_INLINE_PREVIEW_MAC)
    6161    HashMap<String, RetainPtr<ASVInlinePreview>> m_inlinePreviews;
    6262#endif
Note: See TracChangeset for help on using the changeset viewer.