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

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

Issue 2701923003: [Payment Request] Error message screen (Closed)
Patch Set: Addressed comments 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;
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;
lpromero 2017/02/21 16:51:08 s/assign/copy
Moe 2017/02/21 22:56:15 Done! also started using base::mac::ReleasePropert
lpromero 2017/02/22 13:31:44 Good to know. Thanks for the heads up!
30
31 // The delegate to be notified when the user dismisses the error.
32 @property(nonatomic, weak) id<PaymentRequestErrorViewControllerDelegate>
lpromero 2017/02/21 16:51:08 s/weak/assign under non-ARC
Moe 2017/02/21 22:56:15 Done.
33 delegate;
34
35 - (instancetype)init NS_DESIGNATED_INITIALIZER;
36
37 - (instancetype)initWithStyle:(CollectionViewControllerStyle)style
38 NS_UNAVAILABLE;
39
40 @end
41
42 #endif // IOS_CHROME_BROWSER_PAYMENTS_PAYMENT_REQUEST_ERROR_VIEW_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698