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

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

Issue 2814863002: cros: Allow JS to control virtual keyboard on sign-in screen. (Closed)
Patch Set: Remove login_display_host_impl.cc keyboard logic Created 3 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
OLDNEW
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
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 * Changes some UI which depends on the virtual keyboard being shown/hidden.
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
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 })();
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/webui_login_view.cc ('k') | chrome/browser/ui/webui/chromeos/login/core_oobe_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698