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

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

Issue 2701923003: [Payment Request] Error message screen (Closed)
Patch Set: Created 3 years, 10 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_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_
6 #define IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_
7
8 #import <UIKit/UIKit.h>
9
10 #import "ios/chrome/browser/ui/collection_view/collection_view_controller.h"
11
12 extern NSString* const kPaymentRequestErrorCollectionViewId;
lpromero 2017/02/20 17:14:06 s/Id/ID
Moe 2017/02/21 05:07:06 Done.
13
14 @class PaymentRequestErrorViewController;
15
16 // Delegate protocol for PaymentRequestErrorViewController.
17 @protocol PaymentRequestErrorViewControllerDelegate<NSObject>
18
19 // Notifies the delegate that the user has dismissed the error.
20 - (void)paymentRequestErrorViewControllerDidDismiss:
21 (PaymentRequestErrorViewController*)controller;
22
23 @end
24
25 // View controller responsible for presenting the error for the payment request.
26 @interface PaymentRequestErrorViewController : CollectionViewController
27
28 // The error message to display, if any.
29 @property(nonatomic, assign) NSString* errorMessage;
30
31 // The callback to be called once the error is dismissed, if any.
32 @property(nonatomic, copy) void (^callback)();
33
34 // The delegate to be notified when the user dismisses the error.
35 @property(nonatomic, weak) id<PaymentRequestErrorViewControllerDelegate>
36 delegate;
37
38 - (instancetype)init NS_DESIGNATED_INITIALIZER;
39
40 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
41 NS_UNAVAILABLE;
42
43 @end
44
45 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698