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

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

Issue 2916973002: Fix two container issues for new login screen (Closed)
Patch Set: Created 3 years, 6 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
« no previous file with comments | « no previous file | ui/login/account_picker/md_user_pod_row.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 407 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 Oobe.showControlBar = function(show) { 418 Oobe.showControlBar = function(show) {
419 Oobe.getInstance().headerHidden = !show; 419 Oobe.getInstance().headerHidden = !show;
420 }; 420 };
421 421
422 /** 422 /**
423 * Changes some UI which depends on the virtual keyboard being shown/hidden. 423 * Changes some UI which depends on the virtual keyboard being shown/hidden.
424 */ 424 */
425 Oobe.setVirtualKeyboardShown = function(shown) { 425 Oobe.setVirtualKeyboardShown = function(shown) {
426 Oobe.getInstance().virtualKeyboardShown = shown; 426 Oobe.getInstance().virtualKeyboardShown = shown;
427 $('pod-row').setFocusedPodPinVisibility(!shown); 427 $('pod-row').setFocusedPodPinVisibility(!shown);
428 // The dark overlay should always have the same size with the larger one
429 // of the outer-container and the scroll-container.
430 if (shown)
431 $('login-shield').style.minHeight = $('outer-container').style.minHeight;
432 else
433 $('login-shield').style.minHeight = 'unset';
428 }; 434 };
429 435
430 /** 436 /**
431 * Sets the current size of the client area (display size). 437 * Sets the current size of the client area (display size).
432 * @param {number} width client area width 438 * @param {number} width client area width
433 * @param {number} height client area height 439 * @param {number} height client area height
434 */ 440 */
435 Oobe.setClientAreaSize = function(width, height) { 441 Oobe.setClientAreaSize = function(width, height) {
436 Oobe.getInstance().setClientAreaSize(width, height); 442 Oobe.getInstance().setClientAreaSize(width, height);
437 }; 443 };
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 // readyForTesting even on failures, just to make test bots happy. 475 // readyForTesting even on failures, just to make test bots happy.
470 Oobe.readyForTesting = true; 476 Oobe.readyForTesting = true;
471 } 477 }
472 }); 478 });
473 479
474 // Install a global error handler so stack traces are included in logs. 480 // Install a global error handler so stack traces are included in logs.
475 window.onerror = function(message, file, line, column, error) { 481 window.onerror = function(message, file, line, column, error) {
476 console.error(error.stack); 482 console.error(error.stack);
477 }; 483 };
478 })(); 484 })();
OLDNEW
« no previous file with comments | « no previous file | ui/login/account_picker/md_user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698