Changeset 221569 in webkit
- Timestamp:
- Sep 3, 2017 9:08:46 PM (7 years ago)
- Location:
- trunk/Source/WebCore/PAL
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/PAL/ChangeLog
r221564 r221569 1 2017-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 1 13 2017-09-03 Dan Bernstein <mitz@apple.com> 2 14 -
trunk/Source/WebCore/PAL/pal/spi/cocoa/PassKitSPI.h
r220506 r221569 52 52 @class PKPaymentRequestShippingContactUpdate; 53 53 54 typedef NSString *PKContactField; 55 54 56 extern NSString * const PKPaymentErrorDomain; 55 57 typedef NS_ERROR_ENUM(PKPaymentErrorDomain, PKPaymentErrorCode) { … … 187 189 @property (nonatomic, assign) PKShippingType shippingType; 188 190 @property (nonatomic, copy, nullable) NSData *applicationData; 189 #if __MAC_OS_X_VERSION_M IN_REQUIRED >= 101300191 #if __MAC_OS_X_VERSION_MAX_ALLOWED >= 101300 190 192 @property (nonatomic, copy, nullable) NSSet<NSString *> *supportedCountries; 193 @property (nonatomic, strong) NSSet<PKContactField> *requiredShippingContactFields; 194 @property (nonatomic, strong) NSSet<PKContactField> *requiredBillingContactFields; 191 195 #endif 192 196 @end … … 246 250 #endif 247 251 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) 249 253 typedef NS_ENUM(NSInteger, PKPaymentButtonStyle) { 250 254 PKPaymentButtonStyleWhite = 0, … … 299 303 @property (nonatomic, strong) NSString *sourceApplicationSecondaryIdentifier; 300 304 @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 #endif306 307 305 @end 308 306
Note: See TracChangeset
for help on using the changeset viewer.