| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Collects all input fields (direct & suggestions) into the given |array|. | 105 // Collects all input fields (direct & suggestions) into the given |array|. |
| 106 - (void)addInputsToArray:(NSMutableArray*)array; | 106 - (void)addInputsToArray:(NSMutableArray*)array; |
| 107 | 107 |
| 108 @end | 108 @end |
| 109 | 109 |
| 110 @interface AutofillSectionContainer (ForTesting) | 110 @interface AutofillSectionContainer (ForTesting) |
| 111 | 111 |
| 112 // Retrieve the field associated with the given type. | 112 // Retrieve the field associated with the given type. |
| 113 - (NSControl<AutofillInputField>*)getField:(autofill::ServerFieldType)type; | 113 - (NSControl<AutofillInputField>*)getField:(autofill::ServerFieldType)type; |
| 114 | 114 |
| 115 // Sets the value for the field matching |input|. Does nothing if the field is | 115 // Sets the value for the field matching |type|. Does nothing if the field is |
| 116 // not part of this section. | 116 // not part of this section. |
| 117 - (void)setFieldValue:(NSString*)text | 117 - (void)setFieldValue:(NSString*)text |
| 118 forInput:(const autofill::DetailInput&)input; | 118 forType:(autofill::ServerFieldType)type; |
| 119 | 119 |
| 120 // Sets the value for the suggestion text field. | 120 // Sets the value for the suggestion text field. |
| 121 - (void)setSuggestionFieldValue:(NSString*)text; | 121 - (void)setSuggestionFieldValue:(NSString*)text; |
| 122 | 122 |
| 123 // Activates a given input field, determined by |input|. Does nothing if the | 123 // Activates a given input field, determined by |type|. Does nothing if the |
| 124 // field is not part of this section. | 124 // field is not part of this section. |
| 125 - (void)activateFieldForInput:(const autofill::DetailInput&)input; | 125 - (void)activateFieldForType:(autofill::ServerFieldType)type; |
| 126 | 126 |
| 127 @end | 127 @end |
| 128 | 128 |
| 129 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 129 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
| OLD | NEW |