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

Unified Diff: third_party/closure_compiler/externs/autofill_private.js

Issue 2028903002: Update Autofill Private API to provide a list of available countries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/closure_compiler/externs/autofill_private.js
diff --git a/third_party/closure_compiler/externs/autofill_private.js b/third_party/closure_compiler/externs/autofill_private.js
index 61498c832014d68543738b9a3dd6557202cefa6e..7ccf35c02370c0b1ffd5f3cda002986e3eeeb2e5 100644
--- a/third_party/closure_compiler/externs/autofill_private.js
+++ b/third_party/closure_compiler/externs/autofill_private.js
@@ -66,6 +66,15 @@ chrome.autofillPrivate.AddressEntry;
/**
* @typedef {{
+ * name: (string|undefined),
+ * countryCode: (string|undefined)
+ * }}
+ * @see https://developer.chrome.com/extensions/autofillPrivate#type-CountryEntry
+ */
+chrome.autofillPrivate.CountryEntry;
+
+/**
+ * @typedef {{
* field: !chrome.autofillPrivate.AddressField,
* fieldName: string,
* isLongField: boolean,
@@ -125,6 +134,14 @@ chrome.autofillPrivate.ValidatePhoneParams;
chrome.autofillPrivate.saveAddress = function(address) {};
/**
+ * Gets the list of all countries.
+ * @param {function(!Array<!chrome.autofillPrivate.CountryEntry>):void} callback
+ * Callback which will be called with the countries.
+ * @see https://developer.chrome.com/extensions/autofillPrivate#method-getCountryList
+ */
+chrome.autofillPrivate.getCountryList = function(callback) {};
+
+/**
* Gets the address components for a given country code.
* @param {string} countryCode A two-character string representing the address'
* country whose components should be returned. See autofill_country.cc
@@ -188,7 +205,7 @@ chrome.autofillPrivate.maskCreditCard = function(guid) {};
/**
* Fired when the address list has changed, meaning that an entry has been
- * added, removed, or changed. |entries| The updated list of entries.
+ * added, removed, or changed. |entries| The updated list of entries.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/autofillPrivate#event-onAddressListChanged
*/
@@ -196,7 +213,7 @@ chrome.autofillPrivate.onAddressListChanged;
/**
* Fired when the credit card list has changed, meaning that an entry has been
- * added, removed, or changed. |entries| The updated list of entries.
+ * added, removed, or changed. |entries| The updated list of entries.
* @type {!ChromeEvent}
* @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCardListChanged
*/
« no previous file with comments | « extensions/browser/extension_function_histogram_value.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698