Changeset 242356 in webkit
- Timestamp:
- Mar 4, 2019, 8:47:58 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 4 added
- 1 deleted
- 13 edited
- 7 copied
-
WTF/ChangeLog (modified) (1 diff)
-
WTF/wtf/FeatureDefines.h (modified) (2 diffs)
-
WebKit/CMakeLists.txt (modified) (2 diffs)
-
WebKit/ChangeLog (modified) (1 diff)
-
WebKit/DerivedSources-input.xcfilelist (modified) (2 diffs)
-
WebKit/DerivedSources.make (modified) (2 diffs)
-
WebKit/Shared/ApplePay (added)
-
WebKit/Shared/ApplePay/WebPaymentCoordinatorProxy.cpp (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp )
-
WebKit/Shared/ApplePay/WebPaymentCoordinatorProxy.h (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.h ) (1 diff)
-
WebKit/Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in )
-
WebKit/Shared/ApplePay/cocoa (added)
-
WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h ) (2 diffs)
-
WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm ) (21 diffs)
-
WebKit/Shared/ApplePay/ios (added)
-
WebKit/Shared/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm )
-
WebKit/Shared/ApplePay/mac (added)
-
WebKit/Shared/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm (copied) (copied from trunk/Source/WebKit/UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm )
-
WebKit/Shared/mac/WebHitTestResultData.mm (modified) (1 diff)
-
WebKit/SourcesCocoa.txt (modified) (3 diffs)
-
WebKit/UIProcess/ApplePay (deleted)
-
WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.h (modified) (1 diff)
-
WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.mm (modified) (1 diff)
-
WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.h (modified) (1 diff)
-
WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm (modified) (1 diff)
-
WebKit/WebKit.xcodeproj/project.pbxproj (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r242353 r242356 1 2019-03-04 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Move WebPaymentCoordinatorProxy from Source/WebKit/UIProcess to Source/WebKit/Shared 4 https://bugs.webkit.org/show_bug.cgi?id=195080 5 <rdar://problem/48421558> 6 7 Reviewed by Antti Koivisto. 8 9 * wtf/FeatureDefines.h: 10 1 11 2019-03-04 Michael Catanzaro <mcatanzaro@igalia.com> 2 12 -
trunk/Source/WTF/wtf/FeatureDefines.h
r241337 r242356 180 180 #endif 181 181 182 #if !defined(HAVE_PASSKIT_GRANULAR_ERRORS) 183 #define HAVE_PASSKIT_GRANULAR_ERRORS 1 184 #endif 185 182 186 #endif /* PLATFORM(IOS_FAMILY) */ 183 187 … … 264 268 #if !defined(ENABLE_MEDIA_SOURCE) 265 269 #define ENABLE_MEDIA_SOURCE 1 270 #endif 271 272 #if !defined(HAVE_PASSKIT_GRANULAR_ERRORS) 273 #define HAVE_PASSKIT_GRANULAR_ERRORS __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 266 274 #endif 267 275 -
trunk/Source/WebKit/CMakeLists.txt
r240683 r242356 22 22 "${WEBKIT_DIR}/Shared/API" 23 23 "${WEBKIT_DIR}/Shared/API/c" 24 "${WEBKIT_DIR}/Shared/ApplePay" 24 25 "${WEBKIT_DIR}/Shared/Authentication" 25 26 "${WEBKIT_DIR}/Shared/CoreIPCSupport" … … 37 38 "${WEBKIT_DIR}/UIProcess/API/C" 38 39 "${WEBKIT_DIR}/UIProcess/API/cpp" 39 "${WEBKIT_DIR}/UIProcess/ApplePay"40 40 "${WEBKIT_DIR}/UIProcess/Authentication" 41 41 "${WEBKIT_DIR}/UIProcess/Automation" -
trunk/Source/WebKit/ChangeLog
r242355 r242356 1 2019-03-04 Andy Estes <aestes@apple.com> 2 3 [Apple Pay] Move WebPaymentCoordinatorProxy from Source/WebKit/UIProcess to Source/WebKit/Shared 4 https://bugs.webkit.org/show_bug.cgi?id=195080 5 <rdar://problem/48421558> 6 7 Reviewed by Antti Koivisto. 8 9 * CMakeLists.txt: 10 * DerivedSources-input.xcfilelist: 11 * DerivedSources.make: 12 * Shared/ApplePay/WebPaymentCoordinatorProxy.cpp: Renamed from Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp. 13 * Shared/ApplePay/WebPaymentCoordinatorProxy.h: Renamed from Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.h. 14 * Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in: Renamed from Source/WebKit/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in. 15 * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h: Renamed from Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h. 16 * Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm: Renamed from Source/WebKit/UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm. 17 * Shared/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm: Renamed from Source/WebKit/UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm. 18 * Shared/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm: Renamed from Source/WebKit/UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm. 19 * Shared/mac/WebHitTestResultData.mm: 20 * SourcesCocoa.txt: 21 * UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.h: 22 * UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.mm: 23 * UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.h: 24 * UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm: 25 * WebKit.xcodeproj/project.pbxproj: 26 1 27 2019-03-04 Jer Noble <jer.noble@apple.com> 2 28 -
trunk/Source/WebKit/DerivedSources-input.xcfilelist
r242139 r242356 53 53 $(PROJECT_DIR)/Scripts/webkit/parser.py 54 54 $(PROJECT_DIR)/Shared/API/Cocoa/RemoteObjectRegistry.messages.in 55 $(PROJECT_DIR)/Shared/ApplePay/WebPaymentCoordinatorProxy.messages.in 55 56 $(PROJECT_DIR)/Shared/Authentication/AuthenticationManager.messages.in 56 57 $(PROJECT_DIR)/Shared/AuxiliaryProcess.messages.in … … 59 60 $(PROJECT_DIR)/Shared/WebConnection.messages.in 60 61 $(PROJECT_DIR)/Shared/WebPreferences.yaml 61 $(PROJECT_DIR)/UIProcess/ApplePay/WebPaymentCoordinatorProxy.messages.in62 62 $(PROJECT_DIR)/UIProcess/Automation/Automation.json 63 63 $(PROJECT_DIR)/UIProcess/Automation/WebAutomationSession.messages.in -
trunk/Source/WebKit/DerivedSources.make
r242139 r242356 36 36 $(WebKit2)/Shared \ 37 37 $(WebKit2)/Shared/API/Cocoa \ 38 $(WebKit2)/Shared/ApplePay \ 38 39 $(WebKit2)/Shared/Authentication \ 39 40 $(WebKit2)/Shared/mac \ … … 65 66 $(WebKit2)/WebProcess \ 66 67 $(WebKit2)/UIProcess \ 67 $(WebKit2)/UIProcess/ApplePay \68 68 $(WebKit2)/UIProcess/Automation \ 69 69 $(WebKit2)/UIProcess/Cocoa \ -
trunk/Source/WebKit/Shared/ApplePay/WebPaymentCoordinatorProxy.h
r242355 r242356 126 126 Vector<String> platformAvailablePaymentNetworks(); 127 127 bool platformCanMakePayments(); 128 void platformCanMakePaymentsWithActiveCard(const String& merchantIdentifier, const String& domainName, WTF::Function<void (bool)>&& completionHandler);129 void platformOpenPaymentSetup(const String& merchantIdentifier, const String& domainName, WTF::Function<void (bool)>&& completionHandler);128 void platformCanMakePaymentsWithActiveCard(const String& merchantIdentifier, const String& domainName, WTF::Function<void(bool)>&& completionHandler); 129 void platformOpenPaymentSetup(const String& merchantIdentifier, const String& domainName, WTF::Function<void(bool)>&& completionHandler); 130 130 void platformShowPaymentUI(const URL& originatingURL, const Vector<URL>& linkIconURLs, const WebCore::ApplePaySessionPaymentRequest&, CompletionHandler<void(bool)>&&); 131 131 void platformCompleteMerchantValidation(const WebCore::PaymentMerchantSession&); -
trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.h
r242355 r242356 28 28 #if ENABLE(APPLE_PAY) 29 29 30 #import "WebPaymentCoordinatorProxy.h" 30 31 #import <WebCore/PaymentHeaders.h> 31 32 #import <pal/spi/cocoa/PassKitSPI.h> … … 38 39 RetainPtr<NSArray> _shippingMethods; 39 40 40 BlockPtr<void (PKPaymentMerchantSession *, NSError *)> _sessionBlock;41 BlockPtr<void(PKPaymentMerchantSession *, NSError *)> _sessionBlock; 41 42 42 43 BOOL _didReachFinalState; 43 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)44 BlockPtr<void (PKPaymentAuthorizationResult *)> _paymentAuthorizedCompletion;45 BlockPtr<void (PKPaymentRequestPaymentMethodUpdate *)> _didSelectPaymentMethodCompletion;46 BlockPtr<void (PKPaymentRequestShippingMethodUpdate *)> _didSelectShippingMethodCompletion;47 BlockPtr<void (PKPaymentRequestShippingContactUpdate *)> _didSelectShippingContactCompletion;44 #if HAVE(PASSKIT_GRANULAR_ERRORS) 45 BlockPtr<void(PKPaymentAuthorizationResult *)> _paymentAuthorizedCompletion; 46 BlockPtr<void(PKPaymentRequestPaymentMethodUpdate *)> _didSelectPaymentMethodCompletion; 47 BlockPtr<void(PKPaymentRequestShippingMethodUpdate *)> _didSelectShippingMethodCompletion; 48 BlockPtr<void(PKPaymentRequestShippingContactUpdate *)> _didSelectShippingContactCompletion; 48 49 #else 49 BlockPtr<void (PKPaymentAuthorizationStatus)> _paymentAuthorizedCompletion;50 BlockPtr<void (NSArray *)> _didSelectPaymentMethodCompletion;51 BlockPtr<void (PKPaymentAuthorizationStatus, NSArray *)> _didSelectShippingMethodCompletion;52 BlockPtr<void (PKPaymentAuthorizationStatus, NSArray *, NSArray *)> _didSelectShippingContactCompletion;50 BlockPtr<void(PKPaymentAuthorizationStatus)> _paymentAuthorizedCompletion; 51 BlockPtr<void(NSArray *)> _didSelectPaymentMethodCompletion; 52 BlockPtr<void(PKPaymentAuthorizationStatus, NSArray *)> _didSelectShippingMethodCompletion; 53 BlockPtr<void(PKPaymentAuthorizationStatus, NSArray *, NSArray *)> _didSelectShippingContactCompletion; 53 54 #endif 54 55 } -
trunk/Source/WebKit/Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm
r242355 r242356 38 38 #import <wtf/URL.h> 39 39 40 #if PLATFORM(IOS) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300)40 #if HAVE(PASSKIT_GRANULAR_ERRORS) 41 41 SOFT_LINK_FRAMEWORK(Contacts) 42 42 SOFT_LINK_CONSTANT(Contacts, CNPostalAddressStreetKey, NSString *); … … 67 67 _webPaymentCoordinatorProxy = nullptr; 68 68 if (_paymentAuthorizedCompletion) { 69 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)69 #if HAVE(PASSKIT_GRANULAR_ERRORS) 70 70 _paymentAuthorizedCompletion(adoptNS([PAL::allocPKPaymentAuthorizationResultInstance() initWithStatus:PKPaymentAuthorizationStatusFailure errors:@[ ]]).get()); 71 71 #else … … 115 115 } 116 116 117 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300) || PLATFORM(IOS_FAMILY)117 #if HAVE(PASSKIT_GRANULAR_ERRORS) 118 118 119 119 - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didAuthorizePayment:(PKPayment *)payment handler:(void (^)(PKPaymentAuthorizationResult *result))completion 120 120 { 121 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)122 121 if (!_webPaymentCoordinatorProxy) { 123 122 completion(adoptNS([PAL::allocPKPaymentAuthorizationResultInstance() initWithStatus:PKPaymentAuthorizationStatusFailure errors:@[ ]]).get()); … … 129 128 130 129 _webPaymentCoordinatorProxy->didAuthorizePayment(WebCore::Payment(payment)); 131 #endif132 130 } 133 131 134 132 - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectPaymentMethod:(PKPaymentMethod *)paymentMethod handler:(void (^)(PKPaymentRequestPaymentMethodUpdate *update))completion 135 133 { 136 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)137 134 if (!_webPaymentCoordinatorProxy) { 138 135 completion(adoptNS([PAL::allocPKPaymentRequestPaymentMethodUpdateInstance() initWithPaymentSummaryItems:@[ ]]).get()); … … 143 140 _didSelectPaymentMethodCompletion = completion; 144 141 _webPaymentCoordinatorProxy->didSelectPaymentMethod(WebCore::PaymentMethod(paymentMethod)); 145 #endif146 142 } 147 143 148 144 - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectShippingMethod:(PKShippingMethod *)shippingMethod handler:(void (^)(PKPaymentRequestShippingMethodUpdate *update))completion { 149 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)150 145 if (!_webPaymentCoordinatorProxy) { 151 146 completion(adoptNS([PAL::allocPKPaymentRequestShippingMethodUpdateInstance() initWithPaymentSummaryItems:@[ ]]).get()); … … 156 151 _didSelectShippingMethodCompletion = completion; 157 152 _webPaymentCoordinatorProxy->didSelectShippingMethod(toShippingMethod(shippingMethod)); 158 #endif159 153 } 160 154 161 155 - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didSelectShippingContact:(PKContact *)contact handler:(void (^)(PKPaymentRequestShippingContactUpdate *update))completion 162 156 { 163 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)164 157 if (!_webPaymentCoordinatorProxy) { 165 158 completion(adoptNS([PAL::allocPKPaymentRequestShippingContactUpdateInstance() initWithErrors:@[ ] paymentSummaryItems:@[ ] shippingMethods:@[ ]]).get()); … … 170 163 _didSelectShippingContactCompletion = completion; 171 164 _webPaymentCoordinatorProxy->didSelectShippingContact(WebCore::PaymentContact(contact)); 172 #endif 173 } 174 175 #endif 176 177 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 110000) 165 } 166 167 #endif 168 169 #if !HAVE(PASSKIT_GRANULAR_ERRORS) 178 170 179 171 - (void)paymentAuthorizationViewController:(PKPaymentAuthorizationViewController *)controller didAuthorizePayment:(PKPayment *)payment completion:(void (^)(PKPaymentAuthorizationStatus))completion … … 262 254 } 263 255 264 void WebPaymentCoordinatorProxy::platformCanMakePaymentsWithActiveCard(const String& merchantIdentifier, const String& domainName, WTF::Function<void (bool)>&& completionHandler)265 { 266 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)256 void WebPaymentCoordinatorProxy::platformCanMakePaymentsWithActiveCard(const String& merchantIdentifier, const String& domainName, WTF::Function<void(bool)>&& completionHandler) 257 { 258 #if HAVE(PASSKIT_GRANULAR_ERRORS) 267 259 PKCanMakePaymentsWithMerchantIdentifierDomainAndSourceApplication(merchantIdentifier, domainName, m_client.paymentCoordinatorSourceApplicationSecondaryIdentifier(*this), makeBlockPtr([completionHandler = WTFMove(completionHandler)](BOOL canMakePayments, NSError *error) mutable { 268 260 if (error) … … 285 277 } 286 278 287 void WebPaymentCoordinatorProxy::platformOpenPaymentSetup(const String& merchantIdentifier, const String& domainName, WTF::Function<void (bool)>&& completionHandler)279 void WebPaymentCoordinatorProxy::platformOpenPaymentSetup(const String& merchantIdentifier, const String& domainName, WTF::Function<void(bool)>&& completionHandler) 288 280 { 289 281 auto passLibrary = adoptNS([PAL::allocPKPassLibraryInstance() init]); … … 295 287 } 296 288 297 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)289 #if HAVE(PASSKIT_GRANULAR_ERRORS) 298 290 static RetainPtr<NSSet> toPKContactFields(const WebCore::ApplePaySessionPaymentRequest::ContactFields& contactFields) 299 291 { … … 417 409 } 418 410 419 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)411 #if HAVE(PASSKIT_GRANULAR_ERRORS) 420 412 static RetainPtr<NSSet> toNSSet(const Vector<String>& strings) 421 413 { … … 429 421 return WTFMove(mutableSet); 430 422 } 431 #endif 432 433 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101304) || PLATFORM(IOS_FAMILY) 423 434 424 static PKPaymentRequestAPIType toAPIType(WebCore::ApplePaySessionPaymentRequest::Requester requester) 435 425 { … … 458 448 [result setThumbnailURL:linkIconURLs[0]]; 459 449 460 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300 && __MAC_OS_X_VERSION_MAX_ALLOWED >= 101304) || PLATFORM(IOS_FAMILY)450 #if HAVE(PASSKIT_GRANULAR_ERRORS) 461 451 [result setAPIType:toAPIType(paymentRequest.requester())]; 462 452 #endif … … 466 456 [result setBillingContact:paymentRequest.billingContact().pkContact()]; 467 457 [result setShippingContact:paymentRequest.shippingContact().pkContact()]; 468 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)458 #if HAVE(PASSKIT_GRANULAR_ERRORS) 469 459 [result setRequiredBillingContactFields:toPKContactFields(paymentRequest.requiredBillingContactFields()).get()]; 470 460 [result setRequiredShippingContactFields:toPKContactFields(paymentRequest.requiredShippingContactFields()).get()]; … … 502 492 } 503 493 504 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)494 #if HAVE(PASSKIT_GRANULAR_ERRORS) 505 495 [result setSupportedCountries:toNSSet(paymentRequest.supportedCountries()).get()]; 506 496 #endif … … 524 514 } 525 515 526 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)516 #if HAVE(PASSKIT_GRANULAR_ERRORS) 527 517 static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(WebCore::PaymentAuthorizationStatus status) 528 518 { … … 693 683 m_paymentAuthorizationViewControllerDelegate->_didReachFinalState = WebCore::isFinalStateResult(result); 694 684 695 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)685 #if HAVE(PASSKIT_GRANULAR_ERRORS) 696 686 auto status = result ? result->status : WebCore::PaymentAuthorizationStatus::Success; 697 687 auto pkPaymentAuthorizationResult = adoptNS([PAL::allocPKPaymentAuthorizationResultInstance() initWithStatus:toPKPaymentAuthorizationStatus(status) errors:result ? toNSErrors(result->errors).get() : @[ ]]); … … 720 710 m_paymentAuthorizationViewControllerDelegate->_paymentSummaryItems = toPKPaymentSummaryItems(update->newTotalAndLineItems); 721 711 722 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)712 #if HAVE(PASSKIT_GRANULAR_ERRORS) 723 713 auto pkShippingMethodUpdate = adoptNS([PAL::allocPKPaymentRequestShippingMethodUpdateInstance() initWithPaymentSummaryItems:m_paymentAuthorizationViewControllerDelegate->_paymentSummaryItems.get()]); 724 714 m_paymentAuthorizationViewControllerDelegate->_didSelectShippingMethodCompletion(pkShippingMethodUpdate.get()); … … 729 719 } 730 720 731 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED < 110000)721 #if !HAVE(PASSKIT_GRANULAR_ERRORS) 732 722 static PKPaymentAuthorizationStatus toPKPaymentAuthorizationStatus(const Optional<WebCore::ShippingContactUpdate>& update) 733 723 { … … 772 762 } 773 763 774 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)764 #if HAVE(PASSKIT_GRANULAR_ERRORS) 775 765 auto pkShippingContactUpdate = adoptNS([PAL::allocPKPaymentRequestShippingContactUpdateInstance() initWithErrors:update ? toNSErrors(update->errors).get() : @[ ] paymentSummaryItems:m_paymentAuthorizationViewControllerDelegate->_paymentSummaryItems.get() shippingMethods:m_paymentAuthorizationViewControllerDelegate->_shippingMethods.get()]); 776 766 m_paymentAuthorizationViewControllerDelegate->_didSelectShippingContactCompletion(pkShippingContactUpdate.get()); … … 789 779 m_paymentAuthorizationViewControllerDelegate->_paymentSummaryItems = toPKPaymentSummaryItems(update->newTotalAndLineItems); 790 780 791 #if (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300) || (PLATFORM(IOS_FAMILY) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 110000)781 #if HAVE(PASSKIT_GRANULAR_ERRORS) 792 782 auto pkPaymentMethodUpdate = adoptNS([PAL::allocPKPaymentRequestPaymentMethodUpdateInstance() initWithPaymentSummaryItems:m_paymentAuthorizationViewControllerDelegate->_paymentSummaryItems.get()]); 793 783 m_paymentAuthorizationViewControllerDelegate->_didSelectPaymentMethodCompletion(pkPaymentMethodUpdate.get()); -
trunk/Source/WebKit/Shared/mac/WebHitTestResultData.mm
r239427 r242356 30 30 31 31 #import "ArgumentCodersCF.h" 32 #import "ArgumentCodersCocoa.h" 32 33 #import "Decoder.h" 33 34 #import "Encoder.h" -
trunk/Source/WebKit/SourcesCocoa.txt
r241635 r242356 113 113 Shared/API/Cocoa/WKRemoteObject.mm 114 114 Shared/API/Cocoa/WKRemoteObjectCoder.mm 115 116 Shared/ApplePay/WebPaymentCoordinatorProxy.cpp 117 Shared/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm 118 Shared/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm 119 Shared/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm 115 120 116 121 Shared/APIWebArchive.mm … … 214 219 UIProcess/WKImagePreviewViewController.mm 215 220 UIProcess/WKInspectorHighlightView.mm 216 217 UIProcess/ApplePay/WebPaymentCoordinatorProxy.cpp218 221 219 222 UIProcess/API/APIWebsiteDataRecord.cpp … … 303 306 UIProcess/API/mac/WKView.mm 304 307 305 UIProcess/ApplePay/cocoa/WebPaymentCoordinatorProxyCocoa.mm306 307 UIProcess/ApplePay/ios/WebPaymentCoordinatorProxyIOS.mm308 309 UIProcess/ApplePay/mac/WebPaymentCoordinatorProxyMac.mm310 311 308 UIProcess/Authentication/cocoa/AuthenticationChallengeProxyCocoa.mm 312 309 UIProcess/Authentication/cocoa/SecKeyProxyStore.mm -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.h
r242132 r242356 45 45 void commitStateAfterChildren(const WebCore::ScrollingStateNode&) override; 46 46 47 FloatPoint minimumScrollPosition() const override;48 FloatPoint maximumScrollPosition() const override;47 WebCore::FloatPoint minimumScrollPosition() const override; 48 WebCore::FloatPoint maximumScrollPosition() const override; 49 49 50 50 void repositionScrollingLayers() override; -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeFrameScrollingNodeRemoteIOS.mm
r242132 r242356 30 30 31 31 #import "ScrollingTreeScrollingNodeDelegateIOS.h" 32 #import <WebCore/ScrollingStateFrameScrollingNode.h> 32 33 #import <WebCore/ScrollingStateScrollingNode.h> 34 #import <WebCore/ScrollingTree.h> 33 35 34 36 namespace WebKit { -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.h
r242132 r242356 67 67 68 68 #if ENABLE(POINTER_EVENTS) 69 Optional< TouchActionData> touchActionData() const;69 Optional<WebCore::TouchActionData> touchActionData() const; 70 70 void cancelPointersForGestureRecognizer(UIGestureRecognizer*); 71 71 #endif -
trunk/Source/WebKit/UIProcess/RemoteLayerTree/ios/ScrollingTreeScrollingNodeDelegateIOS.mm
r242132 r242356 29 29 #if PLATFORM(IOS_FAMILY) && ENABLE(ASYNC_SCROLLING) 30 30 31 #import "RemoteScrollingCoordinatorProxy.h" 32 #import "RemoteScrollingTree.h" 33 #import "UIKitSPI.h" 34 #import "WebPageProxy.h" 31 35 #import <QuartzCore/QuartzCore.h> 32 36 #import <UIKit/UIPanGestureRecognizer.h> -
trunk/Source/WebKit/WebKit.xcodeproj/project.pbxproj
r242336 r242356 4994 4994 children = ( 4995 4995 BCDDB314124EBCEF0048D13C /* API */, 4996 1AB1F7761D1B30A9007C9BD1 /* ApplePay */, 4996 4997 518E8EF116B208F000E91429 /* Authentication */, 4997 4998 1AAF0C4712B16328008E49E2 /* cf */, … … 7334 7335 children = ( 7335 7336 BC032DC410F4387C0058C15A /* API */, 7336 1AB1F7761D1B30A9007C9BD1 /* ApplePay */,7337 7337 512F588D12A8836F00629530 /* Authentication */, 7338 7338 9955A6E81C79809000EB6A93 /* Automation */,
Note:
See TracChangeset
for help on using the changeset viewer.