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_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "components/autofill/core/browser/autofill_manager.h" | 10 #include "components/autofill/core/browser/autofill_manager.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // An instance of autofill::AutofillManager used for credit card unmasking. This | 66 // An instance of autofill::AutofillManager used for credit card unmasking. This |
67 // reference is not owned by this class. | 67 // reference is not owned by this class. |
68 @property(nonatomic, assign) autofill::AutofillManager* autofillManager; | 68 @property(nonatomic, assign) autofill::AutofillManager* autofillManager; |
69 | 69 |
70 // An ios::ChromeBrowserState instance. This reference is not owned by this | 70 // An ios::ChromeBrowserState instance. This reference is not owned by this |
71 // class. | 71 // class. |
72 @property(nonatomic, assign) ios::ChromeBrowserState* browserState; | 72 @property(nonatomic, assign) ios::ChromeBrowserState* browserState; |
73 | 73 |
74 // The favicon of the page invoking the PaymentRequest API. Should be set before | 74 // The favicon of the page invoking the PaymentRequest API. Should be set before |
75 // calling |start|. | 75 // calling |start|. |
76 @property(nonatomic, retain) UIImage* pageFavicon; | 76 @property(nonatomic, strong) UIImage* pageFavicon; |
77 | 77 |
78 // The title of the page invoking the Payment Request API. Should be set before | 78 // The title of the page invoking the Payment Request API. Should be set before |
79 // calling |start|. | 79 // calling |start|. |
80 @property(nonatomic, copy) NSString* pageTitle; | 80 @property(nonatomic, copy) NSString* pageTitle; |
81 | 81 |
82 // The host of the page invoking the Payment Request API. Should be set before | 82 // The host of the page invoking the Payment Request API. Should be set before |
83 // calling |start|. | 83 // calling |start|. |
84 @property(nonatomic, copy) NSString* pageHost; | 84 @property(nonatomic, copy) NSString* pageHost; |
85 | 85 |
86 // The delegate to be notified when the user confirms or cancels the request. | 86 // The delegate to be notified when the user confirms or cancels the request. |
87 @property(nonatomic, weak) id<PaymentRequestCoordinatorDelegate> delegate; | 87 @property(nonatomic, weak) id<PaymentRequestCoordinatorDelegate> delegate; |
88 | 88 |
89 // Updates the payment details of the PaymentRequest and updates the UI. | 89 // Updates the payment details of the PaymentRequest and updates the UI. |
90 - (void)updatePaymentDetails:(web::PaymentDetails)paymentDetails; | 90 - (void)updatePaymentDetails:(web::PaymentDetails)paymentDetails; |
91 | 91 |
92 // Called when a credit card has been successfully unmasked. | 92 // Called when a credit card has been successfully unmasked. |
93 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card | 93 - (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card |
94 CVC:(const base::string16&)cvc; | 94 CVC:(const base::string16&)cvc; |
95 | 95 |
96 @end | 96 @end |
97 | 97 |
98 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ | 98 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_COORDINATOR_H_ |
OLD | NEW |