haikuwebkit/Source/WebCore/Modules/applepay/ApplePayShippingMethodSelec...

59 lines
2.2 KiB
C
Raw Permalink Normal View History

Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
/*
* Copyright (C) 2016 Apple Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
* BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*/
#pragma once
#if ENABLE(APPLE_PAY)
[ApplePay] Remove remaining custom bindings from the ApplePay code https://bugs.webkit.org/show_bug.cgi?id=165860 Reviewed by Darin Adler. * DerivedSources.make: Add new IDL files. * WebCore.xcodeproj/project.pbxproj: Add/remove files. * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Removed. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Removed. Remove custom bindings. * Modules/applepay/ApplePayLineItem.h: Added. * Modules/applepay/ApplePayLineItem.idl: Added. * Modules/applepay/ApplePayPayment.h: Added. * Modules/applepay/ApplePayPayment.idl: Added. * Modules/applepay/ApplePayPaymentContact.h: Added. * Modules/applepay/ApplePayPaymentContact.idl: Added. * Modules/applepay/ApplePayPaymentMethod.h: Added. * Modules/applepay/ApplePayPaymentMethod.idl: Added. * Modules/applepay/ApplePayPaymentPass.h: Added. * Modules/applepay/ApplePayPaymentPass.idl: Added. * Modules/applepay/ApplePayPaymentRequest.h: Added. * Modules/applepay/ApplePayPaymentRequest.idl: Added. * Modules/applepay/ApplePayShippingMethod.h: Added. * Modules/applepay/ApplePayShippingMethod.idl: Added. Split out dictionaries and enums into separate files where needed. * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: (WebCore::ApplePayPaymentAuthorizedEvent::ApplePayPaymentAuthorizedEvent): * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Convert the 'payment' property to return an ApplePayPayment dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: (WebCore::ApplePayPaymentMethodSelectedEvent::ApplePayPaymentMethodSelectedEvent): * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Convert the 'paymentMethod' property to return an ApplePayPaymentMethod dictionary, removing the need for custom bindings. * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::create): (WebCore::ApplePaySession::ApplePaySession): (WebCore::ApplePaySession::completeShippingMethodSelection): (WebCore::ApplePaySession::completeShippingContactSelection): (WebCore::ApplePaySession::completePaymentMethodSelection): (WebCore::ApplePaySession::didSelectShippingMethod): * Modules/applepay/ApplePaySession.h: Update for new names, remove need for ExecState in the create function, and simplify billingContact and shippingContact now that they are strongly typed. * Modules/applepay/ApplePaySession.idl: Move dictionaries and enums to their own files. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: (WebCore::ApplePayShippingContactSelectedEvent::ApplePayShippingContactSelectedEvent): * Modules/applepay/ApplePayShippingContactSelectedEvent.h: * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Convert the 'shippingContact' property to return an ApplePayPaymentContact dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Convert the 'shippingMethod' property to return an ApplePayShippingMethod dictionary, removing the need for custom bindings. * Modules/applepay/Payment.h: * Modules/applepay/PaymentContact.h: * Modules/applepay/PaymentMethod.h: * Modules/applepay/cocoa/PaymentCocoa.mm: * Modules/applepay/cocoa/PaymentContactCocoa.mm: * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Replace toJS/fromJS functions with ones that convert to/from the associated dictionary type. * bindings/generic/IDLTypes.h: (WebCore::IDLJSON::nullValue): (WebCore::IDLJSON::isNullValue): (WebCore::IDLJSON::extractValueFromNullable): * bindings/js/JSDOMConvert.h: (WebCore::Converter<IDLJSON>::convert): (WebCore::JSConverter<IDLJSON>::convert): Add a new custom type, JSON, which converts from a String to a JS object. * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: Add support for the new JSON type, and improve scoped naming to allow for enums in dictionary only IDL files. * bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp: Update test result for improved scoped naming. Canonical link: https://commits.webkit.org/183559@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-16 18:56:24 +00:00
#include "ApplePayShippingMethod.h"
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
#include "Event.h"
namespace WebCore {
class ApplePayShippingMethodSelectedEvent final : public Event {
Make all ScriptWrappable IsoHeap-ed https://bugs.webkit.org/show_bug.cgi?id=201846 <rdar://problem/55407535> Reviewed by Mark Lam. This patch puts Event and derived classes under IsoHeap to make all ScriptWrappable classes IsoHeap-ed. * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.cpp: * Modules/airplay/WebKitPlaybackTargetAvailabilityEvent.h: (WebCore::WebKitPlaybackTargetAvailabilityEvent::create): Deleted. (WebCore::WebKitPlaybackTargetAvailabilityEvent::availability const): Deleted. * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: (WebCore::ApplePayPaymentMethodSelectedEvent::create): Deleted. (WebCore::ApplePayPaymentMethodSelectedEvent::paymentMethod): Deleted. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: * Modules/applepay/ApplePayShippingContactSelectedEvent.h: * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: * Modules/applepay/ApplePayValidateMerchantEvent.cpp: * Modules/applepay/ApplePayValidateMerchantEvent.h: (WebCore::ApplePayValidateMerchantEvent::create): Deleted. (WebCore::ApplePayValidateMerchantEvent::validationURL const): Deleted. * Modules/encryptedmedia/MediaKeyMessageEvent.cpp: * Modules/encryptedmedia/MediaKeyMessageEvent.h: * Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeyMessageEvent.h: (WebCore::WebKitMediaKeyMessageEvent::create): Deleted. (WebCore::WebKitMediaKeyMessageEvent::message const): Deleted. (WebCore::WebKitMediaKeyMessageEvent::destinationURL const): Deleted. * Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.cpp: * Modules/encryptedmedia/legacy/WebKitMediaKeyNeededEvent.h: (WebCore::WebKitMediaKeyNeededEvent::create): Deleted. (WebCore::WebKitMediaKeyNeededEvent::initData const): Deleted. * Modules/gamepad/GamepadEvent.cpp: * Modules/gamepad/GamepadEvent.h: (WebCore::GamepadEvent::create): Deleted. (WebCore::GamepadEvent::gamepad const): Deleted. * Modules/indexeddb/IDBRequestCompletionEvent.cpp: * Modules/indexeddb/IDBRequestCompletionEvent.h: (WebCore::IDBRequestCompletionEvent::create): Deleted. * Modules/indexeddb/IDBVersionChangeEvent.cpp: * Modules/indexeddb/IDBVersionChangeEvent.h: * Modules/mediarecorder/BlobEvent.cpp: * Modules/mediarecorder/BlobEvent.h: * Modules/mediarecorder/MediaRecorderErrorEvent.cpp: * Modules/mediarecorder/MediaRecorderErrorEvent.h: * Modules/mediastream/MediaStreamTrackEvent.cpp: * Modules/mediastream/MediaStreamTrackEvent.h: * Modules/mediastream/OverconstrainedErrorEvent.cpp: Copied from Source/WebCore/Modules/mediarecorder/BlobEvent.h. * Modules/mediastream/OverconstrainedErrorEvent.h: (WebCore::OverconstrainedErrorEvent::create): Deleted. (WebCore::OverconstrainedErrorEvent::error const): Deleted. (WebCore::OverconstrainedErrorEvent::OverconstrainedErrorEvent): Deleted. * Modules/mediastream/RTCDTMFToneChangeEvent.cpp: * Modules/mediastream/RTCDTMFToneChangeEvent.h: * Modules/mediastream/RTCDataChannelEvent.cpp: * Modules/mediastream/RTCDataChannelEvent.h: * Modules/mediastream/RTCPeerConnectionIceEvent.cpp: * Modules/mediastream/RTCPeerConnectionIceEvent.h: (WebCore::RTCPeerConnectionIceEvent::url const): Deleted. * Modules/mediastream/RTCTrackEvent.cpp: * Modules/mediastream/RTCTrackEvent.h: (WebCore::RTCTrackEvent::receiver const): Deleted. (WebCore::RTCTrackEvent::track const): Deleted. (WebCore::RTCTrackEvent::streams const): Deleted. (WebCore::RTCTrackEvent::transceiver const): Deleted. (WebCore::RTCTrackEvent::eventInterface const): Deleted. * Modules/paymentrequest/MerchantValidationEvent.cpp: * Modules/paymentrequest/MerchantValidationEvent.h: * Modules/paymentrequest/PaymentMethodChangeEvent.cpp: * Modules/paymentrequest/PaymentMethodChangeEvent.h: * Modules/paymentrequest/PaymentRequestUpdateEvent.cpp: * Modules/paymentrequest/PaymentRequestUpdateEvent.h: * Modules/speech/SpeechSynthesisEvent.cpp: * Modules/speech/SpeechSynthesisEvent.h: (WebCore::SpeechSynthesisEvent::charIndex const): Deleted. (WebCore::SpeechSynthesisEvent::elapsedTime const): Deleted. (WebCore::SpeechSynthesisEvent::name const): Deleted. (WebCore::SpeechSynthesisEvent::eventInterface const): Deleted. * Modules/webaudio/AudioProcessingEvent.cpp: * Modules/webaudio/AudioProcessingEvent.h: * Modules/webaudio/OfflineAudioCompletionEvent.cpp: * Modules/webaudio/OfflineAudioCompletionEvent.h: * Modules/webgpu/GPUUncapturedErrorEvent.cpp: * Modules/webgpu/GPUUncapturedErrorEvent.h: * Modules/websockets/CloseEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. * Modules/websockets/CloseEvent.h: (WebCore::CloseEvent::create): Deleted. (WebCore::CloseEvent::wasClean const): Deleted. (WebCore::CloseEvent::code const): Deleted. (WebCore::CloseEvent::reason const): Deleted. (WebCore::CloseEvent::CloseEvent): Deleted. * Modules/webvr/VRDisplayEvent.cpp: * Modules/webvr/VRDisplayEvent.h: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * accessibility/AccessibleSetValueEvent.cpp: * accessibility/AccessibleSetValueEvent.h: (WebCore::AccessibleSetValueEvent::create): Deleted. (WebCore::AccessibleSetValueEvent::value const): Deleted. * animation/AnimationPlaybackEvent.cpp: * animation/AnimationPlaybackEvent.h: * bindings/js/ScriptWrappable.cpp: Copied from Source/WebCore/html/canvas/WebGLContextEvent.cpp. * bindings/js/ScriptWrappable.h: * dom/AnimationEvent.cpp: * dom/AnimationEvent.h: * dom/BeforeLoadEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. * dom/BeforeLoadEvent.h: * dom/BeforeTextInsertedEvent.cpp: * dom/BeforeTextInsertedEvent.h: * dom/BeforeUnloadEvent.cpp: * dom/BeforeUnloadEvent.h: * dom/ClipboardEvent.cpp: * dom/ClipboardEvent.h: * dom/CompositionEvent.cpp: * dom/CompositionEvent.h: * dom/CustomEvent.cpp: * dom/CustomEvent.h: * dom/DeviceMotionEvent.cpp: * dom/DeviceMotionEvent.h: * dom/DeviceOrientationEvent.cpp: * dom/DeviceOrientationEvent.h: * dom/ErrorEvent.cpp: * dom/ErrorEvent.h: * dom/Event.cpp: * dom/Event.h: * dom/FocusEvent.cpp: * dom/FocusEvent.h: * dom/HashChangeEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. * dom/HashChangeEvent.h: * dom/InputEvent.cpp: * dom/InputEvent.h: * dom/KeyboardEvent.cpp: * dom/KeyboardEvent.h: * dom/MessageEvent.cpp: * dom/MessageEvent.h: * dom/MouseEvent.cpp: * dom/MouseEvent.h: * dom/MouseRelatedEvent.cpp: * dom/MouseRelatedEvent.h: * dom/MutationEvent.cpp: * dom/MutationEvent.h: * dom/OverflowEvent.cpp: * dom/OverflowEvent.h: * dom/PageTransitionEvent.cpp: * dom/PageTransitionEvent.h: * dom/PointerEvent.cpp: * dom/PointerEvent.h: * dom/PopStateEvent.cpp: * dom/PopStateEvent.h: * dom/ProgressEvent.cpp: * dom/ProgressEvent.h: * dom/PromiseRejectionEvent.cpp: * dom/PromiseRejectionEvent.h: * dom/SecurityPolicyViolationEvent.cpp: Copied from Source/WebCore/dom/BeforeTextInsertedEvent.cpp. * dom/SecurityPolicyViolationEvent.h: * dom/TextEvent.cpp: * dom/TextEvent.h: * dom/TouchEvent.cpp: * dom/TouchEvent.h: * dom/TransitionEvent.cpp: * dom/TransitionEvent.h: * dom/UIEvent.cpp: * dom/UIEvent.h: * dom/UIEventWithKeyState.cpp: * dom/UIEventWithKeyState.h: * dom/WebKitAnimationEvent.cpp: * dom/WebKitAnimationEvent.h: * dom/WebKitTransitionEvent.cpp: * dom/WebKitTransitionEvent.h: * dom/WheelEvent.cpp: * dom/WheelEvent.h: * html/MediaEncryptedEvent.cpp: * html/MediaEncryptedEvent.h: * html/canvas/WebGLContextEvent.cpp: * html/canvas/WebGLContextEvent.h: * html/shadow/ProgressShadowElement.h: * html/track/TrackEvent.cpp: * html/track/TrackEvent.h: * storage/StorageEvent.cpp: * storage/StorageEvent.h: (WebCore::StorageEvent::key const): Deleted. (WebCore::StorageEvent::oldValue const): Deleted. (WebCore::StorageEvent::newValue const): Deleted. (WebCore::StorageEvent::url const): Deleted. (WebCore::StorageEvent::storageArea const): Deleted. * svg/SVGFEDistantLightElement.h: * svg/SVGFEFuncAElement.h: * svg/SVGFEFuncBElement.h: * svg/SVGFEFuncGElement.h: * svg/SVGFEFuncRElement.h: * svg/SVGFEPointLightElement.h: * svg/SVGFESpotLightElement.h: * svg/SVGZoomEvent.cpp: * svg/SVGZoomEvent.h: * workers/service/ExtendableEvent.cpp: * workers/service/ExtendableEvent.h: * workers/service/ExtendableMessageEvent.cpp: * workers/service/ExtendableMessageEvent.h: * workers/service/FetchEvent.cpp: * workers/service/FetchEvent.h: * xml/XMLHttpRequestProgressEvent.cpp: Copied from Source/WebCore/Modules/encryptedmedia/MediaKeyMessageEvent.cpp. * xml/XMLHttpRequestProgressEvent.h: (WebCore::XMLHttpRequestProgressEvent::create): Deleted. (WebCore::XMLHttpRequestProgressEvent::position const): Deleted. (WebCore::XMLHttpRequestProgressEvent::totalSize const): Deleted. (WebCore::XMLHttpRequestProgressEvent::XMLHttpRequestProgressEvent): Deleted. Canonical link: https://commits.webkit.org/215585@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250060 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-09-18 22:10:00 +00:00
WTF_MAKE_ISO_ALLOCATED(ApplePayShippingMethodSelectedEvent);
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
public:
[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
static Ref<ApplePayShippingMethodSelectedEvent> create(const AtomString& type, const ApplePayShippingMethod& shippingMethod)
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
{
return adoptRef(*new ApplePayShippingMethodSelectedEvent(type, shippingMethod));
}
virtual ~ApplePayShippingMethodSelectedEvent();
[ApplePay] Remove remaining custom bindings from the ApplePay code https://bugs.webkit.org/show_bug.cgi?id=165860 Reviewed by Darin Adler. * DerivedSources.make: Add new IDL files. * WebCore.xcodeproj/project.pbxproj: Add/remove files. * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Removed. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Removed. Remove custom bindings. * Modules/applepay/ApplePayLineItem.h: Added. * Modules/applepay/ApplePayLineItem.idl: Added. * Modules/applepay/ApplePayPayment.h: Added. * Modules/applepay/ApplePayPayment.idl: Added. * Modules/applepay/ApplePayPaymentContact.h: Added. * Modules/applepay/ApplePayPaymentContact.idl: Added. * Modules/applepay/ApplePayPaymentMethod.h: Added. * Modules/applepay/ApplePayPaymentMethod.idl: Added. * Modules/applepay/ApplePayPaymentPass.h: Added. * Modules/applepay/ApplePayPaymentPass.idl: Added. * Modules/applepay/ApplePayPaymentRequest.h: Added. * Modules/applepay/ApplePayPaymentRequest.idl: Added. * Modules/applepay/ApplePayShippingMethod.h: Added. * Modules/applepay/ApplePayShippingMethod.idl: Added. Split out dictionaries and enums into separate files where needed. * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: (WebCore::ApplePayPaymentAuthorizedEvent::ApplePayPaymentAuthorizedEvent): * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Convert the 'payment' property to return an ApplePayPayment dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: (WebCore::ApplePayPaymentMethodSelectedEvent::ApplePayPaymentMethodSelectedEvent): * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Convert the 'paymentMethod' property to return an ApplePayPaymentMethod dictionary, removing the need for custom bindings. * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::create): (WebCore::ApplePaySession::ApplePaySession): (WebCore::ApplePaySession::completeShippingMethodSelection): (WebCore::ApplePaySession::completeShippingContactSelection): (WebCore::ApplePaySession::completePaymentMethodSelection): (WebCore::ApplePaySession::didSelectShippingMethod): * Modules/applepay/ApplePaySession.h: Update for new names, remove need for ExecState in the create function, and simplify billingContact and shippingContact now that they are strongly typed. * Modules/applepay/ApplePaySession.idl: Move dictionaries and enums to their own files. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: (WebCore::ApplePayShippingContactSelectedEvent::ApplePayShippingContactSelectedEvent): * Modules/applepay/ApplePayShippingContactSelectedEvent.h: * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Convert the 'shippingContact' property to return an ApplePayPaymentContact dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Convert the 'shippingMethod' property to return an ApplePayShippingMethod dictionary, removing the need for custom bindings. * Modules/applepay/Payment.h: * Modules/applepay/PaymentContact.h: * Modules/applepay/PaymentMethod.h: * Modules/applepay/cocoa/PaymentCocoa.mm: * Modules/applepay/cocoa/PaymentContactCocoa.mm: * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Replace toJS/fromJS functions with ones that convert to/from the associated dictionary type. * bindings/generic/IDLTypes.h: (WebCore::IDLJSON::nullValue): (WebCore::IDLJSON::isNullValue): (WebCore::IDLJSON::extractValueFromNullable): * bindings/js/JSDOMConvert.h: (WebCore::Converter<IDLJSON>::convert): (WebCore::JSConverter<IDLJSON>::convert): Add a new custom type, JSON, which converts from a String to a JS object. * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: Add support for the new JSON type, and improve scoped naming to allow for enums in dictionary only IDL files. * bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp: Update test result for improved scoped naming. Canonical link: https://commits.webkit.org/183559@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-16 18:56:24 +00:00
const ApplePayShippingMethod& shippingMethod() const { return m_shippingMethod; }
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
private:
[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
ApplePayShippingMethodSelectedEvent(const AtomString& type, const ApplePayShippingMethod&);
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
// Event.
EventInterface eventInterface() const override;
[ApplePay] Remove remaining custom bindings from the ApplePay code https://bugs.webkit.org/show_bug.cgi?id=165860 Reviewed by Darin Adler. * DerivedSources.make: Add new IDL files. * WebCore.xcodeproj/project.pbxproj: Add/remove files. * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Removed. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Removed. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Removed. Remove custom bindings. * Modules/applepay/ApplePayLineItem.h: Added. * Modules/applepay/ApplePayLineItem.idl: Added. * Modules/applepay/ApplePayPayment.h: Added. * Modules/applepay/ApplePayPayment.idl: Added. * Modules/applepay/ApplePayPaymentContact.h: Added. * Modules/applepay/ApplePayPaymentContact.idl: Added. * Modules/applepay/ApplePayPaymentMethod.h: Added. * Modules/applepay/ApplePayPaymentMethod.idl: Added. * Modules/applepay/ApplePayPaymentPass.h: Added. * Modules/applepay/ApplePayPaymentPass.idl: Added. * Modules/applepay/ApplePayPaymentRequest.h: Added. * Modules/applepay/ApplePayPaymentRequest.idl: Added. * Modules/applepay/ApplePayShippingMethod.h: Added. * Modules/applepay/ApplePayShippingMethod.idl: Added. Split out dictionaries and enums into separate files where needed. * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: (WebCore::ApplePayPaymentAuthorizedEvent::ApplePayPaymentAuthorizedEvent): * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Convert the 'payment' property to return an ApplePayPayment dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: (WebCore::ApplePayPaymentMethodSelectedEvent::ApplePayPaymentMethodSelectedEvent): * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Convert the 'paymentMethod' property to return an ApplePayPaymentMethod dictionary, removing the need for custom bindings. * Modules/applepay/ApplePaySession.cpp: (WebCore::convertAndValidate): (WebCore::ApplePaySession::create): (WebCore::ApplePaySession::ApplePaySession): (WebCore::ApplePaySession::completeShippingMethodSelection): (WebCore::ApplePaySession::completeShippingContactSelection): (WebCore::ApplePaySession::completePaymentMethodSelection): (WebCore::ApplePaySession::didSelectShippingMethod): * Modules/applepay/ApplePaySession.h: Update for new names, remove need for ExecState in the create function, and simplify billingContact and shippingContact now that they are strongly typed. * Modules/applepay/ApplePaySession.idl: Move dictionaries and enums to their own files. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: (WebCore::ApplePayShippingContactSelectedEvent::ApplePayShippingContactSelectedEvent): * Modules/applepay/ApplePayShippingContactSelectedEvent.h: * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Convert the 'shippingContact' property to return an ApplePayPaymentContact dictionary, removing the need for custom bindings. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Convert the 'shippingMethod' property to return an ApplePayShippingMethod dictionary, removing the need for custom bindings. * Modules/applepay/Payment.h: * Modules/applepay/PaymentContact.h: * Modules/applepay/PaymentMethod.h: * Modules/applepay/cocoa/PaymentCocoa.mm: * Modules/applepay/cocoa/PaymentContactCocoa.mm: * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Replace toJS/fromJS functions with ones that convert to/from the associated dictionary type. * bindings/generic/IDLTypes.h: (WebCore::IDLJSON::nullValue): (WebCore::IDLJSON::isNullValue): (WebCore::IDLJSON::extractValueFromNullable): * bindings/js/JSDOMConvert.h: (WebCore::Converter<IDLJSON>::convert): (WebCore::JSConverter<IDLJSON>::convert): Add a new custom type, JSON, which converts from a String to a JS object. * bindings/scripts/CodeGenerator.pm: * bindings/scripts/CodeGeneratorJS.pm: Add support for the new JSON type, and improve scoped naming to allow for enums in dictionary only IDL files. * bindings/scripts/test/JS/JSTestStandaloneDictionary.cpp: Update test result for improved scoped naming. Canonical link: https://commits.webkit.org/183559@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@209927 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-12-16 18:56:24 +00:00
const ApplePayShippingMethod m_shippingMethod;
Move the last Apple Pay WebCore files to the open source repository https://bugs.webkit.org/show_bug.cgi?id=159005 Reviewed by Tim Horton. * DerivedSources.make: * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: Added. * Modules/applepay/ApplePayPaymentAuthorizedEvent.idl: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayPaymentMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePaySession.cpp: Added. * Modules/applepay/ApplePaySession.h: Added. * Modules/applepay/ApplePaySession.idl: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingContactSelectedEvent.idl: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.cpp: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.h: Added. * Modules/applepay/ApplePayShippingMethodSelectedEvent.idl: Added. * Modules/applepay/ApplePayValidateMerchantEvent.cpp: Added. * Modules/applepay/ApplePayValidateMerchantEvent.h: Added. * Modules/applepay/ApplePayValidateMerchantEvent.idl: Added. * Modules/applepay/Payment.h: Added. * Modules/applepay/PaymentAuthorizationStatus.h: Added. * Modules/applepay/PaymentContact.h: Added. * Modules/applepay/PaymentMerchantSession.h: Added. * Modules/applepay/PaymentMethod.h: Added. * Modules/applepay/PaymentRequestValidator.cpp: Added. * Modules/applepay/PaymentRequestValidator.h: Added. * Modules/applepay/cocoa/PaymentContactCocoa.mm: Added. * Modules/applepay/cocoa/PaymentMethodCocoa.mm: Added. * WebCore.xcodeproj/project.pbxproj: * bindings/js/JSApplePayPaymentAuthorizedEventCustom.cpp: Added. * bindings/js/JSApplePayPaymentMethodSelectedEventCustom.cpp: Added. * bindings/js/JSApplePaySessionCustom.cpp: Added. * bindings/js/JSApplePayShippingContactSelectedEventCustom.cpp: Added. * bindings/js/JSApplePayShippingMethodSelectedEventCustom.cpp: Added. * dom/EventNames.in: * dom/EventTargetFactory.in: Canonical link: https://commits.webkit.org/177076@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@202309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-06-22 01:05:31 +00:00
};
}
#endif