| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardWrapper); | 119 DISALLOW_COPY_AND_ASSIGN(AutofillCreditCardWrapper); |
| 120 }; | 120 }; |
| 121 | 121 |
| 122 // A DataModelWrapper for Wallet addresses. | 122 // A DataModelWrapper for Wallet addresses. |
| 123 class WalletAddressWrapper : public DataModelWrapper { | 123 class WalletAddressWrapper : public DataModelWrapper { |
| 124 public: | 124 public: |
| 125 explicit WalletAddressWrapper(const wallet::Address* address); | 125 explicit WalletAddressWrapper(const wallet::Address* address); |
| 126 virtual ~WalletAddressWrapper(); | 126 virtual ~WalletAddressWrapper(); |
| 127 | 127 |
| 128 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; | 128 virtual string16 GetInfo(AutofillFieldType type) OVERRIDE; |
| 129 virtual string16 GetDisplayText() OVERRIDE; |
| 129 | 130 |
| 130 private: | 131 private: |
| 131 const wallet::Address* address_; | 132 const wallet::Address* address_; |
| 132 | 133 |
| 133 DISALLOW_COPY_AND_ASSIGN(WalletAddressWrapper); | 134 DISALLOW_COPY_AND_ASSIGN(WalletAddressWrapper); |
| 134 }; | 135 }; |
| 135 | 136 |
| 136 // A DataModelWrapper for Wallet instruments. | 137 // A DataModelWrapper for Wallet instruments. |
| 137 class WalletInstrumentWrapper : public DataModelWrapper { | 138 class WalletInstrumentWrapper : public DataModelWrapper { |
| 138 public: | 139 public: |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 | 176 |
| 176 private: | 177 private: |
| 177 wallet::FullWallet* full_wallet_; | 178 wallet::FullWallet* full_wallet_; |
| 178 | 179 |
| 179 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); | 180 DISALLOW_COPY_AND_ASSIGN(FullWalletShippingWrapper); |
| 180 }; | 181 }; |
| 181 | 182 |
| 182 } // namespace autofill | 183 } // namespace autofill |
| 183 | 184 |
| 184 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ | 185 #endif // CHROME_BROWSER_UI_AUTOFILL_DATA_MODEL_WRAPPER_H_ |
| OLD | NEW |