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.
5 #include "chrome/browser/ui/autofill/autofill_dialog_common.h"
10 AutofillMetrics::DialogUiEvent
DialogSectionToUiItemAddedEvent(
11 DialogSection section
) {
14 return AutofillMetrics::DIALOG_UI_BILLING_ITEM_ADDED
;
16 case SECTION_CC_BILLING
:
17 return AutofillMetrics::DIALOG_UI_CC_BILLING_ITEM_ADDED
;
19 case SECTION_SHIPPING
:
20 return AutofillMetrics::DIALOG_UI_SHIPPING_ITEM_ADDED
;
23 return AutofillMetrics::DIALOG_UI_CC_ITEM_ADDED
;
27 return AutofillMetrics::NUM_DIALOG_UI_EVENTS
;
30 AutofillMetrics::DialogUiEvent
DialogSectionToUiSelectionChangedEvent(
31 DialogSection section
) {
34 return AutofillMetrics::DIALOG_UI_BILLING_SELECTED_SUGGESTION_CHANGED
;
36 case SECTION_CC_BILLING
:
37 return AutofillMetrics::DIALOG_UI_CC_BILLING_SELECTED_SUGGESTION_CHANGED
;
39 case SECTION_SHIPPING
:
40 return AutofillMetrics::DIALOG_UI_SHIPPING_SELECTED_SUGGESTION_CHANGED
;
43 return AutofillMetrics::DIALOG_UI_CC_SELECTED_SUGGESTION_CHANGED
;
47 return AutofillMetrics::NUM_DIALOG_UI_EVENTS
;
51 } // namespace autofill