| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/autofill/autofill_type.h" | 9 #include "chrome/browser/autofill/field_types.h" |
| 10 | 10 |
| 11 class FormGroup; | 11 class FormGroup; |
| 12 | 12 |
| 13 namespace webkit_glue { | 13 namespace webkit_glue { |
| 14 struct FormField; | 14 struct FormField; |
| 15 } // namespace webkit_glue | 15 } // namespace webkit_glue |
| 16 | 16 |
| 17 namespace autofill { | 17 namespace autofill { |
| 18 | 18 |
| 19 // Fills a select-one control with the appropriate value from |form_group|. | 19 // Fills a select-one control with the appropriate value from |form_group|. |
| 20 // Finds the matching value for field types that we know contain different | 20 // Finds the matching value for field types that we know contain different |
| 21 // variations of a value, e.g., (tx, TX, Texas) or credit card expiration | 21 // variations of a value, e.g., (tx, TX, Texas) or credit card expiration |
| 22 // months, e.g., (04, April). | 22 // months, e.g., (04, April). |
| 23 void FillSelectControl(const FormGroup& form_group, | 23 void FillSelectControl(const FormGroup& form_group, |
| 24 AutofillType type, | 24 AutofillFieldType type, |
| 25 webkit_glue::FormField* field); | 25 webkit_glue::FormField* field); |
| 26 | 26 |
| 27 } // namespace autofill | 27 } // namespace autofill |
| 28 | 28 |
| 29 #endif // CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_ | 29 #endif // CHROME_BROWSER_AUTOFILL_SELECT_CONTROL_HANDLER_H_ |
| OLD | NEW |