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

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

Issue 1205063002: Fix user pod not always scroll to the center after VK shows up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new approach and clean up Created 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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. 6 * @fileoverview Common OOBE controller methods.
7 */ 7 */
8 8
9 <include src="test_util.js"> 9 <include src="test_util.js">
10 <include src="../../../../../ui/login/screen.js"> 10 <include src="../../../../../ui/login/screen.js">
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 /** 348 /**
349 * Shows/hides login UI control bar with buttons like [Shut down]. 349 * Shows/hides login UI control bar with buttons like [Shut down].
350 */ 350 */
351 Oobe.showControlBar = function(show) { 351 Oobe.showControlBar = function(show) {
352 Oobe.getInstance().headerHidden = !show; 352 Oobe.getInstance().headerHidden = !show;
353 }; 353 };
354 354
355 /** 355 /**
356 * Sets the current state of the virtual keyboard (shown/hidden, size). 356 * Sets the current state of the virtual keyboard (shown/hidden, size).
357 */ 357 */
358 Oobe.setKeyboardState = function(shown, width, height) { 358 Oobe.setKeyboardState = function(shown, width, height) {
flackr 2015/06/25 18:01:37 Remove the function altogether.
bshe 2015/06/25 21:15:07 Done.
359 Oobe.getInstance().virtualKeyboardShown = shown;
360 Oobe.getInstance().setVirtualKeyboardSize(width, height);
361 }; 359 };
362 360
363 /** 361 /**
364 * Sets the current size of the client area (display size). 362 * Sets the current size of the client area (display size).
365 * @param {number} width client area width 363 * @param {number} width client area width
366 * @param {number} height client area height 364 * @param {number} height client area height
367 */ 365 */
368 Oobe.setClientAreaSize = function(width, height) { 366 Oobe.setClientAreaSize = function(width, height) {
369 Oobe.getInstance().setClientAreaSize(width, height); 367 Oobe.getInstance().setClientAreaSize(width, height);
370 }; 368 };
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 document.addEventListener('DOMContentLoaded', function() { 419 document.addEventListener('DOMContentLoaded', function() {
422 if (!window['WAIT_FOR_POLYMER']) { 420 if (!window['WAIT_FOR_POLYMER']) {
423 initializeOobe(); 421 initializeOobe();
424 return; 422 return;
425 } 423 }
426 window.addEventListener('polymer-ready', function() { 424 window.addEventListener('polymer-ready', function() {
427 initializeOobe(); 425 initializeOobe();
428 }); 426 });
429 }); 427 });
430 })(); 428 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698