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 SCREEN_GAIA_SIGNIN = 'gaia-signin'; | 10 const SCREEN_GAIA_SIGNIN = 'gaia-signin'; |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 | 395 |
396 /** | 396 /** |
397 * Sets text content for a div with |labelId|. | 397 * Sets text content for a div with |labelId|. |
398 * @param {string} labelId Id of the label div. | 398 * @param {string} labelId Id of the label div. |
399 * @param {string} labelText Text for the label. | 399 * @param {string} labelText Text for the label. |
400 */ | 400 */ |
401 DisplayManager.setLabelText = function(labelId, labelText) { | 401 DisplayManager.setLabelText = function(labelId, labelText) { |
402 $(labelId).textContent = labelText; | 402 $(labelId).textContent = labelText; |
403 }; | 403 }; |
404 | 404 |
| 405 /** |
| 406 * Sets the text content of the enterprise info message. |
| 407 * @param {string} messageText The message text. |
| 408 */ |
| 409 DisplayManager.setEnterpriseInfo = function(messageText) { |
| 410 $('enterprise-info-message').textContent = messageText; |
| 411 if (messageText) |
| 412 $('enterprise-info-container').hidden = false; |
| 413 }; |
| 414 |
405 // Export | 415 // Export |
406 return { | 416 return { |
407 DisplayManager: DisplayManager | 417 DisplayManager: DisplayManager |
408 }; | 418 }; |
409 }); | 419 }); |
OLD | NEW |