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

Side by Side Diff: chrome/browser/resources/chromeos/login/login.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 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
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);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698