| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_AUTOFILL_DIALOG_COMMON_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |
| 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |
| 7 | 7 |
| 8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_types.h" |
| 9 #include "components/autofill/core/browser/autofill_type.h" | 9 #include "components/autofill/core/browser/autofill_type.h" |
| 10 #include "components/autofill/core/browser/field_types.h" | 10 #include "components/autofill/core/browser/field_types.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 | 53 |
| 54 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding | 54 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding |
| 55 // to the |section|. | 55 // to the |section|. |
| 56 AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent( | 56 AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent( |
| 57 DialogSection section); | 57 DialogSection section); |
| 58 | 58 |
| 59 // We hardcode some values. In particular, we don't yet allow the user to change | 59 // We hardcode some values. In particular, we don't yet allow the user to change |
| 60 // the country: http://crbug.com/247518 | 60 // the country: http://crbug.com/247518 |
| 61 base::string16 GetHardcodedValueForType(ServerFieldType type); | 61 base::string16 GetHardcodedValueForType(ServerFieldType type); |
| 62 | 62 |
| 63 // Gets just the |type| attributes from each DetailInput. |
| 64 std::vector<ServerFieldType> TypesFromInputs(const DetailInputs& inputs); |
| 65 |
| 63 } // namespace common | 66 } // namespace common |
| 64 } // namespace autofill | 67 } // namespace autofill |
| 65 | 68 |
| 66 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ | 69 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ |
| OLD | NEW |