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 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 Loading... |
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); |
OLD | NEW |