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

Side by Side Diff: third_party/closure_compiler/externs/autofill_private.js

Issue 1957043002: Separate the listeners and getters for the Autofill Private API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@autofill-lists.gitbr
Patch Set: update histogram.xml and test Created 4 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
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 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 * @param {string} countryCode A two-character string representing the address' 129 * @param {string} countryCode A two-character string representing the address'
130 * country whose components should be returned. See autofill_country.cc 130 * country whose components should be returned. See autofill_country.cc
131 * for a list of valid codes. 131 * for a list of valid codes.
132 * @param {function(!chrome.autofillPrivate.AddressComponents):void} callback 132 * @param {function(!chrome.autofillPrivate.AddressComponents):void} callback
133 * Callback which will be called with components. 133 * Callback which will be called with components.
134 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddres sComponents 134 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddres sComponents
135 */ 135 */
136 chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {} ; 136 chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {} ;
137 137
138 /** 138 /**
139 * Gets the list of addresses.
140 * @param {function(!Array<!chrome.autofillPrivate.AddressEntry>):void} callback
141 * Callback which will be called with the list of addresses.
142 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddres sList
143 */
144 chrome.autofillPrivate.getAddressList = function(callback) {};
145
146 /**
139 * Saves the given credit card. If |card| has an empty string as its ID, it will 147 * Saves the given credit card. If |card| has an empty string as its ID, it will
140 * be assigned a new one and added as a new entry. 148 * be assigned a new one and added as a new entry.
141 * @param {!chrome.autofillPrivate.CreditCardEntry} card The card entry to save. 149 * @param {!chrome.autofillPrivate.CreditCardEntry} card The card entry to save.
142 * @see https://developer.chrome.com/extensions/autofillPrivate#method-saveCredi tCard 150 * @see https://developer.chrome.com/extensions/autofillPrivate#method-saveCredi tCard
143 */ 151 */
144 chrome.autofillPrivate.saveCreditCard = function(card) {}; 152 chrome.autofillPrivate.saveCreditCard = function(card) {};
145 153
146 /** 154 /**
147 * Removes the entry (address or credit card) with the given ID. 155 * Removes the entry (address or credit card) with the given ID.
148 * @param {string} guid ID of the entry to remove. 156 * @param {string} guid ID of the entry to remove.
149 * @see https://developer.chrome.com/extensions/autofillPrivate#method-removeEnt ry 157 * @see https://developer.chrome.com/extensions/autofillPrivate#method-removeEnt ry
150 */ 158 */
151 chrome.autofillPrivate.removeEntry = function(guid) {}; 159 chrome.autofillPrivate.removeEntry = function(guid) {};
152 160
153 /** 161 /**
154 * Validates a newly-added phone number and invokes the callback with a list of 162 * Validates a newly-added phone number and invokes the callback with a list of
155 * validated numbers. Note that if the newly-added number was invalid, it will 163 * validated numbers. Note that if the newly-added number was invalid, it will
156 * not be returned in the list of valid numbers. 164 * not be returned in the list of valid numbers.
157 * @param {!chrome.autofillPrivate.ValidatePhoneParams} params The parameters to 165 * @param {!chrome.autofillPrivate.ValidatePhoneParams} params The parameters to
158 * this function. 166 * this function.
159 * @param {function(!Array<string>):void} callback Callback which will be called 167 * @param {function(!Array<string>):void} callback Callback which will be called
160 * with validated phone numbers. 168 * with validated phone numbers.
161 * @see https://developer.chrome.com/extensions/autofillPrivate#method-validateP honeNumbers 169 * @see https://developer.chrome.com/extensions/autofillPrivate#method-validateP honeNumbers
162 */ 170 */
163 chrome.autofillPrivate.validatePhoneNumbers = function(params, callback) {}; 171 chrome.autofillPrivate.validatePhoneNumbers = function(params, callback) {};
164 172
165 /** 173 /**
174 * Gets the list of credit cards.
175 * @param {function(!Array<!chrome.autofillPrivate.CreditCardEntry>):void}
176 * callback Callback which will be called with the list of credit cards.
177 * @see https://developer.chrome.com/extensions/autofillPrivate#method-getCredit CardList
178 */
179 chrome.autofillPrivate.getCreditCardList = function(callback) {};
180
181 /**
166 * Clears the data associated with a wallet card which was saved locally so that 182 * Clears the data associated with a wallet card which was saved locally so that
167 * the saved copy is masked (e.g., "Card ending in 1234"). 183 * the saved copy is masked (e.g., "Card ending in 1234").
168 * @param {string} guid GUID of the credit card to mask. 184 * @param {string} guid GUID of the credit card to mask.
169 * @see https://developer.chrome.com/extensions/autofillPrivate#method-maskCredi tCard 185 * @see https://developer.chrome.com/extensions/autofillPrivate#method-maskCredi tCard
170 */ 186 */
171 chrome.autofillPrivate.maskCreditCard = function(guid) {}; 187 chrome.autofillPrivate.maskCreditCard = function(guid) {};
172 188
173 /** 189 /**
174 * Fired when the address list has changed, meaning that an entry has been 190 * Fired when the address list has changed, meaning that an entry has been
175 * added, removed, or changed. |entries| The updated list of entries. 191 * added, removed, or changed. |entries| The updated list of entries.
176 * @type {!ChromeEvent} 192 * @type {!ChromeEvent}
177 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onAddressL istChanged 193 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onAddressL istChanged
178 */ 194 */
179 chrome.autofillPrivate.onAddressListChanged; 195 chrome.autofillPrivate.onAddressListChanged;
180 196
181 /** 197 /**
182 * Fired when the credit card list has changed, meaning that an entry has been 198 * Fired when the credit card list has changed, meaning that an entry has been
183 * added, removed, or changed. |entries| The updated list of entries. 199 * added, removed, or changed. |entries| The updated list of entries.
184 * @type {!ChromeEvent} 200 * @type {!ChromeEvent}
185 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCa rdListChanged 201 * @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCa rdListChanged
186 */ 202 */
187 chrome.autofillPrivate.onCreditCardListChanged; 203 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