OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 956 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
967 DisplayManager.showTpmError = function() { | 967 DisplayManager.showTpmError = function() { |
968 login.TPMErrorMessageScreen.show(); | 968 login.TPMErrorMessageScreen.show(); |
969 }; | 969 }; |
970 | 970 |
971 /** | 971 /** |
972 * Clears error bubble. | 972 * Clears error bubble. |
973 */ | 973 */ |
974 DisplayManager.clearErrors = function() { | 974 DisplayManager.clearErrors = function() { |
975 $('bubble').hide(); | 975 $('bubble').hide(); |
976 this.errorMessageWasShownForTesting_ = false; | 976 this.errorMessageWasShownForTesting_ = false; |
| 977 |
| 978 var bubbles = document.querySelectorAll('.bubble-shown'); |
| 979 for (var i = 0; i < bubbles.length; ++i) |
| 980 bubbles[i].classList.remove('bubble-shown'); |
977 }; | 981 }; |
978 | 982 |
979 /** | 983 /** |
980 * Sets text content for a div with |labelId|. | 984 * Sets text content for a div with |labelId|. |
981 * @param {string} labelId Id of the label div. | 985 * @param {string} labelId Id of the label div. |
982 * @param {string} labelText Text for the label. | 986 * @param {string} labelText Text for the label. |
983 */ | 987 */ |
984 DisplayManager.setLabelText = function(labelId, labelText) { | 988 DisplayManager.setLabelText = function(labelId, labelText) { |
985 $(labelId).textContent = labelText; | 989 $(labelId).textContent = labelText; |
986 }; | 990 }; |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1020 */ | 1024 */ |
1021 DisplayManager.refocusCurrentPod = function() { | 1025 DisplayManager.refocusCurrentPod = function() { |
1022 $('pod-row').refocusCurrentPod(); | 1026 $('pod-row').refocusCurrentPod(); |
1023 }; | 1027 }; |
1024 | 1028 |
1025 // Export | 1029 // Export |
1026 return { | 1030 return { |
1027 DisplayManager: DisplayManager | 1031 DisplayManager: DisplayManager |
1028 }; | 1032 }; |
1029 }); | 1033 }); |
OLD | NEW |