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_COORDINATOR_H_ |
| 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_COORDINATOR_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "base/ios/block_types.h" |
| 11 #import "ios/chrome/browser/chrome_coordinator.h" |
| 12 #import "ios/chrome/browser/payments/payment_request_error_view_controller.h" |
| 13 |
| 14 @class PaymentRequestErrorCoordinator; |
| 15 |
| 16 // Delegate protocol for PaymentRequestErrorCoordinator. |
| 17 @protocol PaymentRequestErrorCoordinatorDelegate<NSObject> |
| 18 |
| 19 // Notifies the delegate that the user has dismissed the error. |
| 20 - (void)paymentRequestErrorCoordinatorDidDismiss: |
| 21 (PaymentRequestErrorCoordinator*)coordinator; |
| 22 |
| 23 @end |
| 24 |
| 25 // Coordinator responsible for creating and presenting the payment request error |
| 26 // view controller. |
| 27 @interface PaymentRequestErrorCoordinator |
| 28 : ChromeCoordinator<PaymentRequestErrorViewControllerDelegate> |
| 29 |
| 30 // The callback to be called once the error is dismissed, if any. |
| 31 @property(nonatomic, copy) ProceduralBlock callback; |
| 32 |
| 33 // The delegate to be notified when the user dismisses the error. |
| 34 @property(nonatomic, weak) id<PaymentRequestErrorCoordinatorDelegate> delegate; |
| 35 |
| 36 @end |
| 37 |
| 38 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_COORDINATOR_H_ |
OLD | NEW |