Changeset 287279 in webkit
- Timestamp:
- Dec 20, 2021, 2:14:50 PM (4 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r287276 r287279 1 2021-12-20 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 Add some missing API availability macros around some WebXR SPI 4 https://bugs.webkit.org/show_bug.cgi?id=234521 5 6 Reviewed by Tim Horton. 7 8 Add some missing API availability macros around some WebXR-related SPI that was introduced in r286318. 9 Also remove a few unnecessary `PLATFORM(COCOA)` compile-time guards, and add a missing `#import` to fix the 10 non-unified build. 11 12 * UIProcess/API/Cocoa/WKUIDelegatePrivate.h: 13 * UIProcess/Cocoa/PlatformXRCoordinator.mm: 14 * UIProcess/Cocoa/UIDelegate.h: 15 * UIProcess/Cocoa/UIDelegate.mm: 16 (WebKit::UIDelegate::setDelegate): 17 1 18 2021-12-20 Alex Christensen <achristensen@webkit.org> 2 19 -
trunk/Source/WebKit/UIProcess/API/Cocoa/WKUIDelegatePrivate.h
r286911 r287279 93 93 _WKXRSessionModeImmersiveVr, 94 94 _WKXRSessionModeImmersiveAr, 95 } ;95 } WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 96 96 97 97 typedef NS_OPTIONS(NSUInteger, _WKXRSessionFeatureFlags) { … … 102 102 _WKXRSessionFeatureFlagsReferenceSpaceTypeBoundedFloor = 1 << 3, 103 103 _WKXRSessionFeatureFlagsReferenceSpaceTypeUnbounded = 1 << 4, 104 } ;104 } WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 105 105 106 106 @protocol WKUIDelegatePrivate <WKUIDelegate> … … 176 176 - (void)_webViewDidDisableInspectorBrowserDomain:(WKWebView *)webView WK_API_AVAILABLE(macos(12.0), ios(15.0)); 177 177 178 - (void)_webView:(WKWebView *)webView requestPermissionForXRSessionOrigin:(NSString *)originString mode:(_WKXRSessionMode)mode grantedFeatures:(_WKXRSessionFeatureFlags)grantedFeatures consentRequiredFeatures:(_WKXRSessionFeatureFlags)consentRequiredFeatures consentOptionalFeatures:(_WKXRSessionFeatureFlags)consentOptionalFeatures completionHandler:(void (^)(_WKXRSessionFeatureFlags))completionHandler ;178 - (void)_webView:(WKWebView *)webView requestPermissionForXRSessionOrigin:(NSString *)originString mode:(_WKXRSessionMode)mode grantedFeatures:(_WKXRSessionFeatureFlags)grantedFeatures consentRequiredFeatures:(_WKXRSessionFeatureFlags)consentRequiredFeatures consentOptionalFeatures:(_WKXRSessionFeatureFlags)consentOptionalFeatures completionHandler:(void (^)(_WKXRSessionFeatureFlags))completionHandler WK_API_AVAILABLE(macos(WK_MAC_TBA), ios(WK_IOS_TBA)); 179 179 - (void)_webView:(WKWebView *)webView startXRSessionWithCompletionHandler:(void (^)(id))completionHandler WK_API_AVAILABLE(macos(12.0), ios(15.0)); 180 180 - (void)_webView:(WKWebView *)webView requestNotificationPermissionForSecurityOrigin:(WKSecurityOrigin *)securityOrigin decisionHandler:(void (^)(BOOL))decisionHandler WK_API_AVAILABLE(macos(10.13.4), ios(WK_IOS_TBA)); -
trunk/Source/WebKit/UIProcess/Cocoa/PlatformXRCoordinator.mm
r279822 r287279 26 26 #import "config.h" 27 27 #import "PlatformXRCoordinator.h" 28 #import "PlatformXRSystem.h" 28 29 29 30 #if ENABLE(WEBXR) && USE(APPLE_INTERNAL_SDK) -
trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.h
r286911 r287279 175 175 void didDisableInspectorBrowserDomain(WebPageProxy&) final; 176 176 177 #if ENABLE(WEBXR) && PLATFORM(COCOA)177 #if ENABLE(WEBXR) 178 178 void requestPermissionOnXRSessionFeatures(WebPageProxy&, const WebCore::SecurityOriginData&, PlatformXR::SessionMode, const PlatformXR::Device::FeatureList& /* granted */, const PlatformXR::Device::FeatureList& /* consentRequired */, const PlatformXR::Device::FeatureList& /* consentOptional */, CompletionHandler<void(std::optional<PlatformXR::Device::FeatureList>&&)>&&) final; 179 179 void startXRSession(WebPageProxy&, CompletionHandler<void(RetainPtr<id>)>&&) final; … … 269 269 bool webViewDidEnableInspectorBrowserDomain : 1; 270 270 bool webViewDidDisableInspectorBrowserDomain : 1; 271 #if ENABLE(WEBXR) && PLATFORM(COCOA)271 #if ENABLE(WEBXR) 272 272 bool webViewRequestPermissionForXRSessionOriginModeAndFeaturesWithCompletionHandler: 1; 273 273 bool webViewStartXRSessionWithCompletionHandler : 1; -
trunk/Source/WebKit/UIProcess/Cocoa/UIDelegate.mm
r286911 r287279 194 194 m_delegateMethods.webViewDidDisableInspectorBrowserDomain = [delegate respondsToSelector:@selector(_webViewDidDisableInspectorBrowserDomain:)]; 195 195 196 #if ENABLE(WEBXR) && PLATFORM(COCOA)196 #if ENABLE(WEBXR) 197 197 m_delegateMethods.webViewRequestPermissionForXRSessionOriginModeAndFeaturesWithCompletionHandler = [delegate respondsToSelector:@selector(_webView:requestPermissionForXRSessionOrigin:mode:grantedFeatures:consentRequiredFeatures:consentOptionalFeatures:completionHandler:)]; 198 198 m_delegateMethods.webViewStartXRSessionWithCompletionHandler = [delegate respondsToSelector:@selector(_webView:startXRSessionWithCompletionHandler:)]; … … 1686 1686 } 1687 1687 1688 #if ENABLE(WEBXR) && PLATFORM(COCOA)1688 #if ENABLE(WEBXR) 1689 1689 static _WKXRSessionMode toWKXRSessionMode(PlatformXR::SessionMode mode) 1690 1690 {
Note:
See TracChangeset
for help on using the changeset viewer.