| 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 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1011 DisplayManager.setLabelText = function(labelId, labelText) { | 1011 DisplayManager.setLabelText = function(labelId, labelText) { |
| 1012 $(labelId).textContent = labelText; | 1012 $(labelId).textContent = labelText; |
| 1013 }; | 1013 }; |
| 1014 | 1014 |
| 1015 /** | 1015 /** |
| 1016 * Sets the text content of the enterprise info message and asset ID. | 1016 * Sets the text content of the enterprise info message and asset ID. |
| 1017 * @param {string} messageText The message text. | 1017 * @param {string} messageText The message text. |
| 1018 * @param {string} assetId The device asset ID. | 1018 * @param {string} assetId The device asset ID. |
| 1019 */ | 1019 */ |
| 1020 DisplayManager.setEnterpriseInfo = function(messageText, assetId) { | 1020 DisplayManager.setEnterpriseInfo = function(messageText, assetId) { |
| 1021 $('offline-gaia').enterpriseInfo = messageText; | |
| 1022 $('asset-id').textContent = ((assetId == "") ? "" : | 1021 $('asset-id').textContent = ((assetId == "") ? "" : |
| 1023 loadTimeData.getStringF('assetIdLabel', assetId)); | 1022 loadTimeData.getStringF('assetIdLabel', assetId)); |
| 1024 }; | 1023 }; |
| 1025 | 1024 |
| 1026 /** | 1025 /** |
| 1027 * Disable Add users button if said. | 1026 * Disable Add users button if said. |
| 1028 * @param {boolean} disable true to disable | 1027 * @param {boolean} disable true to disable |
| 1029 */ | 1028 */ |
| 1030 DisplayManager.updateAddUserButtonStatus = function(disable) { | 1029 DisplayManager.updateAddUserButtonStatus = function(disable) { |
| 1031 $('add-user-button').disabled = disable; | 1030 $('add-user-button').disabled = disable; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1047 */ | 1046 */ |
| 1048 DisplayManager.refocusCurrentPod = function() { | 1047 DisplayManager.refocusCurrentPod = function() { |
| 1049 $('pod-row').refocusCurrentPod(); | 1048 $('pod-row').refocusCurrentPod(); |
| 1050 }; | 1049 }; |
| 1051 | 1050 |
| 1052 // Export | 1051 // Export |
| 1053 return { | 1052 return { |
| 1054 DisplayManager: DisplayManager | 1053 DisplayManager: DisplayManager |
| 1055 }; | 1054 }; |
| 1056 }); | 1055 }); |
| OLD | NEW |