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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 // Populates |output| with mappings from field identification to input value. | 85 // Populates |output| with mappings from field identification to input value. |
86 - (void)getInputs:(autofill::FieldValueMap*)output; | 86 - (void)getInputs:(autofill::FieldValueMap*)output; |
87 | 87 |
88 // Called when the delegate-maintained suggestions model has changed. | 88 // Called when the delegate-maintained suggestions model has changed. |
89 - (void)modelChanged; | 89 - (void)modelChanged; |
90 | 90 |
91 // Called when the contents of a section have changed. | 91 // Called when the contents of a section have changed. |
92 - (void)update; | 92 - (void)update; |
93 | 93 |
94 // Fills the section with Autofill data that was triggered by a user | 94 // Fills the section with Autofill data that was triggered by a user |
95 // interaction with the originating |input|. | 95 // interaction with the originating |type|. |
96 - (void)fillForInput:(const autofill::DetailInput&)input; | 96 - (void)fillForType:(const autofill::ServerFieldType)type; |
97 | 97 |
98 // Validate this section. Validation rules depend on |validationType|. | 98 // Validate this section. Validation rules depend on |validationType|. |
99 - (BOOL)validateFor:(autofill::ValidationType)validationType; | 99 - (BOOL)validateFor:(autofill::ValidationType)validationType; |
100 | 100 |
101 // Returns the value of the |suggestContainer_|'s input field, or nil if no | 101 // Returns the value of the |suggestContainer_|'s input field, or nil if no |
102 // suggestion is currently showing. | 102 // suggestion is currently showing. |
103 - (NSString*)suggestionText; | 103 - (NSString*)suggestionText; |
104 | 104 |
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; |
(...skipping 13 matching lines...) Expand all Loading... |
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 |input|. 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)activateFieldForInput:(const autofill::DetailInput&)input; |
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 |