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

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

Issue 2938673003: [Payment Request] Selector view edit mode (Closed)
Patch Set: Addressed comments Created 3 years, 6 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/payment_request_selector_view_controller_data_source.h
diff --git a/ios/chrome/browser/ui/payments/payment_request_selector_view_controller_data_source.h b/ios/chrome/browser/ui/payments/payment_request_selector_view_controller_data_source.h
index c1caff049ce22becb2c42cc72b598acf5c8f5782..5c0a6f620c68b779292c14280acc7d0849884e10 100644
--- a/ios/chrome/browser/ui/payments/payment_request_selector_view_controller_data_source.h
+++ b/ios/chrome/browser/ui/payments/payment_request_selector_view_controller_data_source.h
@@ -15,6 +15,8 @@
typedef NS_ENUM(NSUInteger, PaymentRequestSelectorState) {
// The view controller is in normal state.
PaymentRequestSelectorStateNormal,
+ // The view controller is in edit state.
+ PaymentRequestSelectorStateEdit,
// The view controller is in pending state.
PaymentRequestSelectorStatePending,
// The view controller is in error state.
@@ -32,6 +34,9 @@ typedef NS_ENUM(NSUInteger, PaymentRequestSelectorState) {
// Index for the currently selected item or NSUIntegerMax if there is none.
@property(nonatomic, readonly) NSUInteger selectedItemIndex;
+// Whether or not the view controller supports edit mode.
+- (BOOL)allowsEditMode;
+
// The header item to display in the collection, if any.
- (CollectionViewItem*)headerItem;

Powered by Google App Engine
This is Rietveld 408576698