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

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

Issue 2778343002: [Payment Request] Picker view + showcase integration + egtests (Closed)
Patch Set: Addressed comments 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 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_PAYMENT_REQUEST_PICKER_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_PAYMENT_REQUEST_PICKER_VIEW_CONTROLLER_H_
7
8 #import <UIKit/UIKit.h>
9
10 extern NSString* const kPaymentRequestPickerRowAccessibilityID;
11 extern NSString* const kPaymentRequestPickerSearchBarAccessibilityID;
12
13 @class PaymentRequestPickerViewController;
14 @class PickerRow;
15
16 // Delegate protocol for PaymentRequestPickerViewController.
17 @protocol PaymentRequestPickerViewControllerDelegate<NSObject>
18
19 // Notifies the delegate that the user has selected a row.
20 - (void)paymentRequestPickerViewController:
21 (PaymentRequestPickerViewController*)controller
22 didSelectRow:(PickerRow*)row;
23
24 @end
25
26 // TableViewController that displays a searchable list of rows featuring a
27 // selected row as well as an index list.
28 @interface PaymentRequestPickerViewController : UITableViewController
29
30 // The delegate to be notified when the user selects a row.
31 @property(nonatomic, weak) id<PaymentRequestPickerViewControllerDelegate>
32 delegate;
33
34 // Initializes the tableView with a list of rows and an optional selected row.
35 - (instancetype)initWithRows:(NSArray<PickerRow*>*)rows
36 selected:(PickerRow*)row NS_DESIGNATED_INITIALIZER;
37
38 - (instancetype)init NS_UNAVAILABLE;
39 - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE;
40 - (instancetype)initWithNibName:(NSString*)nibNameOrNil
41 bundle:(NSBundle*)nibBundleOrNil NS_UNAVAILABLE;
42 - (instancetype)initWithStyle:(UITableViewStyle)style NS_UNAVAILABLE;
43 @end
44
45 #endif // IOS_CHROME_BROWSER_PAYMENT_REQUEST_PICKER_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698