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

Unified Diff: ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h

Issue 2876603005: [Payment Request] Refactors the edit view controller (Closed)
Patch Set: Created 3 years, 7 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/ui/payments/credit_card_edit_view_controller_data_source.h
diff --git a/ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h b/ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h
index f8b72208de9458b9e14b46ed5f224448bfa5821f..406aca3402c671e835df7daaadeeb018fb936505 100644
--- a/ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h
+++ b/ios/chrome/browser/ui/payments/credit_card_edit_view_controller_data_source.h
@@ -9,34 +9,10 @@
#import "ios/chrome/browser/ui/payments/payment_request_edit_view_controller_data_source.h"
-@class CollectionViewItem;
-
-// The possible states the view controller can be in.
-typedef NS_ENUM(NSInteger, CreditCardEditViewControllerState) {
- // The view controller is used to create a new credit card.
- CreditCardEditViewControllerStateCreate,
- // The view controller is used to edit a credit card.
- CreditCardEditViewControllerStateEdit,
-};
-
// Data source protocol for CreditCardEditViewController.
@protocol CreditCardEditViewControllerDataSource<
PaymentRequestEditViewControllerDataSource>
-// The current state of the view controller.
-@property(nonatomic, assign) CreditCardEditViewControllerState state;
-
-// Returns an item that identifies the credit card being edited. May return nil.
-- (CollectionViewItem*)serverCardSummaryItem;
-
-// Returns an item that displays a list of payment method type icons for the
-// accepted payment methods. May return nil.
-- (CollectionViewItem*)acceptedPaymentMethodsItem;
-
-// Returns the billing address label from an autofill profile with the given
-// guid. Returns nil if the profile does not have an address.
-- (NSString*)billingAddressLabelForProfileWithGUID:(NSString*)profileGUID;
-
// Returns the credit card type icon corresponding to |cardNumber|.
- (UIImage*)cardTypeIconFromCardNumber:(NSString*)cardNumber;

Powered by Google App Engine
This is Rietveld 408576698