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

Unified Diff: chrome/browser/ui/autofill/data_model_wrapper.h

Issue 25092011: rAc: update android test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: git try Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698