| 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_METHOD_SELECTION_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_ |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 @end | 34 @end |
| 35 | 35 |
| 36 // View controller responsible for presenting the available payment methods for | 36 // View controller responsible for presenting the available payment methods for |
| 37 // selection by the user and communicating their choice to the supplied | 37 // selection by the user and communicating their choice to the supplied |
| 38 // delegate. Also offers a button to add a new payment method. | 38 // delegate. Also offers a button to add a new payment method. |
| 39 @interface PaymentMethodSelectionViewController : CollectionViewController | 39 @interface PaymentMethodSelectionViewController : CollectionViewController |
| 40 | 40 |
| 41 // The delegate to be notified when the user selects a payment method or chooses | 41 // The delegate to be notified when the user selects a payment method or chooses |
| 42 // to return without selecting one. | 42 // to return without selecting one. |
| 43 @property(nonatomic, weak) id<PaymentMethodSelectionViewControllerDelegate> | 43 @property(nonatomic, weak) |
| 44 delegate; | 44 id<PaymentMethodSelectionViewControllerDelegate> delegate; |
| 45 | 45 |
| 46 // Initializes this object with an instance of PaymentRequest which owns an | 46 // Initializes this object with an instance of PaymentRequest which owns an |
| 47 // instance of web::PaymentRequest as provided by the page invoking the Payment | 47 // instance of web::PaymentRequest as provided by the page invoking the Payment |
| 48 // Request API. This object will not take ownership of |paymentRequest|. | 48 // Request API. This object will not take ownership of |paymentRequest|. |
| 49 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest | 49 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest |
| 50 NS_DESIGNATED_INITIALIZER; | 50 NS_DESIGNATED_INITIALIZER; |
| 51 | 51 |
| 52 - (instancetype)init NS_UNAVAILABLE; | 52 - (instancetype)init NS_UNAVAILABLE; |
| 53 | 53 |
| 54 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 54 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 55 NS_UNAVAILABLE; | 55 NS_UNAVAILABLE; |
| 56 | 56 |
| 57 @end | 57 @end |
| 58 | 58 |
| 59 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_
H_ | 59 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_
H_ |
| OLD | NEW |