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

Side by Side Diff: ios/chrome/browser/ui/payments/payment_method_selection_mediator.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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_ 5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_ 6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_
7 7
8 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller _data_source.h" 8 #import "ios/chrome/browser/ui/payments/payment_request_selector_view_controller _data_source.h"
9 9
10 class PaymentRequest; 10 class PaymentRequest;
11 11
12 // Serves as data source for PaymentRequestSelectorViewController. 12 // Serves as data source for PaymentRequestSelectorViewController.
13 @interface PaymentMethodSelectionMediator 13 @interface PaymentMethodSelectionMediator
14 : NSObject<PaymentRequestSelectorViewControllerDataSource> 14 : NSObject<PaymentRequestSelectorViewControllerDataSource>
15 15
16 // Index for the currently selected item or NSUIntegerMax if there is none. 16 // Redefined to be read-write.
17 @property(nonatomic, readwrite, assign) PaymentRequestSelectorState state;
18
19 // Redefined to be read-write.
17 @property(nonatomic, readwrite, assign) NSUInteger selectedItemIndex; 20 @property(nonatomic, readwrite, assign) NSUInteger selectedItemIndex;
18 21
22 // Creates and stores the selectable items to display in the collection.
23 - (void)loadItems;
24
19 // Initializes this object with an instance of PaymentRequest which has a copy 25 // Initializes this object with an instance of PaymentRequest which has a copy
20 // of web::PaymentRequest as provided by the page invoking the Payment Request 26 // of web::PaymentRequest as provided by the page invoking the Payment Request
21 // API. This object will not take ownership of |paymentRequest|. 27 // API. This object will not take ownership of |paymentRequest|.
22 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest 28 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest
23 NS_DESIGNATED_INITIALIZER; 29 NS_DESIGNATED_INITIALIZER;
24 30
25 - (instancetype)init NS_UNAVAILABLE; 31 - (instancetype)init NS_UNAVAILABLE;
26 32
27 @end 33 @end
28 34
29 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_ 35 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_METHOD_SELECTION_MEDIATOR_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698