Bug 159278 - Add "type" and "paymentPass" properties in PaymentMethod
Summary: Add "type" and "paymentPass" properties in PaymentMethod
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Anders Carlsson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-29 14:52 PDT by Anders Carlsson
Modified: 2016-06-29 15:41 PDT (History)
0 users

See Also:


Attachments
Patch (4.46 KB, patch)
2016-06-29 14:54 PDT, Anders Carlsson
dino: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Anders Carlsson 2016-06-29 14:52:35 PDT
Add "type" and "paymentPass" properties in PaymentMethod
Comment 1 Anders Carlsson 2016-06-29 14:54:37 PDT
Created attachment 282377 [details]
Patch
Comment 2 Dean Jackson 2016-06-29 14:57:23 PDT
Comment on attachment 282377 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=282377&action=review

> Source/WebCore/ChangeLog:13
> +        * platform/cocoa/ThemeCocoa.mm:
> +        (WebCore::drawApplePayButton):

You didn't explain this change.

> Source/WebCore/Modules/applepay/cocoa/PaymentMethodCocoa.mm:55
> +    case PKPaymentPassActivationStateActivated:
> +        return @"activated";
> +
> +    case PKPaymentPassActivationStateRequiresActivation:
> +        return @"requiresActivation";
> +
> +    case PKPaymentPassActivationStateActivating:
> +        return @"activating";
> +
> +    case PKPaymentPassActivationStateSuspended:
> +        return @"suspended";
> +
> +    case PKPaymentPassActivationStateDeactivated:
> +        return @"deactivated";
> +
> +    default:
> +        return nil;

Why all the blank lines?

> Source/WebCore/Modules/applepay/cocoa/PaymentMethodCocoa.mm:93
> +    switch (paymentMethodType) {
> +    case PKPaymentMethodTypeDebit:
> +        return @"debit";
> +
> +    case PKPaymentMethodTypeCredit:
> +        return @"credit";
> +
> +    case PKPaymentMethodTypePrepaid:
> +        return @"prepaid";
> +
> +    case PKPaymentMethodTypeStore:
> +        return @"store";
> +
> +    case PKPaymentMethodTypeUnknown:
> +    default:
> +        return nil;
> +    }

And here?
Comment 3 Anders Carlsson 2016-06-29 15:41:39 PDT
Committed r202655: <http://trac.webkit.org/changeset/202655>