Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ | |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "base/strings/string16.h" | |
| 10 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | |
| 11 #include "components/autofill/core/browser/autofill_type.h" | |
| 12 | |
| 13 namespace autofill { | |
| 14 | |
| 15 // Fills or validates sections of the Autofill dialog based on user input. | |
| 16 class FieldMapWrapper { | |
|
Evan Stade
2014/01/30 17:25:39
I do not think this class is worthwhile. You can i
Dan Beam
2014/01/30 17:43:50
i did this originally but it was harder to test an
Evan Stade
2014/01/30 17:56:29
yes
Dan Beam
2014/01/30 20:34:49
Done.
| |
| 17 public: | |
| 18 FieldMapWrapper(const FieldValueMap& field_map, DialogSection section); | |
| 19 ~FieldMapWrapper(); | |
| 20 | |
| 21 // Returns the data for a specific field in a format for filling into a web | |
| 22 // form. | |
| 23 base::string16 GetInfo(const AutofillType& type) const; | |
| 24 | |
| 25 // Fills in |inputs| with the data that this map contains (|inputs| is an | |
| 26 // out-param). | |
| 27 void FillInputs(DetailInputs* inputs); | |
| 28 | |
| 29 private: | |
| 30 const FieldValueMap& field_map_; | |
| 31 const bool is_billing_section_; | |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(FieldMapWrapper); | |
| 34 }; | |
| 35 | |
| 36 } // namespace autofill | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_AUTOFILL_FIELD_MAP_WRAPPER_H_ | |
| OLD | NEW |