OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_OPTION_SELECTION_VIEW_CONTROLLER_H_ | 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_ |
6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER_H_ | 6 #define IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_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 24 matching lines...) Expand all Loading... |
35 @interface ShippingOptionSelectionViewController : CollectionViewController | 35 @interface ShippingOptionSelectionViewController : CollectionViewController |
36 | 36 |
37 // Whether or not the view is in a loading state. | 37 // Whether or not the view is in a loading state. |
38 @property(nonatomic, assign) BOOL isLoading; | 38 @property(nonatomic, assign) BOOL isLoading; |
39 | 39 |
40 // The error message to display, if any. | 40 // The error message to display, if any. |
41 @property(nonatomic, copy) NSString* errorMessage; | 41 @property(nonatomic, copy) NSString* errorMessage; |
42 | 42 |
43 // The delegate to be notified when the user selects a shipping option or | 43 // The delegate to be notified when the user selects a shipping option or |
44 // returns without selecting one. | 44 // returns without selecting one. |
45 @property(nonatomic, weak) id<ShippingOptionSelectionViewControllerDelegate> | 45 @property(nonatomic, weak) |
46 delegate; | 46 id<ShippingOptionSelectionViewControllerDelegate> delegate; |
47 | 47 |
48 // Initializes this object with an instance of PaymentRequest which owns an | 48 // Initializes this object with an instance of PaymentRequest which owns an |
49 // instance of web::PaymentRequest as provided by the page invoking the Payment | 49 // instance of web::PaymentRequest as provided by the page invoking the Payment |
50 // Request API. This object will not take ownership of |paymentRequest|. | 50 // Request API. This object will not take ownership of |paymentRequest|. |
51 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest | 51 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest |
52 NS_DESIGNATED_INITIALIZER; | 52 NS_DESIGNATED_INITIALIZER; |
53 | 53 |
54 - (instancetype)init NS_UNAVAILABLE; | 54 - (instancetype)init NS_UNAVAILABLE; |
55 | 55 |
56 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | 56 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style |
57 NS_UNAVAILABLE; | 57 NS_UNAVAILABLE; |
58 | 58 |
59 @end | 59 @end |
60 | 60 |
61 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER
_H_ | 61 #endif // IOS_CHROME_BROWSER_PAYMENTS_SHIPPING_OPTION_SELECTION_VIEW_CONTROLLER
_H_ |
OLD | NEW |