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

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

Issue 261013010: autocomplete: add ability to get full address (hidden behind a flag). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: self review Created 6 years, 7 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 (C) 2013 Google Inc. 1 // Copyright (C) 2013 Google Inc.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with 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 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 void FormatForDisplay(std::vector<std::string>* lines) const; 49 void FormatForDisplay(std::vector<std::string>* lines) const;
50 50
51 // Returns the value of the |field|. The parameter should not be 51 // Returns the value of the |field|. The parameter should not be
52 // STREET_ADDRESS, which comprises multiple fields. 52 // STREET_ADDRESS, which comprises multiple fields.
53 const std::string& GetFieldValue(AddressField field) const; 53 const std::string& GetFieldValue(AddressField field) const;
54 54
55 // Sets the |field| to |value|. The parameter should not be STREET_ADDRESS, 55 // Sets the |field| to |value|. The parameter should not be STREET_ADDRESS,
56 // which comprises multiple fields. 56 // which comprises multiple fields.
57 void SetFieldValue(AddressField field, const std::string& value); 57 void SetFieldValue(AddressField field, const std::string& value);
58 58
59 // Returns true if all required fields are present (non-empty).
60 bool HasAllRequiredFields() const;
61
59 // The BCP 47 language code used to guide how the address is formatted for 62 // The BCP 47 language code used to guide how the address is formatted for
60 // display. The same address may have different representations in different 63 // display. The same address may have different representations in different
61 // languages. 64 // languages.
62 // For example, the French name of "New Mexico" is "Nouveau-Mexique". 65 // For example, the French name of "New Mexico" is "Nouveau-Mexique".
63 std::string language_code; 66 std::string language_code;
64 67
65 // The uppercase CLDR country/region code. 68 // The uppercase CLDR country/region code.
66 // For example, "US" for United States. 69 // For example, "US" for United States.
67 // (Note: Use "GB", not "UK", for Great Britain.) 70 // (Note: Use "GB", not "UK", for Great Britain.)
68 std::string country_code; 71 std::string country_code;
(...skipping 27 matching lines...) Expand all
96 std::string organization; 99 std::string organization;
97 100
98 // The name of the recipient or contact person. Not present in xAL. 101 // The name of the recipient or contact person. Not present in xAL.
99 std::string recipient; 102 std::string recipient;
100 }; 103 };
101 104
102 } // namespace addressinput 105 } // namespace addressinput
103 } // namespace i18n 106 } // namespace i18n
104 107
105 #endif // I18N_ADDRESSINPUT_ADDRESS_DATA_H_ 108 #endif // I18N_ADDRESSINPUT_ADDRESS_DATA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698