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

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

Issue 6673079: Reduce boxing and unboxing of AutofillFieldType (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 9 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) 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_
OLDNEW
« no previous file with comments | « chrome/browser/autofill/phone_number.cc ('k') | chrome/browser/autofill/select_control_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698