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

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: review Created 5 years, 5 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 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 }; 346 };
347 347
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).
357 */
358 Oobe.setKeyboardState = function(shown, width, height) {
359 Oobe.getInstance().virtualKeyboardShown = shown;
360 Oobe.getInstance().setVirtualKeyboardSize(width, height);
361 };
362
363 /**
364 * Sets the current size of the client area (display size). 356 * Sets the current size of the client area (display size).
365 * @param {number} width client area width 357 * @param {number} width client area width
366 * @param {number} height client area height 358 * @param {number} height client area height
367 */ 359 */
368 Oobe.setClientAreaSize = function(width, height) { 360 Oobe.setClientAreaSize = function(width, height) {
369 Oobe.getInstance().setClientAreaSize(width, height); 361 Oobe.getInstance().setClientAreaSize(width, height);
370 }; 362 };
371 363
372 /** 364 /**
373 * Checks whether the New Gaia flow is active. 365 * Checks whether the New Gaia flow is active.
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 document.addEventListener('DOMContentLoaded', function() { 413 document.addEventListener('DOMContentLoaded', function() {
422 if (!window['WAIT_FOR_POLYMER']) { 414 if (!window['WAIT_FOR_POLYMER']) {
423 initializeOobe(); 415 initializeOobe();
424 return; 416 return;
425 } 417 }
426 window.addEventListener('polymer-ready', function() { 418 window.addEventListener('polymer-ready', function() {
427 initializeOobe(); 419 initializeOobe();
428 }); 420 });
429 }); 421 });
430 })(); 422 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698