| Index: chrome/browser/ui/autofill/autofill_dialog_view_delegate.h
|
| diff --git a/chrome/browser/ui/autofill/autofill_dialog_view_delegate.h b/chrome/browser/ui/autofill/autofill_dialog_view_delegate.h
|
| index 8d5ad98fe1df3463ccb46740c2522fa2217fb071..5e1143f4bf9d1f89bf18859d8e7c96dddbc249c0 100644
|
| --- a/chrome/browser/ui/autofill/autofill_dialog_view_delegate.h
|
| +++ b/chrome/browser/ui/autofill/autofill_dialog_view_delegate.h
|
| @@ -124,6 +124,18 @@ class AutofillDialogViewDelegate {
|
| virtual gfx::Image IconForField(ServerFieldType type,
|
| const string16& user_input) const = 0;
|
|
|
| + // Returns true if the icon of this field type |depdendent_type| depends on
|
| + // the value of another field. For example, returns true for CVC, because CVC
|
| + // hint images depend on credit card type.
|
| + virtual bool IsIconDependentField(ServerFieldType dependent_type) const = 0;
|
| +
|
| + // Returns true if the value of this field type |dependency_type| controls the
|
| + // icon of another field. Sets |dependent_type| to the type of the dependent
|
| + // field. For example, returns true for credit card number, because some
|
| + // credit card types have different CVC hint images.
|
| + virtual bool IsIconDependencyField(ServerFieldType dependency_type,
|
| + ServerFieldType* dependent_type) const = 0;
|
| +
|
| // Decides whether input of |value| is valid for a field of type |type|. If
|
| // valid, the returned string will be empty. Otherwise it will contain an
|
| // error message.
|
|
|