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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 break; | 228 break; |
229 } | 229 } |
230 } | 230 } |
231 } | 231 } |
232 | 232 |
233 // Reveal the password in the UI. | 233 // Reveal the password in the UI. |
234 var item = this.savedPasswordsList_.getListItemByIndex(index); | 234 var item = this.savedPasswordsList_.getListItemByIndex(index); |
235 item.showPassword(password); | 235 item.showPassword(password); |
236 }, | 236 }, |
237 | 237 |
238 /** | |
239 * @param {boolean} visible Whether the link should be visible. | |
240 * @private | |
241 */ | |
242 setManageAccountLinkVisibility_: function(visible) { | |
243 $('manage-passwords-span').hidden = !visible; | |
244 }, | |
245 | |
246 /** @private */ | 238 /** @private */ |
247 showImportExportButton_: function() { | 239 showImportExportButton_: function() { |
248 $('password-manager-import-export').hidden = false; | 240 $('password-manager-import-export').hidden = false; |
249 }, | 241 }, |
250 }; | 242 }; |
251 | 243 |
252 /** | 244 /** |
253 * Removes a saved password. | 245 * Removes a saved password. |
254 * @param {number} rowIndex indicating the row to remove. | 246 * @param {number} rowIndex indicating the row to remove. |
255 */ | 247 */ |
(...skipping 22 matching lines...) Expand all Loading... |
278 'showImportExportButton', | 270 'showImportExportButton', |
279 'showPassword', | 271 'showPassword', |
280 ]); | 272 ]); |
281 | 273 |
282 // Export | 274 // Export |
283 return { | 275 return { |
284 PasswordManager: PasswordManager | 276 PasswordManager: PasswordManager |
285 }; | 277 }; |
286 | 278 |
287 }); | 279 }); |
OLD | NEW |