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

Unified Diff: ios/chrome/browser/payments/payment_request_coordinator.h

Issue 2701923003: [Payment Request] Error message screen (Closed)
Patch Set: ARCified Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/payments/payment_request_coordinator.h
diff --git a/ios/chrome/browser/payments/payment_request_coordinator.h b/ios/chrome/browser/payments/payment_request_coordinator.h
index bd316ffcc49eaff98d1055222573a1dabef41c9b..5491986c88d77c175203cc411e27cfbf86ea59cc 100644
--- a/ios/chrome/browser/payments/payment_request_coordinator.h
+++ b/ios/chrome/browser/payments/payment_request_coordinator.h
@@ -7,11 +7,13 @@
#import <UIKit/UIKit.h>
+#include "base/ios/block_types.h"
#include "components/autofill/core/browser/autofill_manager.h"
#import "ios/chrome/browser/chrome_coordinator.h"
#import "ios/chrome/browser/payments/payment_items_display_coordinator.h"
#import "ios/chrome/browser/payments/payment_method_selection_coordinator.h"
#include "ios/chrome/browser/payments/payment_request.h"
+#include "ios/chrome/browser/payments/payment_request_error_coordinator.h"
#import "ios/chrome/browser/payments/payment_request_view_controller.h"
#import "ios/chrome/browser/payments/shipping_address_selection_coordinator.h"
#import "ios/chrome/browser/payments/shipping_option_selection_coordinator.h"
@@ -48,16 +50,12 @@ class ChromeBrowserState;
// provided in the initializer.
@interface PaymentRequestCoordinator
: ChromeCoordinator<PaymentRequestViewControllerDelegate,
+ PaymentRequestErrorCoordinatorDelegate,
PaymentItemsDisplayCoordinatorDelegate,
PaymentMethodSelectionCoordinatorDelegate,
ShippingAddressSelectionCoordinatorDelegate,
ShippingOptionSelectionCoordinatorDelegate>
-// Creates a Payment Request coordinator that will present UI on
-// |viewController| using data available from |personalDataManager|.
-- (instancetype)initWithBaseViewController:(UIViewController*)viewController
- NS_DESIGNATED_INITIALIZER;
-
// The PaymentRequest object owning an instance of web::PaymentRequest as
// provided by the page invoking the Payment Request API. This pointer is not
// owned by this class and should outlive it.
@@ -89,6 +87,9 @@ class ChromeBrowserState;
// Updates the payment details of the PaymentRequest and updates the UI.
- (void)updatePaymentDetails:(web::PaymentDetails)paymentDetails;
+// Displays an error message. Invokes |callback| when the message is dismissed.
+- (void)displayErrorWithCallback:(ProceduralBlock)callback;
+
// Called when a credit card has been successfully unmasked.
- (void)fullCardRequestDidSucceedWithCard:(const autofill::CreditCard&)card
CVC:(const base::string16&)cvc;

Powered by Google App Engine
This is Rietveld 408576698