| 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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 }; | 387 }; |
| 388 | 388 |
| 389 /** | 389 /** |
| 390 * Shows/hides login UI control bar with buttons like [Shut down]. | 390 * Shows/hides login UI control bar with buttons like [Shut down]. |
| 391 */ | 391 */ |
| 392 Oobe.showControlBar = function(show) { | 392 Oobe.showControlBar = function(show) { |
| 393 Oobe.getInstance().headerHidden = !show; | 393 Oobe.getInstance().headerHidden = !show; |
| 394 }; | 394 }; |
| 395 | 395 |
| 396 /** | 396 /** |
| 397 * Shows/hides pin keyboard on the lock screen. |
| 398 */ |
| 399 Oobe.showPinKeyboard = function(show) { |
| 400 Oobe.getInstance().pinHidden = !show; |
| 401 }; |
| 402 |
| 403 /** |
| 397 * Sets the current size of the client area (display size). | 404 * Sets the current size of the client area (display size). |
| 398 * @param {number} width client area width | 405 * @param {number} width client area width |
| 399 * @param {number} height client area height | 406 * @param {number} height client area height |
| 400 */ | 407 */ |
| 401 Oobe.setClientAreaSize = function(width, height) { | 408 Oobe.setClientAreaSize = function(width, height) { |
| 402 Oobe.getInstance().setClientAreaSize(width, height); | 409 Oobe.getInstance().setClientAreaSize(width, height); |
| 403 }; | 410 }; |
| 404 | 411 |
| 405 // Export | 412 // Export |
| 406 return { | 413 return { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 421 | 428 |
| 422 | 429 |
| 423 (function() { | 430 (function() { |
| 424 'use strict'; | 431 'use strict'; |
| 425 | 432 |
| 426 document.addEventListener('DOMContentLoaded', function() { | 433 document.addEventListener('DOMContentLoaded', function() { |
| 427 Oobe.initialize(); | 434 Oobe.initialize(); |
| 428 }); | 435 }); |
| 429 })(); | 436 })(); |
| 430 | 437 |
| OLD | NEW |