Chromium Code Reviews

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

Issue 304153004: Center lock screen user pod when virtual keyboard is shown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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="../../login/screen.js"></include> 9 <include src="../../login/screen.js"></include>
10 <include src="../user_images_grid.js"></include> 10 <include src="../user_images_grid.js"></include>
(...skipping 292 matching lines...)
303 }; 303 };
304 304
305 /** 305 /**
306 * Shows/hides login UI control bar with buttons like [Shut down]. 306 * Shows/hides login UI control bar with buttons like [Shut down].
307 */ 307 */
308 Oobe.showControlBar = function(show) { 308 Oobe.showControlBar = function(show) {
309 Oobe.getInstance().headerHidden = !show; 309 Oobe.getInstance().headerHidden = !show;
310 }; 310 };
311 311
312 /** 312 /**
313 * Sets the current state of the virtual keyboard (shown/hidden). 313 * Sets the current state of the virtual keyboard (shown/hidden, size).
314 */ 314 */
315 Oobe.setKeyboardState = function(shown) { 315 Oobe.setKeyboardState = function(shown, width, height) {
316 Oobe.getInstance().virtualKeyboardShown = shown; 316 Oobe.getInstance().virtualKeyboardShown = shown;
317 Oobe.getInstance().setVirtualKeyboardSize(width, height);
317 }; 318 };
318 319
319 /** 320 /**
320 * Sets the current size of the client area (display size). 321 * Sets the current size of the client area (display size).
321 * @param {number} width client area width 322 * @param {number} width client area width
322 * @param {number} height client area height 323 * @param {number} height client area height
323 */ 324 */
324 Oobe.setClientAreaSize = function(width, height) { 325 Oobe.setClientAreaSize = function(width, height) {
325 Oobe.getInstance().setClientAreaSize(width, height); 326 Oobe.getInstance().setClientAreaSize(width, height);
326 }; 327 };
(...skipping 32 matching lines...)
359 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() { 360 cr.ui.login.ResourceLoader.loadAssets(SCREEN_OOBE_ENROLLMENT, function() {
360 // This screen is async-loaded so we manually trigger i18n processing. 361 // This screen is async-loaded so we manually trigger i18n processing.
361 i18nTemplate.process($('oauth-enrollment'), loadTimeData); 362 i18nTemplate.process($('oauth-enrollment'), loadTimeData);
362 // Delayed binding since this isn't defined yet. 363 // Delayed binding since this isn't defined yet.
363 login.OAuthEnrollmentScreen.register(); 364 login.OAuthEnrollmentScreen.register();
364 }); 365 });
365 366
366 // Delayed binding since this isn't defined yet. 367 // Delayed binding since this isn't defined yet.
367 cr.ui.Oobe.initialize(); 368 cr.ui.Oobe.initialize();
368 }); 369 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/ui/login_display_host_impl.cc ('k') | chrome/browser/resources/login/display_manager.js » ('j') | no next file with comments »

Powered by Google App Engine