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

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

Issue 1947293002: Implement autofill Address and Credit Card lists. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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 side-by-side diff with in-line comments
Download patch
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 bb34658a9a89309e289a08353c43a074f6f53af3..dc2f693243f16414e35e0f41fe16168aa5e8ff6b 100644
--- a/third_party/closure_compiler/externs/autofill_private.js
+++ b/third_party/closure_compiler/externs/autofill_private.js
@@ -1,7 +1,14 @@
-// Copyright 2015 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// This file was generated by:
+// tools/json_schema_compiler/compiler.py.
+// NOTE: The format of types has changed. 'FooType' is now
+// 'chrome.autofillPrivate.FooType'.
+// Please run the closure compiler before committing changes.
+// See https://chromium.googlesource.com/chromium/src/+/master/docs/closure_compilation.md
+
/** @fileoverview Externs generated from namespace: autofillPrivate */
/**
@@ -34,7 +41,7 @@ chrome.autofillPrivate.AddressField = {
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-AutofillMetadata
*/
-var AutofillMetadata;
+chrome.autofillPrivate.AutofillMetadata;
/**
* @typedef {{
@@ -51,11 +58,11 @@ var AutofillMetadata;
* phoneNumbers: (!Array<string>|undefined),
* emailAddresses: (!Array<string>|undefined),
* languageCode: (string|undefined),
- * metadata: (AutofillMetadata|undefined)
+ * metadata: (!chrome.autofillPrivate.AutofillMetadata|undefined)
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressEntry
*/
-var AddressEntry;
+chrome.autofillPrivate.AddressEntry;
/**
* @typedef {{
@@ -66,24 +73,24 @@ var AddressEntry;
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressComponent
*/
-var AddressComponent;
+chrome.autofillPrivate.AddressComponent;
/**
* @typedef {{
- * row: !Array<AddressComponent>
+ * row: !Array<!chrome.autofillPrivate.AddressComponent>
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressComponentRow
*/
-var AddressComponentRow;
+chrome.autofillPrivate.AddressComponentRow;
/**
* @typedef {{
- * components: !Array<AddressComponentRow>,
+ * components: !Array<!chrome.autofillPrivate.AddressComponentRow>,
* languageCode: string
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-AddressComponents
*/
-var AddressComponents;
+chrome.autofillPrivate.AddressComponents;
/**
* @typedef {{
@@ -92,11 +99,11 @@ var AddressComponents;
* cardNumber: (string|undefined),
* expirationMonth: (string|undefined),
* expirationYear: (string|undefined),
- * metadata: (AutofillMetadata|undefined)
+ * metadata: (!chrome.autofillPrivate.AutofillMetadata|undefined)
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-CreditCardEntry
*/
-var CreditCardEntry;
+chrome.autofillPrivate.CreditCardEntry;
/**
* @typedef {{
@@ -106,12 +113,13 @@ var CreditCardEntry;
* }}
* @see https://developer.chrome.com/extensions/autofillPrivate#type-ValidatePhoneParams
*/
-var ValidatePhoneParams;
+chrome.autofillPrivate.ValidatePhoneParams;
/**
* Saves the given address. If |address| has an empty string as its ID, it will
* be assigned a new one and added as a new entry.
- * @param {AddressEntry} address The address entry to save.
+ * @param {!chrome.autofillPrivate.AddressEntry} address The address entry to
+ * save.
* @see https://developer.chrome.com/extensions/autofillPrivate#method-saveAddress
*/
chrome.autofillPrivate.saveAddress = function(address) {};
@@ -121,8 +129,8 @@ chrome.autofillPrivate.saveAddress = function(address) {};
* @param {string} countryCode A two-character string representing the address'
* country whose components should be returned. See autofill_country.cc
* for a list of valid codes.
- * @param {function(AddressComponents):void} callback Callback which will be
- * called with components.
+ * @param {function(!chrome.autofillPrivate.AddressComponents):void} callback
+ * Callback which will be called with components.
* @see https://developer.chrome.com/extensions/autofillPrivate#method-getAddressComponents
*/
chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {};
@@ -130,7 +138,7 @@ chrome.autofillPrivate.getAddressComponents = function(countryCode, callback) {}
/**
* Saves the given credit card. If |card| has an empty string as its ID, it will
* be assigned a new one and added as a new entry.
- * @param {CreditCardEntry} card The card entry to save.
+ * @param {!chrome.autofillPrivate.CreditCardEntry} card The card entry to save.
* @see https://developer.chrome.com/extensions/autofillPrivate#method-saveCreditCard
*/
chrome.autofillPrivate.saveCreditCard = function(card) {};
@@ -146,7 +154,8 @@ chrome.autofillPrivate.removeEntry = function(guid) {};
* Validates a newly-added phone number and invokes the callback with a list of
* validated numbers. Note that if the newly-added number was invalid, it will
* not be returned in the list of valid numbers.
- * @param {ValidatePhoneParams} params The parameters to this function.
+ * @param {!chrome.autofillPrivate.ValidatePhoneParams} params The parameters to
+ * this function.
* @param {function(!Array<string>):void} callback Callback which will be called
* with validated phone numbers.
* @see https://developer.chrome.com/extensions/autofillPrivate#method-validatePhoneNumbers
@@ -176,5 +185,3 @@ chrome.autofillPrivate.onAddressListChanged;
* @see https://developer.chrome.com/extensions/autofillPrivate#event-onCreditCardListChanged
*/
chrome.autofillPrivate.onCreditCardListChanged;
-
-

Powered by Google App Engine
This is Rietveld 408576698