OLD | NEW |
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 Loading... |
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 Loading... |
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 })(); |
OLD | NEW |