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

Unified Diff: ios/chrome/browser/payments/cells/payments_has_accessory_type.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/payments_has_accessory_type.h
diff --git a/ios/chrome/browser/payments/cells/payments_has_accessory_type.h b/ios/chrome/browser/payments/cells/payments_has_accessory_type.h
new file mode 100644
index 0000000000000000000000000000000000000000..8ca597cc5420fe8bc4cd7d47c6d045bb02db9d55
--- /dev/null
+++ b/ios/chrome/browser/payments/cells/payments_has_accessory_type.h
@@ -0,0 +1,19 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_HAS_ACCESSORY_TYPE_H_
+#define IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_HAS_ACCESSORY_TYPE_H_
+
+#import "ios/third_party/material_components_ios/src/components/CollectionCells/src/MaterialCollectionCells.h"
+
+// Protocol adopted by the payments collection view items that set the accessory
+// view type on their represented cells.
+@protocol PaymentsHasAccessoryType
Justin Donnelly 2017/04/17 15:21:58 Does this name conform to some existing pattern? L
Moe 2017/04/17 15:45:30 I'm not following any convention in naming nor my
+
+// The accessory view type for the represented cell.
+@property(nonatomic) MDCCollectionViewCellAccessoryType accessoryType;
+
+@end
+
+#endif // IOS_CHROME_BROWSER_PAYMENTS_CELLS_PAYMENTS_HAS_ACCESSORY_TYPE_H_
« no previous file with comments | « ios/chrome/browser/payments/cells/payment_method_item.h ('k') | ios/chrome/browser/payments/cells/payments_text_item.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698