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

Unified Diff: chrome/browser/resources/login/display_manager.js

Issue 292233002: Disable VK overscroll for login/out-of-box. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, keyboard override value: convert to bool Created 6 years, 7 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 side-by-side diff with in-line comments
Download patch
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.
*/
« no previous file with comments | « chrome/browser/resources/chromeos/login/login_common.js ('k') | chrome/browser/resources/login/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698