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

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

Issue 12815002: requestAutocomplete: Fill |form_structure_| from Online Wallet data (including (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 d4a5c8a5ff648667363b482d5c14aaa327f5192f..736e76c7cb160b888b21cfbfe96ad78a43deaee6 100644
--- a/chrome/browser/ui/autofill/data_model_wrapper.h
+++ b/chrome/browser/ui/autofill/data_model_wrapper.h
@@ -20,12 +20,13 @@ namespace gfx {
class Image;
}
+namespace autofill {
+
namespace wallet {
class Address;
+class FullWallet;
}
-namespace autofill {
-
// A glue class that allows uniform interactions with autocomplete data sources,
// regardless of their type. Implementations are intended to be lightweight and
// copyable, only holding weak references to their backing model.
@@ -144,6 +145,24 @@ class WalletInstrumentWrapper : public DataModelWrapper {
const wallet::WalletItems::MaskedInstrument* instrument_;
};
+/*
+// A DataModelWrapper for FullWallets.
+class FullWalletWrapper : public DataModelWrapper {
+ public:
+ explicit FullWalletWrapper(const wallet::FullWallet* full_wallet);
+ virtual ~FullWalletWrapper();
+
+ virtual string16 GetInfo(AutofillFieldType type) OVERRIDE;
Dan Beam 2013/03/13 01:43:57 this interface would need to differ
Evan Stade 2013/03/13 01:54:10 2 different wrappers
Dan Beam 2013/03/13 03:05:47 Done.
+ virtual gfx::Image GetIcon() OVERRIDE;
+ virtual void FillInputs(DetailInputs* inputs) OVERRIDE;
+
+ protected:
+ virtual void FillFormField(AutofillField* field) OVERRIDE;
+
+ private:
+ const wallet::FullWallet* full_wallet_;
+};
+*/
}
#endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_

Powered by Google App Engine
This is Rietveld 408576698