Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: ios/chrome/browser/payments/shipping_option_selection_view_controller.h

Issue 2710493006: [ObjC ARC] Converts ios/chrome/browser/payments:payments to ARC. (Closed)
Patch Set: rebase? Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 20 matching lines...) Expand all
31 31
32 // View controller responsible for presenting the available shipping options 32 // View controller responsible for presenting the available shipping options
33 // for selection by the user and communicating their choice to the supplied 33 // for selection by the user and communicating their choice to the supplied
34 // delegate. 34 // delegate.
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, assign) 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) id<ShippingOptionSelectionViewControllerDelegate>
46 delegate; 46 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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698