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

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

Issue 2621453002: Selected shipping option in payment summary view + shipping option selection view (Closed)
Patch Set: Addressed comments by lpromero@ and jdonnelley@ Created 3 years, 11 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_view_controller.h
diff --git a/ios/chrome/browser/payments/payment_request_view_controller.h b/ios/chrome/browser/payments/payment_request_view_controller.h
index 311064ab5a6c569d6a7e02ee843081100c1b510b..359216ec25b23f102aa582227bad64147ff3866b 100644
--- a/ios/chrome/browser/payments/payment_request_view_controller.h
+++ b/ios/chrome/browser/payments/payment_request_view_controller.h
@@ -20,6 +20,7 @@ class CreditCard;
- (void)paymentRequestViewControllerDidConfirm;
- (void)paymentRequestViewControllerDisplayPaymentItems;
- (void)paymentRequestViewControllerSelectShippingAddress;
+- (void)paymentRequestViewControllerSelectShippingOption;
- (void)paymentRequestViewControllerSelectPaymentMethod;
@end
@@ -44,6 +45,9 @@ class CreditCard;
// The currently selected and displayed shipping address, if any.
@property(nonatomic, assign) autofill::AutofillProfile* selectedShippingAddress;
+// The currently selected and displayed shipping option, if any.
+@property(nonatomic, assign) web::PaymentShippingOption* selectedShippingOption;
+
// The currently selected and displayed payment method, if any.
@property(nonatomic, assign) autofill::CreditCard* selectedPaymentMethod;
@@ -54,6 +58,10 @@ class CreditCard;
- (void)updateSelectedShippingAddress:
(autofill::AutofillProfile*)shippingAddress;
+// Sets the selected shipping option and updates the UI.
+- (void)updateSelectedShippingOption:
+ (web::PaymentShippingOption*)shippingOption;
+
- (instancetype)init NS_DESIGNATED_INITIALIZER;
- (instancetype)initWithStyle:(CollectionViewControllerStyle)style
« no previous file with comments | « ios/chrome/browser/payments/payment_request_utils.mm ('k') | ios/chrome/browser/payments/payment_request_view_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698