| Index: chrome/browser/resources/login/display_manager.js
|
| diff --git a/chrome/browser/resources/login/display_manager.js b/chrome/browser/resources/login/display_manager.js
|
| index 35f262bedcb1e0b08a08cd80253884d23c6a7aea..b4c355c4a8be77e7e1f24e30ca9c262eae2c45ab 100644
|
| --- a/chrome/browser/resources/login/display_manager.js
|
| +++ b/chrome/browser/resources/login/display_manager.js
|
| @@ -173,6 +173,12 @@ cr.define('cr.ui.login', function() {
|
| forceKeyboardFlow_: false,
|
|
|
| /**
|
| + * Whether virtual keyboard is shown.
|
| + * @type {boolean}
|
| + */
|
| + virtualKeyboardShown_: false,
|
| +
|
| + /**
|
| * Type of UI.
|
| * @type {string}
|
| */
|
| @@ -226,6 +232,29 @@ cr.define('cr.ui.login', function() {
|
| },
|
|
|
| /**
|
| + * Virtual keyboard state (hidden/shown).
|
| + * @param {boolean} hidden Whether keyboard is shown.
|
| + */
|
| + get virtualKeyboardShown() {
|
| + return this.virtualKeyboardShown_;
|
| + },
|
| +
|
| + set virtualKeyboardShown(shown) {
|
| + this.virtualKeyboardShown_ = shown;
|
| + },
|
| +
|
| + /**
|
| + * Sets the current size of the client area (display size).
|
| + * @param {number} width client area width
|
| + * @param {number} height client area height
|
| + */
|
| + setClientAreaSize: function(width, height) {
|
| + var clientArea = $('outer-container');
|
| + var bottom = parseInt(window.getComputedStyle(clientArea).bottom);
|
| + clientArea.style.minHeight = (height - bottom) + 'px';
|
| + },
|
| +
|
| + /**
|
| * Toggles background of main body between transparency and solid.
|
| * @param {boolean} solid Whether to show a solid background.
|
| */
|
|
|