Chromium Code Reviews| Index: chrome/browser/ui/autofill/autofill_dialog_common.h |
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_common.h b/chrome/browser/ui/autofill/autofill_dialog_common.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..647bd2eeb54a60728d857dd47bcb766b33218663 |
| --- /dev/null |
| +++ b/chrome/browser/ui/autofill/autofill_dialog_common.h |
| @@ -0,0 +1,41 @@ |
| +// Copyright 2013 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |
| +#define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |
| + |
| +#include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| +#include "components/autofill/core/browser/autofill_type.h" |
| +#include "components/autofill/core/browser/field_types.h" |
| + |
| +namespace autofill { |
| +class AutofillProfile; |
| +} |
| + |
| +namespace wallet { |
| +class Address; |
| +} |
| + |
| +namespace autofill { |
| +namespace common { |
| + |
| +// Returns true if |input| should be shown when |field_type| has been requested. |
| +bool InputTypeMatchesFieldType(const DetailInput& input, |
| + const AutofillType& field_type); |
| + |
| +// Returns true if |input| in the given |section| should be used for a |
| +// site-requested |field|. |
| +bool DetailInputMatchesField(DialogSection section, |
| + const DetailInput& input, |
| + const AutofillField& field); |
| + |
| +bool IsCreditCardType(ServerFieldType type); |
|
aruslan
2013/08/07 21:07:00
Description.
aruslan
2013/08/07 21:21:23
Done.
|
| + |
| +// Constructs |inputs| from template data for a given |dialog_section|. |
| +void BuildInputsForSection(DialogSection dialog_section, DetailInputs* inputs); |
| + |
| +} // namespace common |
| +} // namespace autofill |
| + |
| +#endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |