OLD | NEW |
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/string16.h" | 9 #include "base/string16.h" |
10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 144 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
145 virtual gfx::Image GetIcon() OVERRIDE; | 145 virtual gfx::Image GetIcon() OVERRIDE; |
146 virtual string16 GetDisplayText() OVERRIDE; | 146 virtual string16 GetDisplayText() OVERRIDE; |
147 | 147 |
148 private: | 148 private: |
149 const wallet::WalletItems::MaskedInstrument* instrument_; | 149 const wallet::WalletItems::MaskedInstrument* instrument_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(WalletInstrumentWrapper); | 151 DISALLOW_COPY_AND_ASSIGN(WalletInstrumentWrapper); |
152 }; | 152 }; |
153 | 153 |
154 // A DataModelWrapper for FullWallets billing data. | 154 // A DataModelWrapper for FullWallet billing data. |
155 class FullWalletBillingWrapper : public DataModelWrapper { | 155 class FullWalletBillingWrapper : public DataModelWrapper { |
156 public: | 156 public: |
157 explicit FullWalletBillingWrapper(wallet::FullWallet* full_wallet); | 157 explicit FullWalletBillingWrapper(wallet::FullWallet* full_wallet); |
158 virtual ~FullWalletBillingWrapper(); | 158 virtual ~FullWalletBillingWrapper(); |
159 | 159 |
160 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 160 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
161 virtual string16 GetDisplayText() OVERRIDE; | 161 virtual string16 GetDisplayText() OVERRIDE; |
162 | 162 |
163 private: | 163 private: |
164 wallet::FullWallet* full_wallet_; | 164 wallet::FullWallet* full_wallet_; |
165 | 165 |
166 DISALLOW_COPY_AND_ASSIGN(FullWalletBillingWrapper); | 166 DISALLOW_COPY_AND_ASSIGN(FullWalletBillingWrapper); |
167 }; | 167 }; |
168 | 168 |
169 // A DataModelWrapper for FullWallets shipping data. | 169 // A DataModelWrapper for FullWallet shipping data. |
170 class FullWalletShippingWrapper : public DataModelWrapper { | 170 class FullWalletShippingWrapper : public DataModelWrapper { |
171 public: | 171 public: |
172 explicit FullWalletShippingWrapper(wallet::FullWallet* full_wallet); | 172 explicit FullWalletShippingWrapper(wallet::FullWallet* full_wallet); |
173 virtual ~FullWalletShippingWrapper(); | 173 virtual ~FullWalletShippingWrapper(); |
174 | 174 |
175 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 175 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
176 | 176 |
177 private: | 177 private: |
178 wallet::FullWallet* full_wallet_; | 178 wallet::FullWallet* full_wallet_; |
179 | 179 |
180 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); | 180 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); |
181 }; | 181 }; |
182 | 182 |
183 } // namespace autofill | 183 } // namespace autofill |
184 | 184 |
185 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 185 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
OLD | NEW |