| 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 Login UI based on a stripped down OOBE controller. | 6 * @fileoverview Login UI based on a stripped down OOBE controller. |
| 7 * TODO(xiyuan): Refactoring this to get a better structure. | 7 * TODO(xiyuan): Refactoring this to get a better structure. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 var localStrings = new LocalStrings(); | 10 var localStrings = new LocalStrings(); |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 /** | 153 /** |
| 154 * Sets text content for a div with |labelId|. | 154 * Sets text content for a div with |labelId|. |
| 155 * @param {string} labelId Id of the label div. | 155 * @param {string} labelId Id of the label div. |
| 156 * @param {string} labelText Text for the label. | 156 * @param {string} labelText Text for the label. |
| 157 */ | 157 */ |
| 158 Oobe.setLabelText = function(labelId, labelText) { | 158 Oobe.setLabelText = function(labelId, labelText) { |
| 159 DisplayManager.setLabelText(labelId, labelText); | 159 DisplayManager.setLabelText(labelId, labelText); |
| 160 }; | 160 }; |
| 161 | 161 |
| 162 /** |
| 163 * Sets the text content of the enterprise info message. |
| 164 * If the text is empty, the entire notification will be hidden. |
| 165 * @param {string} messageText The message text. |
| 166 */ |
| 167 Oobe.setEnterpriseInfo = function(messageText) { |
| 168 DisplayManager.setEnterpriseInfo(messageText); |
| 169 }; |
| 170 |
| 162 // Export | 171 // Export |
| 163 return { | 172 return { |
| 164 Oobe: Oobe | 173 Oobe: Oobe |
| 165 }; | 174 }; |
| 166 }); | 175 }); |
| 167 | 176 |
| 168 var Oobe = cr.ui.Oobe; | 177 var Oobe = cr.ui.Oobe; |
| 169 | 178 |
| 170 disableTextSelectAndDrag(); | 179 disableTextSelectAndDrag(); |
| 171 | 180 |
| 172 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); | 181 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); |
| OLD | NEW |