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

Side by Side Diff: ios/chrome/browser/payments/payment_method_selection_view_controller.h

Issue 2744823003: [Payment Request] Generic edit form (Closed)
Patch Set: Created 3 years, 9 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_ 5 #ifndef IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_ 6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_H_
7 7
8 #import <UIKit/UIKit.h> 8 #import <UIKit/UIKit.h>
9 9
10 #include "ios/chrome/browser/payments/payment_request.h" 10 #include "ios/chrome/browser/payments/payment_request.h"
(...skipping 13 matching lines...) Expand all
24 - (void)paymentMethodSelectionViewController: 24 - (void)paymentMethodSelectionViewController:
25 (PaymentMethodSelectionViewController*)controller 25 (PaymentMethodSelectionViewController*)controller
26 didSelectPaymentMethod: 26 didSelectPaymentMethod:
27 (autofill::CreditCard*)paymentMethod; 27 (autofill::CreditCard*)paymentMethod;
28 28
29 // Notifies the delegate that the user has chosen to return to the previous 29 // Notifies the delegate that the user has chosen to return to the previous
30 // screen without making a selection. 30 // screen without making a selection.
31 - (void)paymentMethodSelectionViewControllerDidReturn: 31 - (void)paymentMethodSelectionViewControllerDidReturn:
32 (PaymentMethodSelectionViewController*)controller; 32 (PaymentMethodSelectionViewController*)controller;
33 33
34 // Notifies the delegate that the user has chosen to add a new credit card.
35 - (void)paymentMethodSelectionViewControllerDidSelectAddCard:
36 (PaymentMethodSelectionViewController*)controller;
37
34 @end 38 @end
35 39
36 // View controller responsible for presenting the available payment methods for 40 // View controller responsible for presenting the available payment methods for
37 // selection by the user and communicating their choice to the supplied 41 // selection by the user and communicating their choice to the supplied
38 // delegate. Also offers a button to add a new payment method. 42 // delegate. Also offers a button to add a new payment method.
39 @interface PaymentMethodSelectionViewController : CollectionViewController 43 @interface PaymentMethodSelectionViewController : CollectionViewController
40 44
41 // The delegate to be notified when the user selects a payment method or chooses 45 // The delegate to be notified when the user selects a payment method or chooses
42 // to return without selecting one. 46 // to return without selecting one.
43 @property(nonatomic, weak) 47 @property(nonatomic, weak)
44 id<PaymentMethodSelectionViewControllerDelegate> delegate; 48 id<PaymentMethodSelectionViewControllerDelegate> delegate;
45 49
46 // Initializes this object with an instance of PaymentRequest which owns an 50 // Initializes this object with an instance of PaymentRequest which owns an
47 // instance of web::PaymentRequest as provided by the page invoking the Payment 51 // instance of web::PaymentRequest as provided by the page invoking the Payment
48 // Request API. This object will not take ownership of |paymentRequest|. 52 // Request API. This object will not take ownership of |paymentRequest|.
49 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest 53 - (instancetype)initWithPaymentRequest:(PaymentRequest*)paymentRequest
50 NS_DESIGNATED_INITIALIZER; 54 NS_DESIGNATED_INITIALIZER;
51 55
52 - (instancetype)init NS_UNAVAILABLE; 56 - (instancetype)init NS_UNAVAILABLE;
53 57
54 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style 58 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
55 NS_UNAVAILABLE; 59 NS_UNAVAILABLE;
56 60
57 @end 61 @end
58 62
59 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_ H_ 63 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_METHOD_SELECTION_VIEW_CONTROLLER_ H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698