OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_UTILS_H_ | |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_UTILS_H_ | |
7 | |
8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | |
9 #include "components/autofill/core/browser/field_types.h" | |
10 | |
11 namespace autofill { | |
12 class AutofillProfile; | |
13 } | |
14 | |
15 namespace wallet { | |
16 class Address; | |
17 } | |
18 | |
19 namespace autofill { | |
20 namespace utils { | |
Evan Stade
2013/08/01 19:44:52
I would call this common, not utils. These are mos
aruslan
2013/08/07 23:17:03
Done: renamed to common.
| |
21 | |
22 // Returns true if |input| should be shown when |field_type| has been requested. | |
23 bool InputTypeMatchesFieldType(const DetailInput& input, | |
24 AutofillFieldType field_type); | |
25 | |
26 // Returns true if |input| in the given |section| should be used for a | |
27 // site-requested |field|. | |
28 bool DetailInputMatchesField(DialogSection section, | |
29 const DetailInput& input, | |
30 const AutofillField& field); | |
31 | |
32 bool IsCreditCardType(AutofillFieldType type); | |
33 | |
34 // Constructs |inputs| from template data for a given |dialog_section|. | |
35 void BuildInputsForSection(DialogSection dialog_section, DetailInputs* inputs); | |
36 | |
37 } // namespace utils | |
38 } // namespace autofill | |
39 | |
40 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_UTILS_H_ | |
OLD | NEW |