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

Side by Side Diff: third_party/libaddressinput/chromium/cpp/include/libaddressinput/address_field.h

Issue 298863012: Use upstream libaddressinput in Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merged in https://codereview.chromium.org/300303002/ Created 6 years, 6 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
(Empty)
1 // Copyright (C) 2013 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 #ifndef I18N_ADDRESSINPUT_ADDRESS_FIELD_H_
16 #define I18N_ADDRESSINPUT_ADDRESS_FIELD_H_
17
18 #include <iosfwd>
19
20 namespace i18n {
21 namespace addressinput {
22
23 // Address field types, ordered by size, from largest to smallest.
24 enum AddressField {
25 COUNTRY, // Country code.
26 ADMIN_AREA, // Administrative area such as a state, province,
27 // island, etc.
28 LOCALITY, // City or locality.
29 DEPENDENT_LOCALITY, // Dependent locality (may be an inner-city district or
30 // a suburb).
31 SORTING_CODE, // Sorting code.
32 POSTAL_CODE, // Zip or postal code.
33 STREET_ADDRESS, // Street address lines.
34 ORGANIZATION, // Organization.
35 RECIPIENT // Name.
36 };
37
38 // Produces human-readable output in logging, for example in unit tests. Prints
39 // what you would expect for valid fields, e.g. "COUNTRY" for COUNTRY. For
40 // invalid values, prints "[INVALID]".
41 std::ostream& operator<<(std::ostream& o, AddressField field);
42
43 } // namespace addressinput
44 } // namespace i18n
45
46 #endif // I18N_ADDRESSINPUT_ADDRESS_FIELD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698