Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_section_container.h

Issue 22009003: [Autofill] Distinguish between native field types and potentially HTML field types. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698