OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "base/ios/block_types.h" | 10 #include "base/ios/block_types.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 - (void)paymentRequestCoordinatorDidCancel: | 45 - (void)paymentRequestCoordinatorDidCancel: |
46 (PaymentRequestCoordinator*)coordinator; | 46 (PaymentRequestCoordinator*)coordinator; |
47 | 47 |
48 // Notifies the delegate that the user has selected to go to the card and | 48 // Notifies the delegate that the user has selected to go to the card and |
49 // address options page in Settings. | 49 // address options page in Settings. |
50 - (void)paymentRequestCoordinatorDidSelectSettings: | 50 - (void)paymentRequestCoordinatorDidSelectSettings: |
51 (PaymentRequestCoordinator*)coordinator; | 51 (PaymentRequestCoordinator*)coordinator; |
52 | 52 |
53 // Notifies the delegate that the user has completed the payment request. | 53 // Notifies the delegate that the user has completed the payment request. |
54 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator | 54 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator |
55 didCompletePaymentRequest:(PaymentRequest*)paymentRequest | 55 didCompletePaymentRequestWithCard:(const autofill::CreditCard&)card |
56 card:(const autofill::CreditCard&)card | 56 verificationCode:(const base::string16&)verificationCode; |
57 verificationCode:(const base::string16&)verificationCode; | |
58 | 57 |
59 // Notifies the delegate that the user has selected a shipping address. | 58 // Notifies the delegate that the user has selected a shipping address. |
60 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator | 59 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator |
61 didSelectShippingAddress:(payments::PaymentAddress)shippingAddress; | 60 didSelectShippingAddress:(payments::PaymentAddress)shippingAddress; |
62 | 61 |
63 // Notifies the delegate that the user has selected a shipping option. | 62 // Notifies the delegate that the user has selected a shipping option. |
64 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator | 63 - (void)paymentRequestCoordinator:(PaymentRequestCoordinator*)coordinator |
65 didSelectShippingOption:(web::PaymentShippingOption)shippingOption; | 64 didSelectShippingOption:(web::PaymentShippingOption)shippingOption; |
66 | 65 |
67 @end | 66 @end |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // may be different from what's returned by the selected_credit_card() method of | 114 // may be different from what's returned by the selected_credit_card() method of |
116 // |paymentRequest|, because CVC unmasking process may update the credit card | 115 // |paymentRequest|, because CVC unmasking process may update the credit card |
117 // number and expiration date. | 116 // number and expiration date. |
118 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card | 117 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card |
119 verificationCode: | 118 verificationCode: |
120 (const base::string16&)verificationCode; | 119 (const base::string16&)verificationCode; |
121 | 120 |
122 @end | 121 @end |
123 | 122 |
124 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 123 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
OLD | NEW |