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_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ |
7 | 7 |
8 #import <UIKit/UIKit.h> | 8 #import <UIKit/UIKit.h> |
9 | 9 |
10 #include "ios/chrome/browser/payments/payment_request.h" | 10 #include "ios/chrome/browser/payments/payment_request.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
50 | 50 |
51 // The favicon of the page invoking the Payment Request API. | 51 // The favicon of the page invoking the Payment Request API. |
52 @property(nonatomic, strong) UIImage* pageFavicon; | 52 @property(nonatomic, strong) UIImage* pageFavicon; |
53 | 53 |
54 // The title of the page invoking the Payment Request API. | 54 // The title of the page invoking the Payment Request API. |
55 @property(nonatomic, copy) NSString* pageTitle; | 55 @property(nonatomic, copy) NSString* pageTitle; |
56 | 56 |
57 // The host of the page invoking the Payment Request API. | 57 // The host of the page invoking the Payment Request API. |
58 @property(nonatomic, copy) NSString* pageHost; | 58 @property(nonatomic, copy) NSString* pageHost; |
59 | 59 |
60 // Whether or not the view is in a pending state. | |
61 @property(nonatomic, assign) BOOL isPending; | |
lpromero
2017/02/23 15:27:52
Nit:
@property(nonatomic, assign, getter="isPendin
Moe
2017/02/23 16:22:27
Done.
| |
62 | |
60 // The delegate to be notified when the user confirms or cancels the request. | 63 // The delegate to be notified when the user confirms or cancels the request. |
61 @property(nonatomic, weak) id<PaymentRequestViewControllerDelegate> delegate; | 64 @property(nonatomic, weak) id<PaymentRequestViewControllerDelegate> delegate; |
62 | 65 |
63 // Updates the payment summary section UI. If |totalValueChanged| is YES, | 66 // Updates the payment summary section UI. If |totalValueChanged| is YES, |
64 // adds a label to the total amount item indicating that the total amount was | 67 // adds a label to the total amount item indicating that the total amount was |
65 // updated. | 68 // updated. |
66 - (void)updatePaymentSummaryWithTotalValueChanged:(BOOL)totalValueChanged; | 69 - (void)updatePaymentSummaryWithTotalValueChanged:(BOOL)totalValueChanged; |
67 | 70 |
68 // Updates the selected shipping address. | 71 // Updates the selected shipping address. |
69 - (void)updateSelectedShippingAddressUI; | 72 - (void)updateSelectedShippingAddressUI; |
(...skipping 11 matching lines...) Expand all Loading... | |
81 NS_DESIGNATED_INITIALIZER; | 84 NS_DESIGNATED_INITIALIZER; |
82 | 85 |
83 - (instancetype)init NS_UNAVAILABLE; | 86 - (instancetype)init NS_UNAVAILABLE; |
84 | 87 |
85 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 88 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
86 NS_UNAVAILABLE; | 89 NS_UNAVAILABLE; |
87 | 90 |
88 @end | 91 @end |
89 | 92 |
90 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ | 93 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ |
OLD | NEW |