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 /** | 5 /** |
6 * @fileoverview Display manager for WebUI OOBE and login. | 6 * @fileoverview Display manager for WebUI OOBE and login. |
7 */ | 7 */ |
8 | 8 |
9 // TODO(xiyuan): Find a better to share those constants. | 9 // TODO(xiyuan): Find a better to share those constants. |
10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; | 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 * @param {boolean} disable true to disable | 680 * @param {boolean} disable true to disable |
681 */ | 681 */ |
682 DisplayManager.updateAddUserButtonStatus = function(disable) { | 682 DisplayManager.updateAddUserButtonStatus = function(disable) { |
683 $('add-user-button').disabled = disable; | 683 $('add-user-button').disabled = disable; |
684 $('add-user-button').classList[ | 684 $('add-user-button').classList[ |
685 disable ? 'add' : 'remove']('button-restricted'); | 685 disable ? 'add' : 'remove']('button-restricted'); |
686 $('add-user-button').title = disable ? | 686 $('add-user-button').title = disable ? |
687 localStrings.getString('disabledAddUserTooltip') : ''; | 687 localStrings.getString('disabledAddUserTooltip') : ''; |
688 } | 688 } |
689 | 689 |
| 690 /** |
| 691 * Clears password field in user-pod. |
| 692 */ |
| 693 DisplayManager.clearUserPodPassword = function() { |
| 694 $('pod-row').clearFocusedPod(); |
| 695 }; |
| 696 |
690 // Export | 697 // Export |
691 return { | 698 return { |
692 DisplayManager: DisplayManager | 699 DisplayManager: DisplayManager |
693 }; | 700 }; |
694 }); | 701 }); |
OLD | NEW |