Changeset 221569 in webkit


Ignore:
Timestamp:
Sep 3, 2017 9:08:46 PM (7 years ago)
Author:
mitz@apple.com
Message:

[Cocoa] Tidy up PassKitSPI.h
https://bugs.webkit.org/show_bug.cgi?id=176323

Reviewed by Darin Adler.

  • pal/spi/cocoa/PassKitSPI.h: Moved the declarations of requiredShippingContactFields and requiredBillingContactFields to where other PKPaymentRequest properties are declared, and changed the guard to relate to the SDK version. Replaced use of has_include with checking for the version of the Apple internal SDK in which the typedefs first appeared.
Location:
trunk/Source/WebCore/PAL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/PAL/ChangeLog

    r221564 r221569  
     12017-09-03  Dan Bernstein  <mitz@apple.com>
     2
     3        [Cocoa] Tidy up PassKitSPI.h
     4        https://bugs.webkit.org/show_bug.cgi?id=176323
     5
     6        Reviewed by Darin Adler.
     7
     8        * pal/spi/cocoa/PassKitSPI.h: Moved the declarations of requiredShippingContactFields and
     9          requiredBillingContactFields to where other PKPaymentRequest properties are declared, and
     10          changed the guard to relate to the SDK version. Replaced use of __has_include with checking for
     11          the version of the Apple internal SDK in which the typedefs first appeared.
     12
    1132017-09-03  Dan Bernstein  <mitz@apple.com>
    214
  • trunk/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h

    r220506 r221569  
    5252@class PKPaymentRequestShippingContactUpdate;
    5353
     54typedef NSString *PKContactField;
     55
    5456extern NSString * const PKPaymentErrorDomain;
    5557typedef NS_ERROR_ENUM(PKPaymentErrorDomain, PKPaymentErrorCode) {
     
    187189@property (nonatomic, assign) PKShippingType shippingType;
    188190@property (nonatomic, copy, nullable) NSData *applicationData;
    189 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 101300
     191#if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300
    190192@property (nonatomic, copy, nullable) NSSet<NSString *> *supportedCountries;
     193@property (nonatomic, strong) NSSet<PKContactField> *requiredShippingContactFields;
     194@property (nonatomic, strong) NSSet<PKContactField> *requiredBillingContactFields;
    191195#endif
    192196@end
     
    246250#endif
    247251
    248 #if PLATFORM(MAC) && (!USE(APPLE_INTERNAL_SDK) || !__has_include(<PassKitCore/PKApplePayButton.h>))
     252#if PLATFORM(MAC) && (!USE(APPLE_INTERNAL_SDK) || __MAC_OS_X_VERSION_MAX_ALLOWED < 101204)
    249253typedef NS_ENUM(NSInteger, PKPaymentButtonStyle) {
    250254    PKPaymentButtonStyleWhite = 0,
     
    299303@property (nonatomic, strong) NSString *sourceApplicationSecondaryIdentifier;
    300304@property (nonatomic, strong) NSString *CTDataConnectionServiceType;
    301 
    302 #if (PLATFORM(MAC) && !USE(APPLE_INTERNAL_SDK)) || (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED < 110000)
    303 - (void)setRequiredShippingContactFields:(nonnull NSSet *)contactInformation;
    304 - (void)setRequiredBillingContactFields:(nonnull NSSet *)contactInformation;
    305 #endif
    306 
    307305@end
    308306
Note: See TracChangeset for help on using the changeset viewer.