| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** @const */ var Page = cr.ui.pageManager.Page; | 6 /** @const */ var Page = cr.ui.pageManager.Page; |
| 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; | 7 /** @const */ var PageManager = cr.ui.pageManager.PageManager; |
| 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; | 8 /** @const */ var ArrayDataModel = cr.ui.ArrayDataModel; |
| 9 | 9 |
| 10 ///////////////////////////////////////////////////////////////////////////// | 10 ///////////////////////////////////////////////////////////////////////////// |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 break; | 207 break; |
| 208 } | 208 } |
| 209 } | 209 } |
| 210 } | 210 } |
| 211 | 211 |
| 212 // Reveal the password in the UI. | 212 // Reveal the password in the UI. |
| 213 var item = this.savedPasswordsList_.getListItemByIndex(index); | 213 var item = this.savedPasswordsList_.getListItemByIndex(index); |
| 214 item.showPassword(password); | 214 item.showPassword(password); |
| 215 }, | 215 }, |
| 216 | 216 |
| 217 /** |
| 218 * @param {boolean} visible Whether the link should be visible. |
| 219 * @private |
| 220 */ |
| 217 setManageAccountLinkVisibility_: function(visible) { | 221 setManageAccountLinkVisibility_: function(visible) { |
| 218 $('manage-passwords-span').hidden = !visible; | 222 $('manage-passwords-span').hidden = !visible; |
| 219 }, | 223 }, |
| 220 }; | 224 }; |
| 221 | 225 |
| 222 /** | 226 /** |
| 223 * Removes a saved password. | 227 * Removes a saved password. |
| 224 * @param {number} rowIndex indicating the row to remove. | 228 * @param {number} rowIndex indicating the row to remove. |
| 225 */ | 229 */ |
| 226 PasswordManager.removeSavedPassword = function(rowIndex) { | 230 PasswordManager.removeSavedPassword = function(rowIndex) { |
| (...skipping 19 matching lines...) Expand all Loading... |
| 246 'setPasswordExceptionsList', | 250 'setPasswordExceptionsList', |
| 247 'showPassword' | 251 'showPassword' |
| 248 ]); | 252 ]); |
| 249 | 253 |
| 250 // Export | 254 // Export |
| 251 return { | 255 return { |
| 252 PasswordManager: PasswordManager | 256 PasswordManager: PasswordManager |
| 253 }; | 257 }; |
| 254 | 258 |
| 255 }); | 259 }); |
| OLD | NEW |