Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Side by Side Diff: chrome/browser/resources/chromeos/login/display_manager.js

Issue 9416097: Add butter bar to login screen to show device enrollement info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update dates in copyright headers. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698