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

Unified Diff: third_party/libaddressinput/chromium/chrome_address_validator.h

Issue 2680143002: Use dropdown list for admin areas in pr form. (Closed)
Patch Set: Supress error-- suggested by clank team Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: third_party/libaddressinput/chromium/chrome_address_validator.h
diff --git a/third_party/libaddressinput/chromium/chrome_address_validator.h b/third_party/libaddressinput/chromium/chrome_address_validator.h
index 43a4a4061ccbe3d5bf1caa2d99808341d71201dd..f956bd034de4a7d9aedf97dad0ab1a991bca46fd 100644
--- a/third_party/libaddressinput/chromium/chrome_address_validator.h
+++ b/third_party/libaddressinput/chromium/chrome_address_validator.h
@@ -46,8 +46,8 @@ class LoadRulesListener {
// then these are also loaded.
//
// The |success| parameter is true when the rules were loaded successfully.
- virtual void OnAddressValidationRulesLoaded(const std::string& region_code,
- bool success) = 0;
+ virtual void OnAddressRulesLoaded(const std::string& region_code,
+ bool success) = 0;
};
// Interface to the libaddressinput AddressValidator for Chromium Autofill. The
@@ -94,6 +94,13 @@ class AddressValidator {
// Invokes |load_rules_listener| when the loading has finished.
virtual void LoadRules(const std::string& region_code);
+ // Returns the list of sub-regions (recorded as sub-keys) of the region
+ // (recorded as rule) indicated by |region_code|. So, if the |region_code| is
+ // a country code, sub-region means the country's admin area.
+ // This function should be called when the rules are loaded.
+ virtual std::vector<std::string> GetRegionSubKeys(
+ const std::string& region_code);
+
// Validates the |address| and populates |problems| with the validation
// problems, filtered according to the |filter| parameter.
//
« no previous file with comments | « components/payments/core/address_normalizer.cc ('k') | third_party/libaddressinput/chromium/chrome_address_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698