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

Side by Side Diff: chrome/browser/ui/autofill/data_model_wrapper.h

Issue 23579009: [rAc] Move email address into billing address section. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update Mac test expectations 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_
6 #define CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ 6 #define CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 protected: 121 protected:
122 virtual void FillInputs(DetailInputs* inputs) OVERRIDE; 122 virtual void FillInputs(DetailInputs* inputs) OVERRIDE;
123 virtual void FillFormField(AutofillField* field) const OVERRIDE; 123 virtual void FillFormField(AutofillField* field) const OVERRIDE;
124 124
125 private: 125 private:
126 const AutofillProfile* profile_; 126 const AutofillProfile* profile_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(AutofillProfileWrapper); 128 DISALLOW_COPY_AND_ASSIGN(AutofillProfileWrapper);
129 }; 129 };
130 130
131 // A DataModelWrapper specifically for shipping address profiles.
132 class AutofillShippingAddressWrapper : public AutofillProfileWrapper {
133 public:
134 AutofillShippingAddressWrapper(const AutofillProfile* profile,
135 size_t variant);
136 virtual ~AutofillShippingAddressWrapper();
137
138 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
139
140 private:
141 DISALLOW_COPY_AND_ASSIGN(AutofillShippingAddressWrapper);
142 };
143
131 // A DataModelWrapper specifically for Autofill CreditCard data. 144 // A DataModelWrapper specifically for Autofill CreditCard data.
132 class AutofillCreditCardWrapper : public AutofillDataModelWrapper { 145 class AutofillCreditCardWrapper : public AutofillDataModelWrapper {
133 public: 146 public:
134 explicit AutofillCreditCardWrapper(const CreditCard* card); 147 explicit AutofillCreditCardWrapper(const CreditCard* card);
135 virtual ~AutofillCreditCardWrapper(); 148 virtual ~AutofillCreditCardWrapper();
136 149
137 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE; 150 virtual base::string16 GetInfo(const AutofillType& type) const OVERRIDE;
138 virtual gfx::Image GetIcon() OVERRIDE; 151 virtual gfx::Image GetIcon() OVERRIDE;
139 virtual bool GetDisplayText(base::string16* vertically_compact, 152 virtual bool GetDisplayText(base::string16* vertically_compact,
140 base::string16* horizontally_compact) OVERRIDE; 153 base::string16* horizontally_compact) OVERRIDE;
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 232
220 private: 233 private:
221 const DetailOutputMap& outputs_; 234 const DetailOutputMap& outputs_;
222 235
223 DISALLOW_COPY_AND_ASSIGN(DetailOutputWrapper); 236 DISALLOW_COPY_AND_ASSIGN(DetailOutputWrapper);
224 }; 237 };
225 238
226 } // namespace autofill 239 } // namespace autofill
227 240
228 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ 241 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_types.h ('k') | chrome/browser/ui/autofill/data_model_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698