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

Side by Side Diff: components/autofill/core/browser/form_structure.h

Issue 397233002: Use language-specific street address line separators (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
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 COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 typedef base::Callback<bool(ServerFieldType type, 135 typedef base::Callback<bool(ServerFieldType type,
136 const AutofillField& field)> 136 const AutofillField& field)>
137 InputFieldComparator; 137 InputFieldComparator;
138 138
139 // Fills in |fields_| that match |types| (via |matches|) with info from 139 // Fills in |fields_| that match |types| (via |matches|) with info from
140 // |get_info|. 140 // |get_info|.
141 bool FillFields( 141 bool FillFields(
142 const std::vector<ServerFieldType>& types, 142 const std::vector<ServerFieldType>& types,
143 const InputFieldComparator& matches, 143 const InputFieldComparator& matches,
144 const base::Callback<base::string16(const AutofillType&)>& get_info, 144 const base::Callback<base::string16(const AutofillType&)>& get_info,
145 const std::string& info_language_code,
Evan Stade 2014/07/17 17:25:31 this needs docs and a better name
please use gerrit instead 2014/07/17 23:42:10 Done.
145 const std::string& app_locale); 146 const std::string& app_locale);
146 147
147 // Returns the values that can be filled into the form structure for the 148 // Returns the values that can be filled into the form structure for the
148 // given type. For example, there's no way to fill in a value of "The Moon" 149 // given type. For example, there's no way to fill in a value of "The Moon"
149 // into ADDRESS_HOME_STATE if the form only has a 150 // into ADDRESS_HOME_STATE if the form only has a
150 // <select autocomplete="region"> with no "The Moon" option. Returns an 151 // <select autocomplete="region"> with no "The Moon" option. Returns an
151 // empty set if the form doesn't reference the given type or if all inputs 152 // empty set if the form doesn't reference the given type or if all inputs
152 // are accepted (e.g., <input type="text" autocomplete="region">). 153 // are accepted (e.g., <input type="text" autocomplete="region">).
153 // All returned values are standardized to upper case. 154 // All returned values are standardized to upper case.
154 std::set<base::string16> PossibleValues(ServerFieldType type); 155 std::set<base::string16> PossibleValues(ServerFieldType type);
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Whether the form includes any field types explicitly specified by the site 250 // Whether the form includes any field types explicitly specified by the site
250 // author, via the |autocompletetype| attribute. 251 // author, via the |autocompletetype| attribute.
251 bool has_author_specified_types_; 252 bool has_author_specified_types_;
252 253
253 DISALLOW_COPY_AND_ASSIGN(FormStructure); 254 DISALLOW_COPY_AND_ASSIGN(FormStructure);
254 }; 255 };
255 256
256 } // namespace autofill 257 } // namespace autofill
257 258
258 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_ 259 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_FORM_STRUCTURE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698