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

Side by Side Diff: ios/showcase/payments/sc_payments_editor_coordinator.mm

Issue 2908033002: [Payment Request] Refactors edit view controller (Closed)
Patch Set: Addressed comments 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
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_editor_field.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #import "ios/showcase/payments/sc_payments_editor_coordinator.h" 5 #import "ios/showcase/payments/sc_payments_editor_coordinator.h"
6 6
7 #import "base/mac/foundation_util.h" 7 #import "base/mac/foundation_util.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h" 9 #import "ios/chrome/browser/ui/autofill/autofill_ui_type.h"
10 #import "ios/chrome/browser/ui/autofill/autofill_ui_type_util.h" 10 #import "ios/chrome/browser/ui/autofill/autofill_ui_type_util.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 #pragma mark - PaymentRequestEditViewControllerDataSource 95 #pragma mark - PaymentRequestEditViewControllerDataSource
96 96
97 - (CollectionViewItem*)headerItem { 97 - (CollectionViewItem*)headerItem {
98 return nil; 98 return nil;
99 } 99 }
100 100
101 - (BOOL)shouldHideBackgroundForHeaderItem { 101 - (BOOL)shouldHideBackgroundForHeaderItem {
102 return NO; 102 return NO;
103 } 103 }
104 104
105 - (UIImage*)iconIdentifyingEditorField:(EditorField*)field {
106 return nil;
107 }
108
105 #pragma mark - PaymentRequestEditViewControllerValidator 109 #pragma mark - PaymentRequestEditViewControllerValidator
106 110
107 - (NSString*)paymentRequestEditViewController: 111 - (NSString*)paymentRequestEditViewController:
108 (PaymentRequestEditViewController*)controller 112 (PaymentRequestEditViewController*)controller
109 validateField:(EditorField*)field { 113 validateField:(EditorField*)field {
110 if (field.value.length) 114 if (field.value.length)
111 return nil; 115 return nil;
112 else if (field.isRequired) 116 else if (field.isRequired)
113 return @"Field is required"; 117 return @"Field is required";
114 else 118 else
115 return nil; 119 return nil;
116 } 120 }
117 121
118 @end 122 @end
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/payments/payment_request_editor_field.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698