| OLD | NEW |
| (Empty) |
| 1 // Copyright 2013 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_AUTOFILL_DIALOG_COMMON_H_ | |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ | |
| 7 | |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | |
| 9 #include "components/autofill/core/browser/autofill_metrics.h" | |
| 10 #include "components/autofill/core/browser/dialog_section.h" | |
| 11 | |
| 12 namespace autofill { | |
| 13 class AutofillProfile; | |
| 14 } | |
| 15 | |
| 16 namespace wallet { | |
| 17 class Address; | |
| 18 } | |
| 19 | |
| 20 namespace autofill { | |
| 21 namespace common { | |
| 22 | |
| 23 // The types of addresses this class supports building. | |
| 24 enum AddressType { | |
| 25 ADDRESS_TYPE_BILLING, | |
| 26 ADDRESS_TYPE_SHIPPING, | |
| 27 }; | |
| 28 | |
| 29 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding | |
| 30 // to the |section|. | |
| 31 AutofillMetrics::DialogUiEvent DialogSectionToUiItemAddedEvent( | |
| 32 DialogSection section); | |
| 33 | |
| 34 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding | |
| 35 // to the |section|. | |
| 36 AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent( | |
| 37 DialogSection section); | |
| 38 | |
| 39 } // namespace common | |
| 40 } // namespace autofill | |
| 41 | |
| 42 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ | |
| OLD | NEW |