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

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

Powered by Google App Engine
This is Rietveld 408576698