Chromium Code Reviews| 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 * If the text is empty, the entire notification will be hidden. | |
|
James Hawkins
2012/02/28 16:45:33
Does this line still apply? I thought I read that
Patrick Dubroy
2012/03/15 14:31:17
Done.
| |
| 408 * @param {string} messageText The message text. | |
| 409 */ | |
| 410 DisplayManager.setEnterpriseInfo = function(messageText) { | |
| 411 $('enterprise-info-message').textContent = messageText; | |
| 412 var container = $('enterprise-info-container'); | |
| 413 container.style.visibility = messageText == '' ? 'hidden' : 'visible'; | |
|
James Hawkins
2012/02/28 16:45:33
container.hidden = true | false
Patrick Dubroy
2012/03/15 14:31:17
Done.
| |
| 414 }; | |
| 415 | |
| 405 // Export | 416 // Export |
| 406 return { | 417 return { |
| 407 DisplayManager: DisplayManager | 418 DisplayManager: DisplayManager |
| 408 }; | 419 }; |
| 409 }); | 420 }); |
| OLD | NEW |