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

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

Issue 25620002: [rac] Use i18n address inputs with --enable-autofill-address-i18n flag (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Avoid initializer list Created 7 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 15 matching lines...) Expand all
26 26
27 // Returns true if |input| in the given |section| should be used for a 27 // Returns true if |input| in the given |section| should be used for a
28 // site-requested |field|. 28 // site-requested |field|.
29 bool DetailInputMatchesField(DialogSection section, 29 bool DetailInputMatchesField(DialogSection section,
30 const DetailInput& input, 30 const DetailInput& input,
31 const AutofillField& field); 31 const AutofillField& field);
32 32
33 // Returns true if the |type| belongs to the CREDIT_CARD field type group. 33 // Returns true if the |type| belongs to the CREDIT_CARD field type group.
34 bool IsCreditCardType(ServerFieldType type); 34 bool IsCreditCardType(ServerFieldType type);
35 35
36 // Constructs |inputs| from template data for a given |dialog_section|. 36 // Constructs |inputs| from template data for a given |dialog_section|. The
37 // optional parameter |country_region| specifies the country/region code that
38 // the user selected in the drop down.
37 void BuildInputsForSection(DialogSection dialog_section, DetailInputs* inputs); 39 void BuildInputsForSection(DialogSection dialog_section, DetailInputs* inputs);
40 void BuildInputsForSection(DialogSection dialog_section,
41 DetailInputs* inputs,
42 const std::string& country_region);
38 43
39 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding 44 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding
40 // to the |section|. 45 // to the |section|.
41 AutofillMetrics::DialogUiEvent DialogSectionToUiItemAddedEvent( 46 AutofillMetrics::DialogUiEvent DialogSectionToUiItemAddedEvent(
42 DialogSection section); 47 DialogSection section);
43 48
44 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding 49 // Returns the AutofillMetrics::DIALOG_UI_*_ITEM_ADDED metric corresponding
45 // to the |section|. 50 // to the |section|.
46 AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent( 51 AutofillMetrics::DialogUiEvent DialogSectionToUiSelectionChangedEvent(
47 DialogSection section); 52 DialogSection section);
48 53
49 } // namespace common 54 } // namespace common
50 } // namespace autofill 55 } // namespace autofill
51 56
52 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_ 57 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/autofill/autofill_dialog_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698