| 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 1033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1044 * Sets the text content of the enterprise info message and asset ID. | 1044 * Sets the text content of the enterprise info message and asset ID. |
| 1045 * @param {string} messageText The message text. | 1045 * @param {string} messageText The message text. |
| 1046 * @param {string} assetId The device asset ID. | 1046 * @param {string} assetId The device asset ID. |
| 1047 */ | 1047 */ |
| 1048 DisplayManager.setEnterpriseInfo = function(messageText, assetId) { | 1048 DisplayManager.setEnterpriseInfo = function(messageText, assetId) { |
| 1049 $('asset-id').textContent = ((assetId == "") ? "" : | 1049 $('asset-id').textContent = ((assetId == "") ? "" : |
| 1050 loadTimeData.getStringF('assetIdLabel', assetId)); | 1050 loadTimeData.getStringF('assetIdLabel', assetId)); |
| 1051 }; | 1051 }; |
| 1052 | 1052 |
| 1053 /** | 1053 /** |
| 1054 * Sets the text content of the Bluetooth device info message. |
| 1055 * @param {string} bluetoothName The Bluetooth device name text. |
| 1056 */ |
| 1057 DisplayManager.setBluetoothDeviceInfo = function(bluetoothName) { |
| 1058 $('bluetooth-name').hidden = false; |
| 1059 $('bluetooth-name').textContent = bluetoothName; |
| 1060 }; |
| 1061 |
| 1062 /** |
| 1054 * Disable Add users button if said. | 1063 * Disable Add users button if said. |
| 1055 * @param {boolean} disable true to disable | 1064 * @param {boolean} disable true to disable |
| 1056 */ | 1065 */ |
| 1057 DisplayManager.updateAddUserButtonStatus = function(disable) { | 1066 DisplayManager.updateAddUserButtonStatus = function(disable) { |
| 1058 $('add-user-button').disabled = disable; | 1067 $('add-user-button').disabled = disable; |
| 1059 $('add-user-button').classList[ | 1068 $('add-user-button').classList[ |
| 1060 disable ? 'add' : 'remove']('button-restricted'); | 1069 disable ? 'add' : 'remove']('button-restricted'); |
| 1061 $('add-user-button').title = disable ? | 1070 $('add-user-button').title = disable ? |
| 1062 loadTimeData.getString('disabledAddUserTooltip') : ''; | 1071 loadTimeData.getString('disabledAddUserTooltip') : ''; |
| 1063 } | 1072 } |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1074 */ | 1083 */ |
| 1075 DisplayManager.refocusCurrentPod = function() { | 1084 DisplayManager.refocusCurrentPod = function() { |
| 1076 $('pod-row').refocusCurrentPod(); | 1085 $('pod-row').refocusCurrentPod(); |
| 1077 }; | 1086 }; |
| 1078 | 1087 |
| 1079 // Export | 1088 // Export |
| 1080 return { | 1089 return { |
| 1081 DisplayManager: DisplayManager | 1090 DisplayManager: DisplayManager |
| 1082 }; | 1091 }; |
| 1083 }); | 1092 }); |
| OLD | NEW |