 Chromium Code Reviews
 Chromium Code Reviews Issue 2701923003:
  [Payment Request] Error message screen  (Closed)
    
  
    Issue 2701923003:
  [Payment Request] Error message screen  (Closed) 
  | 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; | |
| 
lpromero
2017/02/20 17:14:06
s/Id/ID
 
Moe
2017/02/21 05:07:06
Done.
 | |
| 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; | |
| 30 | |
| 31 // The callback to be called once the error is dismissed, if any. | |
| 32 @property(nonatomic, copy) void (^callback)(); | |
| 33 | |
| 34 // The delegate to be notified when the user dismisses the error. | |
| 35 @property(nonatomic, weak) id<PaymentRequestErrorViewControllerDelegate> | |
| 36 delegate; | |
| 37 | |
| 38 - (instancetype)init NS_DESIGNATED_INITIALIZER; | |
| 39 | |
| 40 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style | |
| 41 NS_UNAVAILABLE; | |
| 42 | |
| 43 @end | |
| 44 | |
| 45 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_ | |
| OLD | NEW |