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

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

Issue 9836039: Add reporting notification to the enterprise banner on the CrOS login screen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 8 years, 8 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 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 /** 162 /**
163 * Sets the text content of the enterprise info message. 163 * Sets the text content of the enterprise info message.
164 * If the text is empty, the entire notification will be hidden. 164 * If the text is empty, the entire notification will be hidden.
165 * @param {string} messageText The message text. 165 * @param {string} messageText The message text.
166 * @param {boolean} showTrackingHint Whether to show the reporting warning.
166 */ 167 */
167 Oobe.setEnterpriseInfo = function(messageText) { 168 Oobe.setEnterpriseInfo = function(messageText, showReportingWarning) {
168 DisplayManager.setEnterpriseInfo(messageText); 169 DisplayManager.setEnterpriseInfo(messageText, showReportingWarning);
169 }; 170 };
170 171
171 // Export 172 // Export
172 return { 173 return {
173 Oobe: Oobe 174 Oobe: Oobe
174 }; 175 };
175 }); 176 });
176 177
177 var Oobe = cr.ui.Oobe; 178 var Oobe = cr.ui.Oobe;
178 179
179 disableTextSelectAndDrag(); 180 disableTextSelectAndDrag();
180 181
181 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize); 182 document.addEventListener('DOMContentLoaded', cr.ui.Oobe.initialize);
OLDNEW
« no previous file with comments | « chrome/browser/resources/chromeos/login/login.html ('k') | chrome/browser/resources/chromeos/login/notification_area.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698