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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 | 66 |
67 @property(readonly, nonatomic) autofill::DialogSection section; | 67 @property(readonly, nonatomic) autofill::DialogSection section; |
68 @property(assign, nonatomic) id<AutofillValidationDisplay> validationDelegate; | 68 @property(assign, nonatomic) id<AutofillValidationDisplay> validationDelegate; |
69 | 69 |
70 // Designated initializer. Queries |delegate| for the list of desired input | 70 // Designated initializer. Queries |delegate| for the list of desired input |
71 // fields for |section|. | 71 // fields for |section|. |
72 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate | 72 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate |
73 forSection:(autofill::DialogSection)section; | 73 forSection:(autofill::DialogSection)section; |
74 | 74 |
75 // Populates |output| with mappings from field identification to input value. | 75 // Populates |output| with mappings from field identification to input value. |
76 - (void)getInputs:(autofill::DetailOutputMap*)output; | 76 - (void)getInputs:(autofill::FieldValueMap*)output; |
77 | 77 |
78 // Called when the delegate-maintained suggestions model has changed. | 78 // Called when the delegate-maintained suggestions model has changed. |
79 - (void)modelChanged; | 79 - (void)modelChanged; |
80 | 80 |
81 // Called when the contents of a section have changed. | 81 // Called when the contents of a section have changed. |
82 - (void)update; | 82 - (void)update; |
83 | 83 |
84 // Fills the section with Autofill data that was triggered by a user | 84 // Fills the section with Autofill data that was triggered by a user |
85 // interaction with the originating |input|. | 85 // interaction with the originating |input|. |
86 - (void)fillForInput:(const autofill::DetailInput&)input; | 86 - (void)fillForInput:(const autofill::DetailInput&)input; |
(...skipping 23 matching lines...) Expand all Loading... |
110 // Sets the value for the suggestion text field. | 110 // Sets the value for the suggestion text field. |
111 - (void)setSuggestionFieldValue:(NSString*)text; | 111 - (void)setSuggestionFieldValue:(NSString*)text; |
112 | 112 |
113 // Activates a given input field, determined by |input|. Does nothing if the | 113 // Activates a given input field, determined by |input|. Does nothing if the |
114 // field is not part of this section. | 114 // field is not part of this section. |
115 - (void)activateFieldForInput:(const autofill::DetailInput&)input; | 115 - (void)activateFieldForInput:(const autofill::DetailInput&)input; |
116 | 116 |
117 @end | 117 @end |
118 | 118 |
119 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ | 119 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SECTION_CONTAINER_H_ |
OLD | NEW |