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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 - (void)paymentRequestViewControllerDidSelectPaymentMethodItem: | 42 - (void)paymentRequestViewControllerDidSelectPaymentMethodItem: |
43 (PaymentRequestViewController*)controller; | 43 (PaymentRequestViewController*)controller; |
44 | 44 |
45 @end | 45 @end |
46 | 46 |
47 // View controller responsible for presenting the details of a PaymentRequest to | 47 // View controller responsible for presenting the details of a PaymentRequest to |
48 // the user and communicating their choices to the supplied delegate. | 48 // the user and communicating their choices to the supplied delegate. |
49 @interface PaymentRequestViewController : CollectionViewController | 49 @interface PaymentRequestViewController : CollectionViewController |
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, retain) 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 // The delegate to be notified when the user confirms or cancels the request. | 60 // The delegate to be notified when the user confirms or cancels the request. |
61 @property(nonatomic, weak) id<PaymentRequestViewControllerDelegate> delegate; | 61 @property(nonatomic, weak) id<PaymentRequestViewControllerDelegate> delegate; |
62 | 62 |
(...skipping 18 matching lines...) Expand all Loading... |
81 NS_DESIGNATED_INITIALIZER; | 81 NS_DESIGNATED_INITIALIZER; |
82 | 82 |
83 - (instancetype)init NS_UNAVAILABLE; | 83 - (instancetype)init NS_UNAVAILABLE; |
84 | 84 |
85 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 85 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
86 NS_UNAVAILABLE; | 86 NS_UNAVAILABLE; |
87 | 87 |
88 @end | 88 @end |
89 | 89 |
90 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ | 90 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_H_ |
OLD | NEW |