Chromium Code Reviews| 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 394 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 405 }; | 405 }; |
| 406 | 406 |
| 407 /** | 407 /** |
| 408 * Shows/hides login UI control bar with buttons like [Shut down]. | 408 * Shows/hides login UI control bar with buttons like [Shut down]. |
| 409 */ | 409 */ |
| 410 Oobe.showControlBar = function(show) { | 410 Oobe.showControlBar = function(show) { |
| 411 Oobe.getInstance().headerHidden = !show; | 411 Oobe.getInstance().headerHidden = !show; |
| 412 }; | 412 }; |
| 413 | 413 |
| 414 /** | 414 /** |
| 415 * Shows/hides pin keyboard on the lock screen. | 415 * Shows/hides pin keyboard on the lock screen. |
|
achuithb
2017/04/12 19:00:26
Also update comment
jdufault
2017/04/13 00:34:42
Done.
| |
| 416 */ | 416 */ |
| 417 Oobe.showPinKeyboard = function(show) { | 417 Oobe.setVirtualKeyboardShown = function(shown) { |
| 418 Oobe.getInstance().pinHidden = !show; | 418 Oobe.getInstance().virtualKeyboardShown = shown; |
| 419 $('pod-row').setFocusedPodPinVisibility(!shown); | |
| 419 }; | 420 }; |
| 420 | 421 |
| 421 /** | 422 /** |
| 422 * Sets the current size of the client area (display size). | 423 * Sets the current size of the client area (display size). |
| 423 * @param {number} width client area width | 424 * @param {number} width client area width |
| 424 * @param {number} height client area height | 425 * @param {number} height client area height |
| 425 */ | 426 */ |
| 426 Oobe.setClientAreaSize = function(width, height) { | 427 Oobe.setClientAreaSize = function(width, height) { |
| 427 Oobe.getInstance().setClientAreaSize(width, height); | 428 Oobe.getInstance().setClientAreaSize(width, height); |
| 428 }; | 429 }; |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 451 document.addEventListener('DOMContentLoaded', function() { | 452 document.addEventListener('DOMContentLoaded', function() { |
| 452 Oobe.initialize(); | 453 Oobe.initialize(); |
| 453 Oobe.readyForTesting = true; | 454 Oobe.readyForTesting = true; |
| 454 }); | 455 }); |
| 455 | 456 |
| 456 // Install a global error handler so stack traces are included in logs. | 457 // Install a global error handler so stack traces are included in logs. |
| 457 window.onerror = function(message, file, line, column, error) { | 458 window.onerror = function(message, file, line, column, error) { |
| 458 console.error(error.stack); | 459 console.error(error.stack); |
| 459 } | 460 } |
| 460 })(); | 461 })(); |
| OLD | NEW |