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

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

Issue 1591053002: Add a password handler to get the list of passwords in md-settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit: inline function Created 4 years, 10 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
« no previous file with comments | « chrome/test/data/webui/settings/settings_passwords_section_browsertest.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 https://developer.chrome.com/extensions/passwordsPrivate#type-PasswordUi Entry
28 */ 35 */
29 var PasswordUiEntry; 36 chrome.passwordsPrivate.PasswordUiEntry;
30 37
31 /** 38 /**
32 * @typedef {{ 39 * @typedef {{
33 * loginPair: LoginPair, 40 * loginPair: !chrome.passwordsPrivate.LoginPair,
34 * plaintextPassword: string 41 * plaintextPassword: string
35 * }} 42 * }}
36 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextP asswordEventParameters 43 * @see https://developer.chrome.com/extensions/passwordsPrivate#type-PlaintextP asswordEventParameters
37 */ 44 */
38 var PlaintextPasswordEventParameters; 45 chrome.passwordsPrivate.PlaintextPasswordEventParameters;
39 46
40 /** 47 /**
41 * Removes the saved password corresponding to |loginPair|. If no saved password 48 * Removes the saved password corresponding to |loginPair|. If no saved password
42 * for this pair exists, this function is a no-op. 49 * for this pair exists, this function is a no-op.
43 * @param {LoginPair} loginPair The LoginPair corresponding to the entry to 50 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair
44 * remove. 51 * corresponding to the entry to remove.
45 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSa vedPassword 52 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removeSa vedPassword
46 */ 53 */
47 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {}; 54 chrome.passwordsPrivate.removeSavedPassword = function(loginPair) {};
48 55
49 /** 56 /**
50 * Removes the saved password exception corresponding to |exceptionUrl|. If no 57 * Removes the saved password exception corresponding to |exceptionUrl|. If no
51 * exception with this URL exists, this function is a no-op. 58 * exception with this URL exists, this function is a no-op.
52 * @param {string} exceptionUrl The URL corresponding to the exception to 59 * @param {string} exceptionUrl The URL corresponding to the exception to
53 * remove. 60 * remove.
54 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException 61 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-removePa sswordException
55 */ 62 */
56 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {}; 63 chrome.passwordsPrivate.removePasswordException = function(exceptionUrl) {};
57 64
58 /** 65 /**
59 * Returns the plaintext password corresponding to |loginPair|. Note that on 66 * Returns the plaintext password corresponding to |loginPair|. Note that on
60 * some operating systems, this call may result in an OS-level reauthentication. 67 * 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 68 * Once the password has been fetched, it will be returned via the
62 * onPlaintextPasswordRetrieved event. 69 * onPlaintextPasswordRetrieved event.
63 * @param {LoginPair} loginPair The LoginPair corresponding to the entry whose 70 * @param {!chrome.passwordsPrivate.LoginPair} loginPair The LoginPair
64 * password is to be returned. 71 * corresponding to the entry whose password is to be returned.
65 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP laintextPassword 72 * @see https://developer.chrome.com/extensions/passwordsPrivate#method-requestP laintextPassword
66 */ 73 */
67 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {}; 74 chrome.passwordsPrivate.requestPlaintextPassword = function(loginPair) {};
68 75
69 /** 76 /**
70 * Fired when the saved passwords list has changed, meaning that an entry has 77 * 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 78 * been added or removed. Note that this event fires as soon as a listener is
72 * added. 79 * added.
73 * @type {!ChromeEvent} 80 * @type {!ChromeEvent}
74 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged 81 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onSavedPa sswordsListChanged
75 */ 82 */
76 chrome.passwordsPrivate.onSavedPasswordsListChanged; 83 chrome.passwordsPrivate.onSavedPasswordsListChanged;
77 84
78 /** 85 /**
79 * Fired when the password exceptions list has changed, meaning that an entry 86 * 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 87 * has been added or removed. Note that this event fires as soon as a listener
81 * is added. 88 * is added.
82 * @type {!ChromeEvent} 89 * @type {!ChromeEvent}
83 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged 90 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPasswor dExceptionsListChanged
84 */ 91 */
85 chrome.passwordsPrivate.onPasswordExceptionsListChanged; 92 chrome.passwordsPrivate.onPasswordExceptionsListChanged;
86 93
87 /** 94 /**
88 * Fired when a plaintext password has been fetched in response to a call to 95 * Fired when a plaintext password has been fetched in response to a call to
89 * chrome.passwordsPrivate.requestPlaintextPassword(). 96 * chrome.passwordsPrivate.requestPlaintextPassword().
90 * @type {!ChromeEvent} 97 * @type {!ChromeEvent}
91 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte xtPasswordRetrieved 98 * @see https://developer.chrome.com/extensions/passwordsPrivate#event-onPlainte xtPasswordRetrieved
92 */ 99 */
93 chrome.passwordsPrivate.onPlaintextPasswordRetrieved; 100 chrome.passwordsPrivate.onPlaintextPasswordRetrieved;
OLDNEW
« no previous file with comments | « chrome/test/data/webui/settings/settings_passwords_section_browsertest.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698