OLD | NEW |
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 Loading... |
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 |
OLD | NEW |