| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 - (void)fillForInput:(const autofill::DetailInput&)input; | 79 - (void)fillForInput:(const autofill::DetailInput&)input; |
| 80 | 80 |
| 81 // Validate this section. Validation rules depend on |validationType|. | 81 // Validate this section. Validation rules depend on |validationType|. |
| 82 - (BOOL)validateFor:(autofill::ValidationType)validationType; | 82 - (BOOL)validateFor:(autofill::ValidationType)validationType; |
| 83 | 83 |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 @interface AutofillSectionContainer (ForTesting) | 86 @interface AutofillSectionContainer (ForTesting) |
| 87 | 87 |
| 88 // Retrieve the field associated with the given type. | 88 // Retrieve the field associated with the given type. |
| 89 - (NSControl<AutofillInputField>*)getField:(autofill::AutofillFieldType)type; | 89 - (NSControl<AutofillInputField>*)getField:(autofill::ServerFieldType)type; |
| 90 | 90 |
| 91 // Sets the value for the field matching |input|. Does nothing if the field is | 91 // Sets the value for the field matching |input|. Does nothing if the field is |
| 92 // not part of this section. | 92 // not part of this section. |
| 93 - (void)setFieldValue:(NSString*)text | 93 - (void)setFieldValue:(NSString*)text |
| 94 forInput:(const autofill::DetailInput&)input; | 94 forInput:(const autofill::DetailInput&)input; |
| 95 | 95 |
| 96 // Sets the value for the suggestion text field. | 96 // Sets the value for the suggestion text field. |
| 97 - (void)setSuggestionFieldValue:(NSString*)text; | 97 - (void)setSuggestionFieldValue:(NSString*)text; |
| 98 | 98 |
| 99 // Activates a given input field, determined by |input|. Does nothing if the | 99 // Activates a given input field, determined by |input|. Does nothing if the |
| 100 // field is not part of this section. | 100 // field is not part of this section. |
| 101 - (void)activateFieldForInput:(const autofill::DetailInput&)input; | 101 - (void)activateFieldForInput:(const autofill::DetailInput&)input; |
| 102 | 102 |
| 103 @end | 103 @end |
| 104 | 104 |
| 105 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 105 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
| OLD | NEW |