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

Side by Side Diff: ios/chrome/browser/ui/payments/payment_request_view_controller_data_source.h

Issue 2924663003: [Payment Request] Moves PaymentRequestViewController to :payments_ui (Closed)
Patch Set: 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_DATA_SOUR CE_H_
6 #define IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_DATA_SOUR CE_H_
7
8 #import <Foundation/Foundation.h>
9
10 @class CollectionViewFooterItem;
11 @class CollectionViewItem;
12
13 // Data source protocol for PaymentRequestViewController.
14 @protocol PaymentRequestViewControllerDataSource
15
16 // Returns whether the payment can be made and therefore the pay button should
17 // be enabled.
18 - (BOOL)canPay;
19
20 // Returns whether shipment can be done and therefore the shipping options
21 // should be presented.
22 - (BOOL)canShip;
23
24 // Returns whether the total price is itemized.
25 - (BOOL)hasPaymentItems;
26
27 // Returns whether shipping is requested and therefore the Shipping section
28 // should be presented.
29 - (BOOL)requestShipping;
30
31 // Returns whether contact information is requested and therefore the Contact
32 // Info section should be presented.
33 - (BOOL)requestContactInfo;
34
35 // Returns the Payment Summary item displayed in the Summary section.
36 - (CollectionViewItem*)paymentSummaryItem;
37
38 // Returns the header item for the Shipping section.
39 - (CollectionViewItem*)shippingSectionHeaderItem;
40
41 // Returns the Shipping Address item displayed in the Shipping section.
42 - (CollectionViewItem*)shippingAddressItem;
43
44 // Returns the Shipping Option item displayed in the Shipping section.
45 - (CollectionViewItem*)shippingOptionItem;
46
47 // Returns the header item for the Payment Method section.
48 - (CollectionViewItem*)paymentMethodSectionHeaderItem;
49
50 // Returns the item displayed in the Payment Method section.
51 - (CollectionViewItem*)paymentMethodItem;
52
53 // Returns the header item for the Contact Info section.
54 - (CollectionViewItem*)contactInfoSectionHeaderItem;
55
56 // Returns the item displayed in the Contact Info section.
57 - (CollectionViewItem*)contactInfoItem;
58
59 // Returns the item displayed at the botton of the view.
lpromero 2017/06/06 09:43:55 *bottom
Moe 2017/06/07 02:12:51 Done.
60 - (CollectionViewFooterItem*)footerItem;
61
62 @end
63
64 #endif // IOS_CHROME_BROWSER_UI_PAYMENTS_PAYMENT_REQUEST_VIEW_CONTROLLER_DATA_S OURCE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698