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

Side by Side Diff: chrome/browser/autofill/select_control_handler.h

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_AUTOFILL_SELECT_CONTROL_HANDLER_H_ 5 #ifndef CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_
6 #define CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_ 6 #define CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_
7 7
8 #include "chrome/browser/autofill/field_types.h" 8 #include "chrome/browser/autofill/field_types.h"
9 #include "base/string16.h" 9 #include "base/string16.h"
10 10
11 class FormGroup; 11 class FormGroup;
12 12
13 namespace webkit { 13 struct FormFieldData;
14 namespace forms {
15 struct FormField;
16 }
17 }
18 14
19 namespace autofill { 15 namespace autofill {
20 16
21 // Fills a select-one control with the appropriate value from |form_group|. 17 // Fills a select-one control with the appropriate value from |form_group|.
22 // Finds the matching value for field types that we know contain different 18 // Finds the matching value for field types that we know contain different
23 // variations of a value, e.g., (tx, TX, Texas) or credit card expiration 19 // variations of a value, e.g., (tx, TX, Texas) or credit card expiration
24 // months, e.g., (04, April). 20 // months, e.g., (04, April).
25 void FillSelectControl(const FormGroup& form_group, 21 void FillSelectControl(const FormGroup& form_group,
26 AutofillFieldType type, 22 AutofillFieldType type,
27 webkit::forms::FormField* field); 23 FormFieldData* field);
28 24
29 // Returns true if |value| is a valid US state name or abbreviation. It is case 25 // Returns true if |value| is a valid US state name or abbreviation. It is case
30 // insensitive. Valid for US states only. 26 // insensitive. Valid for US states only.
31 bool IsValidState(const string16& value); 27 bool IsValidState(const string16& value);
32 28
33 } // namespace autofill 29 } // namespace autofill
34 30
35 #endif // CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_ 31 #endif // CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/phone_field_unittest.cc ('k') | chrome/browser/autofill/select_control_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698