Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_ | |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_ | |
| 7 | |
| 8 #import <UIKit/UIKit.h> | |
| 9 | |
| 10 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h" | |
| 11 | |
| 12 extern NSString* const kPaymentRequestErrorCollectionViewID; | |
| 13 | |
| 14 @class PaymentRequestErrorViewController; | |
| 15 | |
| 16 // Delegate protocol for PaymentRequestErrorViewController. | |
| 17 @protocol PaymentRequestErrorViewControllerDelegate<NSObject> | |
| 18 | |
| 19 // Notifies the delegate that the user has dismissed the error. | |
| 20 - (void)paymentRequestErrorViewControllerDidDismiss: | |
| 21 (PaymentRequestErrorViewController*)controller; | |
| 22 | |
| 23 @end | |
| 24 | |
| 25 // View controller responsible for presenting the error for the payment request. | |
| 26 @interface PaymentRequestErrorViewController : CollectionViewController | |
| 27 | |
| 28 // The error message to display, if any. | |
| 29 @property(nonatomic, assign) NSString* errorMessage; | |
|
lpromero
2017/02/21 16:51:08
s/assign/copy
Moe
2017/02/21 22:56:15
Done! also started using base::mac::ReleasePropert
lpromero
2017/02/22 13:31:44
Good to know. Thanks for the heads up!
| |
| 30 | |
| 31 // The delegate to be notified when the user dismisses the error. | |
| 32 @property(nonatomic, weak) id<PaymentRequestErrorViewControllerDelegate> | |
|
lpromero
2017/02/21 16:51:08
s/weak/assign under non-ARC
Moe
2017/02/21 22:56:15
Done.
| |
| 33 delegate; | |
| 34 | |
| 35 - (instancetype)init NS_DESIGNATED_INITIALIZER; | |
| 36 | |
| 37 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | |
| 38 NS_UNAVAILABLE; | |
| 39 | |
| 40 @end | |
| 41 | |
| 42 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_ | |
| OLD | NEW |