| 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_SHIPPING_ADDRESS_SELECTION_VIEW_CONTROLLER_H
_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_VIEW_CONTROLLER_H
_ |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_VIEW_CONTROLLER_H
_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_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 28 matching lines...) Expand all Loading... |
| 39 @interface ShippingAddressSelectionViewController : CollectionViewController | 39 @interface ShippingAddressSelectionViewController : CollectionViewController |
| 40 | 40 |
| 41 // Whether or not the view is in a pending state. | 41 // Whether or not the view is in a pending state. |
| 42 @property(nonatomic, assign, getter=isPending) BOOL pending; | 42 @property(nonatomic, assign, getter=isPending) BOOL pending; |
| 43 | 43 |
| 44 // The error message to display, if any. | 44 // The error message to display, if any. |
| 45 @property(nonatomic, copy) NSString* errorMessage; | 45 @property(nonatomic, copy) NSString* errorMessage; |
| 46 | 46 |
| 47 // The delegate to be notified when the user selects a shipping address or | 47 // The delegate to be notified when the user selects a shipping address or |
| 48 // returns without selecting one. | 48 // returns without selecting one. |
| 49 @property(nonatomic, weak) id<ShippingAddressSelectionViewControllerDelegate> | 49 @property(nonatomic, weak) |
| 50 delegate; | 50 id<ShippingAddressSelectionViewControllerDelegate> delegate; |
| 51 | 51 |
| 52 // Initializes this object with an instance of PaymentRequest which owns an | 52 // Initializes this object with an instance of PaymentRequest which owns an |
| 53 // instance of web::PaymentRequest as provided by the page invoking the Payment | 53 // instance of web::PaymentRequest as provided by the page invoking the Payment |
| 54 // Request API. This object will not take ownership of |paymentRequest|. | 54 // Request API. This object will not take ownership of |paymentRequest|. |
| 55 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest | 55 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest |
| 56 NS_DESIGNATED_INITIALIZER; | 56 NS_DESIGNATED_INITIALIZER; |
| 57 | 57 |
| 58 - (instancetype)init NS_UNAVAILABLE; | 58 - (instancetype)init NS_UNAVAILABLE; |
| 59 | 59 |
| 60 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 60 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
| 61 NS_UNAVAILABLE; | 61 NS_UNAVAILABLE; |
| 62 | 62 |
| 63 @end | 63 @end |
| 64 | 64 |
| 65 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_VIEW_CONTROLLE
R_H_ | 65 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_ADDRESS_SELECTION_VIEW_CONTROLLE
R_H_ |
| OLD | NEW |