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

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

Issue 15697010: Autofill:requestAutocomplete: Enable prompting for complete address when instrument being used does… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to head instead of using lkgr Created 7 years, 7 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/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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_dialog_controller_unittest.cc ('k') | chrome/browser/ui/autofill/data_model_wrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698