| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 Common OOBE controller methods. This method is shared between | 6 * @fileoverview Common OOBE controller methods. This method is shared between |
| 7 * OOBE, login, and the lock screen. Add only methods that need to be shared | 7 * OOBE, login, and the lock screen. Add only methods that need to be shared |
| 8 * between all *three* screens here, as each additional method increases the | 8 * between all *three* screens here, as each additional method increases the |
| 9 * time it takes to show the lock screen. | 9 * time it takes to show the lock screen. |
| 10 * | 10 * |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 /** | 244 /** |
| 245 * Sets the text content of the enterprise info message. | 245 * Sets the text content of the enterprise info message. |
| 246 * If the text is empty, the entire notification will be hidden. | 246 * If the text is empty, the entire notification will be hidden. |
| 247 * @param {string} messageText The message text. | 247 * @param {string} messageText The message text. |
| 248 */ | 248 */ |
| 249 Oobe.setEnterpriseInfo = function(messageText, assetId) { | 249 Oobe.setEnterpriseInfo = function(messageText, assetId) { |
| 250 DisplayManager.setEnterpriseInfo(messageText, assetId); | 250 DisplayManager.setEnterpriseInfo(messageText, assetId); |
| 251 }; | 251 }; |
| 252 | 252 |
| 253 /** | 253 /** |
| 254 * Sets the text content of the Bluetooth device info message. |
| 255 * @param {string} bluetoothName The Bluetooth device name text. |
| 256 */ |
| 257 Oobe.setBluetoothDeviceInfo = function(bluetoothName) { |
| 258 DisplayManager.setBluetoothDeviceInfo(bluetoothName); |
| 259 }; |
| 260 |
| 261 /** |
| 254 * Updates the device requisition string shown in the requisition prompt. | 262 * Updates the device requisition string shown in the requisition prompt. |
| 255 * @param {string} requisition The device requisition. | 263 * @param {string} requisition The device requisition. |
| 256 */ | 264 */ |
| 257 Oobe.updateDeviceRequisition = function(requisition) { | 265 Oobe.updateDeviceRequisition = function(requisition) { |
| 258 Oobe.getInstance().updateDeviceRequisition(requisition); | 266 Oobe.getInstance().updateDeviceRequisition(requisition); |
| 259 }; | 267 }; |
| 260 | 268 |
| 261 /** | 269 /** |
| 262 * Enforces focus on user pod of locked user. | 270 * Enforces focus on user pod of locked user. |
| 263 */ | 271 */ |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 // readyForTesting even on failures, just to make test bots happy. | 469 // readyForTesting even on failures, just to make test bots happy. |
| 462 Oobe.readyForTesting = true; | 470 Oobe.readyForTesting = true; |
| 463 } | 471 } |
| 464 }); | 472 }); |
| 465 | 473 |
| 466 // Install a global error handler so stack traces are included in logs. | 474 // Install a global error handler so stack traces are included in logs. |
| 467 window.onerror = function(message, file, line, column, error) { | 475 window.onerror = function(message, file, line, column, error) { |
| 468 console.error(error.stack); | 476 console.error(error.stack); |
| 469 } | 477 } |
| 470 })(); | 478 })(); |
| OLD | NEW |