| OLD | NEW |
| 1 // Copyright 2015 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: |
| 6 // tools/json_schema_compiler/compiler.py. |
| 7 // NOTE: The format of types has changed. 'FooType' is now |
| 8 // 'chrome.passwordsPrivate.FooType'. |
| 9 // Please run the closure compiler before committing changes. |
| 10 // See https://code.google.com/p/chromium/wiki/ClosureCompilation. |
| 11 |
| 5 /** @fileoverview Externs generated from namespace: passwordsPrivate */ | 12 /** @fileoverview Externs generated from namespace: passwordsPrivate */ |
| 6 | 13 |
| 7 /** | 14 /** |
| 8 * @const | 15 * @const |
| 9 */ | 16 */ |
| 10 chrome.passwordsPrivate = {}; | 17 chrome.passwordsPrivate = {}; |
| 11 | 18 |
| 12 /** | 19 /** |
| 13 * @typedef {{ | 20 * @typedef {{ |
| 14 * originUrl: string, | 21 * originUrl: string, |
| 15 * username: string | 22 * username: string |
| 16 * }} | 23 * }} |
| 17 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-LoginPair | 24 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-LoginPair |
| 18 */ | 25 */ |
| 19 var LoginPair; | 26 chrome.passwordsPrivate.LoginPair; |
| 20 | 27 |
| 21 /** | 28 /** |
| 22 * @typedef {{ | 29 * @typedef {{ |
| 23 * loginPair: LoginPair, | 30 * loginPair: !chrome.passwordsPrivate.LoginPair, |
| 24 * numCharactersInPassword: number, | 31 * numCharactersInPassword: number, |
| 25 * federationText: (string|undefined) | 32 * federationText: (string|undefined) |
| 26 * }} | 33 * }} |
| 27 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUi
Entry | 34 * @see |
| 35 * https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUiEntry |
| 28 */ | 36 */ |
| 29 var PasswordUiEntry; | 37 chrome.passwordsPrivate.PasswordUiEntry; |
| 30 | 38 |
| 31 /** | 39 /** |
| 32 * @typedef {{ | 40 * @typedef {{ |
| 33 * loginPair: LoginPair, | 41 * loginPair: !chrome.passwordsPrivate.LoginPair, |
| 34 * plaintextPassword: string | 42 * plaintextPassword: string |
| 35 * }} | 43 * }} |
| 36 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextP
asswordEventParameters | 44 * @see |
| 45 * https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextPasswo
rdEventParameters |
| 37 */ | 46 */ |
| 38 var PlaintextPasswordEventParameters; | 47 chrome.passwordsPrivate.PlaintextPasswordEventParameters; |
| 39 | 48 |
| 40 /** | 49 /** |
| 41 * Removes the saved password corresponding to |loginPair|. If no saved password | 50 * Removes the saved password corresponding to |loginPair|. If no saved password |
| 42 * for this pair exists, this function is a no-op. | 51 * for this pair exists, this function is a no-op. |
| 43 * @param {LoginPair} loginPair The LoginPair corresponding to the entry to | 52 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair |
| 44 * remove. | 53 * corresponding to the entry to remove. |
| 45 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSa
vedPassword | 54 * @see |
| 55 * https://developer.chrome.com/extensions/passwordsPrivate#method-removeSavedPa
ssword |
| 46 */ | 56 */ |
| 47 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {}; | 57 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {}; |
| 48 | 58 |
| 49 /** | 59 /** |
| 50 * Removes the saved password exception corresponding to |exceptionUrl|. If no | 60 * Removes the saved password exception corresponding to |exceptionUrl|. If no |
| 51 * exception with this URL exists, this function is a no-op. | 61 * exception with this URL exists, this function is a no-op. |
| 52 * @param {string} exceptionUrl The URL corresponding to the exception to | 62 * @param {string} exceptionUrl The URL corresponding to the exception to |
| 53 * remove. | 63 * remove. |
| 54 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa
sswordException | 64 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa
sswordException |
| 55 */ | 65 */ |
| 56 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {}; | 66 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {}; |
| 57 | 67 |
| 58 /** | 68 /** |
| 59 * Returns the plaintext password corresponding to |loginPair|. Note that on | 69 * Returns the plaintext password corresponding to |loginPair|. Note that on |
| 60 * some operating systems, this call may result in an OS-level reauthentication. | 70 * some operating systems, this call may result in an OS-level reauthentication. |
| 61 * Once the password has been fetched, it will be returned via the | 71 * Once the password has been fetched, it will be returned via the |
| 62 * onPlaintextPasswordRetrieved event. | 72 * onPlaintextPasswordRetrieved event. |
| 63 * @param {LoginPair} loginPair The LoginPair corresponding to the entry whose | 73 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair |
| 64 * password is to be returned. | 74 * corresponding to the entry whose password is to be returned. |
| 65 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP
laintextPassword | 75 * @see |
| 76 * https://developer.chrome.com/extensions/passwordsPrivate#method-requestPlaint
extPassword |
| 66 */ | 77 */ |
| 67 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {}; | 78 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {}; |
| 68 | 79 |
| 69 /** | 80 /** |
| 70 * Fired when the saved passwords list has changed, meaning that an entry has | 81 * Fired when the saved passwords list has changed, meaning that an entry has |
| 71 * been added or removed. Note that this event fires as soon as a listener is | 82 * been added or removed. Note that this event fires as soon as a listener is |
| 72 * added. | 83 * added. |
| 73 * @type {!ChromeEvent} | 84 * @type {!ChromeEvent} |
| 74 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa
sswordsListChanged | 85 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa
sswordsListChanged |
| 75 */ | 86 */ |
| 76 chrome.passwordsPrivate.onSavedPasswordsListChanged; | 87 chrome.passwordsPrivate.onSavedPasswordsListChanged; |
| 77 | 88 |
| 78 /** | 89 /** |
| 79 * Fired when the password exceptions list has changed, meaning that an entry | 90 * Fired when the password exceptions list has changed, meaning that an entry |
| 80 * has been added or removed. Note that this event fires as soon as a listener | 91 * has been added or removed. Note that this event fires as soon as a listener |
| 81 * is added. | 92 * is added. |
| 82 * @type {!ChromeEvent} | 93 * @type {!ChromeEvent} |
| 83 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor
dExceptionsListChanged | 94 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor
dExceptionsListChanged |
| 84 */ | 95 */ |
| 85 chrome.passwordsPrivate.onPasswordExceptionsListChanged; | 96 chrome.passwordsPrivate.onPasswordExceptionsListChanged; |
| 86 | 97 |
| 87 /** | 98 /** |
| 88 * Fired when a plaintext password has been fetched in response to a call to | 99 * Fired when a plaintext password has been fetched in response to a call to |
| 89 * chrome.passwordsPrivate.requestPlaintextPassword(). | 100 * chrome.passwordsPrivate.requestPlaintextPassword(). |
| 90 * @type {!ChromeEvent} | 101 * @type {!ChromeEvent} |
| 91 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte
xtPasswordRetrieved | 102 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte
xtPasswordRetrieved |
| 92 */ | 103 */ |
| 93 chrome.passwordsPrivate.onPlaintextPasswordRetrieved; | 104 chrome.passwordsPrivate.onPlaintextPasswordRetrieved; |
| OLD | NEW |