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

Unified Diff: ios/chrome/browser/payments/cells/payment_method_item.h

Issue 2825483002: [Payment Request] Protocol for payments items with accessoryType property (Closed)
Patch Set: Initial Created 3 years, 8 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/cells/payment_method_item.h
diff --git a/ios/chrome/browser/payments/cells/payment_method_item.h b/ios/chrome/browser/payments/cells/payment_method_item.h
index 0713ec995fea4132993094774f1f0b583bb3cccc..5b6f4fc3f1ad3b03970294055585010f6f703e15 100644
--- a/ios/chrome/browser/payments/cells/payment_method_item.h
+++ b/ios/chrome/browser/payments/cells/payment_method_item.h
@@ -7,11 +7,12 @@
#import <UIKit/UIKit.h>
+#import "ios/chrome/browser/payments/cells/payments_has_accessory_type.h"
#import "ios/chrome/browser/ui/collection_view/cells/collection_view_item.h"
#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
// PaymentMethodItem is the model class corresponding to PaymentMethodCell.
-@interface PaymentMethodItem : CollectionViewItem
+@interface PaymentMethodItem : CollectionViewItem<PaymentsHasAccessoryType>
// A unique identifier for the payment method (for example, the type and last 4
// digits of a credit card).
@@ -36,9 +37,6 @@
// has the same size regardless of whether the accessory type is set.
@property(nonatomic, assign) BOOL reserveRoomForAccessoryType;
-// The accessory type to be shown in the cell.
-@property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
-
@end
// PaymentMethodCell implements an MDCCollectionViewCell subclass containing

Powered by Google App Engine
This is Rietveld 408576698