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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 // This file was generated by: 5 // This file was generated by:
6 // tools/json_schema_compiler/compiler.py. 6 // tools/json_schema_compiler/compiler.py.
7 // NOTE: The format of types has changed. 'FooType' is now 7 // NOTE: The format of types has changed. 'FooType' is now
8 // 'chrome.autofillPrivate.FooType'. 8 // 'chrome.autofillPrivate.FooType'.
9 // Please run the closure compiler before committing changes. 9 // Please run the closure compiler before committing changes.
10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md 10 // See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_comp ilation.md
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 * emailAddresses: (!Array<string>|undefined), 59 * emailAddresses: (!Array<string>|undefined),
60 * languageCode: (string|undefined), 60 * languageCode: (string|undefined),
61 * metadata: (!chrome.autofillPrivate.AutofillMetadata|undefined) 61 * metadata: (!chrome.autofillPrivate.AutofillMetadata|undefined)
62 * }} 62 * }}
63 * @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressEntr y 63 * @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressEntr y
64 */ 64 */
65 chrome.autofillPrivate.AddressEntry; 65 chrome.autofillPrivate.AddressEntry;
66 66
67 /** 67 /**
68 * @typedef {{ 68 * @typedef {{
69 * name: (string|undefined),
70 * countryCode: (string|undefined)
71 * }}
72 * @see https://developer.chrome.com/extensions/autofillPrivate#type-CountryEntr y
73 */
74 chrome.autofillPrivate.CountryEntry;
75
76 /**
77 * @typedef {{
69 * field: !chrome.autofillPrivate.AddressField, 78 * field: !chrome.autofillPrivate.AddressField,
70 * fieldName: string, 79 * fieldName: string,
71 * isLongField: boolean, 80 * isLongField: boolean,
72 * placeholder: (string|undefined) 81 * placeholder: (string|undefined)
73 * }} 82 * }}
74 * @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressComp onent 83 * @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressComp onent
75 */ 84 */
76 chrome.autofillPrivate.AddressComponent; 85 chrome.autofillPrivate.AddressComponent;
77 86
78 /** 87 /**
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 /** 127 /**
119 * Saves the given address. If |address| has an empty string as its ID, it will 128 * Saves the given address. If |address| has an empty string as its ID, it will
120 * be assigned a new one and added as a new entry. 129 * be assigned a new one and added as a new entry.
121 * @param {!chrome.autofillPrivate.AddressEntry} address The address entry to 130 * @param {!chrome.autofillPrivate.AddressEntry} address The address entry to
122 * save. 131 * save.
123 * @see https://developer.chrome.com/extensions/autofillPrivate#method-saveAddre ss 132 * @see https://developer.chrome.com/extensions/autofillPrivate#method-saveAddre ss
124 */ 133 */
125 chrome.autofillPrivate.saveAddress = function(address) {}; 134 chrome.autofillPrivate.saveAddress = function(address) {};
126 135
127 /** 136 /**
137 * Gets the list of all countries.
138 * @param {function(!Array<!chrome.autofillPrivate.CountryEntry>):void} callback
139 * Callback which will be called with the countries.
140 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getCountr yList
141 */
142 chrome.autofillPrivate.getCountryList = function(callback) {};
143
144 /**
128 * Gets the address components for a given country code. 145 * Gets the address components for a given country code.
129 * @param {string} countryCode A two-character string representing the address' 146 * @param {string} countryCode A two-character string representing the address'
130 * country whose components should be returned. See autofill_country.cc 147 * country whose components should be returned. See autofill_country.cc
131 * for a list of valid codes. 148 * for a list of valid codes.
132 * @param {function(!chrome.autofillPrivate.AddressComponents):void} callback 149 * @param {function(!chrome.autofillPrivate.AddressComponents):void} callback
133 * Callback which will be called with components. 150 * Callback which will be called with components.
134 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddres sComponents 151 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddres sComponents
135 */ 152 */
136 chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {} ; 153 chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {} ;
137 154
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 /** 198 /**
182 * Clears the data associated with a wallet card which was saved locally so that 199 * Clears the data associated with a wallet card which was saved locally so that
183 * the saved copy is masked (e.g., "Card ending in 1234"). 200 * the saved copy is masked (e.g., "Card ending in 1234").
184 * @param {string} guid GUID of the credit card to mask. 201 * @param {string} guid GUID of the credit card to mask.
185 * @see https://developer.chrome.com/extensions/autofillPrivate#method-maskCredi tCard 202 * @see https://developer.chrome.com/extensions/autofillPrivate#method-maskCredi tCard
186 */ 203 */
187 chrome.autofillPrivate.maskCreditCard = function(guid) {}; 204 chrome.autofillPrivate.maskCreditCard = function(guid) {};
188 205
189 /** 206 /**
190 * Fired when the address list has changed, meaning that an entry has been 207 * Fired when the address list has changed, meaning that an entry has been
191 * added, removed, or changed. |entries| The updated list of entries. 208 * added, removed, or changed. |entries| The updated list of entries.
192 * @type {!ChromeEvent} 209 * @type {!ChromeEvent}
193 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onAddressL istChanged 210 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onAddressL istChanged
194 */ 211 */
195 chrome.autofillPrivate.onAddressListChanged; 212 chrome.autofillPrivate.onAddressListChanged;
196 213
197 /** 214 /**
198 * Fired when the credit card list has changed, meaning that an entry has been 215 * Fired when the credit card list has changed, meaning that an entry has been
199 * added, removed, or changed. |entries| The updated list of entries. 216 * added, removed, or changed. |entries| The updated list of entries.
200 * @type {!ChromeEvent} 217 * @type {!ChromeEvent}
201 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCa rdListChanged 218 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCa rdListChanged
202 */ 219 */
203 chrome.autofillPrivate.onCreditCardListChanged; 220 chrome.autofillPrivate.onCreditCardListChanged;
OLDNEW
« 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