Index: chrome/browser/ui/autofill/data_model_wrapper.h |
diff --git a/chrome/browser/ui/autofill/data_model_wrapper.h b/chrome/browser/ui/autofill/data_model_wrapper.h |
index 3967d28af4ed65432a932d1822552974979df047..37cf117a1f1841803b6fd3c36af8b8dec329195a 100644 |
--- a/chrome/browser/ui/autofill/data_model_wrapper.h |
+++ b/chrome/browser/ui/autofill/data_model_wrapper.h |
@@ -39,9 +39,14 @@ class DataModelWrapper { |
// out-param). |
void FillInputs(DetailInputs* inputs); |
- // Returns the data for a specific autocomplete type. |
+ // Returns the data for a specific autocomplete type in a format for filling |
+ // into a web form. |
virtual base::string16 GetInfo(const AutofillType& type) const = 0; |
+ // Returns the data for a specified type in a format optimized for displaying |
+ // to the user. |
+ virtual base::string16 GetInfoForDisplay(const AutofillType& type) const; |
+ |
// Returns the icon, if any, that represents this model. |
virtual gfx::Image GetIcon(); |
@@ -103,6 +108,8 @@ class AutofillProfileWrapper : public DataModelWrapper { |
virtual ~AutofillProfileWrapper(); |
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; |
+ virtual base::string16 GetInfoForDisplay(const AutofillType& type) const |
+ OVERRIDE; |
protected: |
virtual void FillFormField(AutofillField* field) const OVERRIDE; |
@@ -160,6 +167,8 @@ class WalletAddressWrapper : public DataModelWrapper { |
virtual ~WalletAddressWrapper(); |
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; |
+ virtual base::string16 GetInfoForDisplay(const AutofillType& type) const |
+ OVERRIDE; |
virtual bool GetDisplayText(base::string16* vertically_compact, |
base::string16* horizontally_compact) OVERRIDE; |
@@ -177,6 +186,8 @@ class WalletInstrumentWrapper : public DataModelWrapper { |
virtual ~WalletInstrumentWrapper(); |
virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; |
+ virtual base::string16 GetInfoForDisplay(const AutofillType& type) const |
+ OVERRIDE; |
virtual gfx::Image GetIcon() OVERRIDE; |
virtual bool GetDisplayText(base::string16* vertically_compact, |
base::string16* horizontally_compact) OVERRIDE; |