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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 }, | 280 }, |
281 | 281 |
282 /** | 282 /** |
283 * @param {boolean} visible Whether the link should be visible. | 283 * @param {boolean} visible Whether the link should be visible. |
284 * @private | 284 * @private |
285 */ | 285 */ |
286 setManageAccountLinkVisibility_: function(visible) { | 286 setManageAccountLinkVisibility_: function(visible) { |
287 $('manage-passwords-span').hidden = !visible; | 287 $('manage-passwords-span').hidden = !visible; |
288 }, | 288 }, |
289 | 289 |
| 290 /** @private */ |
290 showImportExportButton_: function() { | 291 showImportExportButton_: function() { |
291 $('password-manager-import').hidden = false; | 292 $('password-manager-import').hidden = false; |
292 $('password-manager-export').hidden = false; | 293 $('password-manager-export').hidden = false; |
293 }, | 294 }, |
294 }; | 295 }; |
295 | 296 |
296 /** | 297 /** |
297 * Removes a saved password. | 298 * Removes a saved password. |
298 * @param {number} rowIndex indicating the row to remove. | 299 * @param {number} rowIndex indicating the row to remove. |
299 */ | 300 */ |
(...skipping 22 matching lines...) Expand all Loading... |
322 'showImportExportButton', | 323 'showImportExportButton', |
323 'showPassword', | 324 'showPassword', |
324 ]); | 325 ]); |
325 | 326 |
326 // Export | 327 // Export |
327 return { | 328 return { |
328 PasswordManager: PasswordManager | 329 PasswordManager: PasswordManager |
329 }; | 330 }; |
330 | 331 |
331 }); | 332 }); |
OLD | NEW |