haikuwebkit/Source/WebCore/Modules/applepay/ApplePayShippingContactSele...

60 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 "ApplePayPaymentContact.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 {
[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
class PaymentContact;
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
class ApplePayShippingContactSelectedEvent 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(ApplePayShippingContactSelectedEvent);
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:
static Ref<ApplePayShippingContactSelectedEvent> create(const AtomString& type, unsigned version, const PaymentContact& shippingContact)
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
{
[Apple Pay] Only include phonetic name properties in ApplePayPaymentContact when version >= 3 https://bugs.webkit.org/show_bug.cgi?id=180925 <rdar://problem/35907596> Reviewed by Tim Horton. No tests possible. The fix involves converting PKContacts, which we can't create in our test harness. * Modules/applepay/ApplePayPaymentAuthorizedEvent.cpp: (WebCore::ApplePayPaymentAuthorizedEvent::ApplePayPaymentAuthorizedEvent): * Modules/applepay/ApplePayPaymentAuthorizedEvent.h: * Modules/applepay/ApplePaySession.cpp: (WebCore::ApplePaySession::create): (WebCore::ApplePaySession::ApplePaySession): (WebCore::ApplePaySession::version const): (WebCore::ApplePaySession::didAuthorizePayment): (WebCore::ApplePaySession::didSelectShippingContact): * Modules/applepay/ApplePaySession.h: * Modules/applepay/ApplePayShippingContactSelectedEvent.cpp: (WebCore::ApplePayShippingContactSelectedEvent::ApplePayShippingContactSelectedEvent): * Modules/applepay/ApplePayShippingContactSelectedEvent.h: * Modules/applepay/Payment.h: * Modules/applepay/PaymentContact.h: * Modules/applepay/PaymentCoordinator.cpp: (WebCore::PaymentCoordinator::supportsVersion const): (WebCore::PaymentCoordinator::supportsVersion): Deleted. * Modules/applepay/PaymentCoordinator.h: * Modules/applepay/PaymentSession.h: * Modules/applepay/cocoa/PaymentCocoa.mm: (WebCore::convert): (WebCore::Payment::toApplePayPayment const): * Modules/applepay/cocoa/PaymentContactCocoa.mm: (WebCore::convert): (WebCore::PaymentContact::toApplePayPaymentContact const): * Modules/applepay/paymentrequest/ApplePayPaymentHandler.cpp: (WebCore::ApplePayPaymentHandler::document const): (WebCore::ApplePayPaymentHandler::paymentCoordinator const): (WebCore::ApplePayPaymentHandler::version const): (WebCore::ApplePayPaymentHandler::didAuthorizePayment): (WebCore::ApplePayPaymentHandler::didSelectShippingContact): (WebCore::ApplePayPaymentHandler::document): Deleted. (WebCore::ApplePayPaymentHandler::paymentCoordinator): Deleted. * Modules/applepay/paymentrequest/ApplePayPaymentHandler.h: Canonical link: https://commits.webkit.org/196858@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@226098 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-12-19 05:39:26 +00:00
return adoptRef(*new ApplePayShippingContactSelectedEvent(type, version, shippingContact));
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
}
virtual ~ApplePayShippingContactSelectedEvent();
[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 ApplePayPaymentContact& shippingContact() const { return m_shippingContact; }
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:
ApplePayShippingContactSelectedEvent(const AtomString& type, unsigned version, const PaymentContact&);
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 ApplePayPaymentContact m_shippingContact;
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