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

Side by Side Diff: ui/login/display_manager.js

Issue 2260653002: Pin keyboard works with virtual keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Fixed patch set 2 errors. Created 4 years, 3 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 Display manager for WebUI OOBE and login. 6 * @fileoverview Display manager for WebUI OOBE and login.
7 */ 7 */
8 8
9 // TODO(xiyuan): Find a better to share those constants. 9 // TODO(xiyuan): Find a better to share those constants.
10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect'; 10 /** @const */ var SCREEN_OOBE_NETWORK = 'connect';
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 */ 197 */
198 allowToggleVersion_: false, 198 allowToggleVersion_: false,
199 199
200 /** 200 /**
201 * Whether keyboard navigation flow is enforced. 201 * Whether keyboard navigation flow is enforced.
202 * @type {boolean} 202 * @type {boolean}
203 */ 203 */
204 forceKeyboardFlow_: false, 204 forceKeyboardFlow_: false,
205 205
206 /** 206 /**
207 * Whether the virtual keyboard is displayed.
208 * @type {boolean}
209 */
210 virtualKeyboardShown: false,
211
212 /**
207 * Type of UI. 213 * Type of UI.
208 * @type {string} 214 * @type {string}
209 */ 215 */
210 displayType_: DISPLAY_TYPE.UNKNOWN, 216 displayType_: DISPLAY_TYPE.UNKNOWN,
211 217
212 /** 218 /**
213 * Error message (bubble) was shown. This is checked in tests. 219 * Error message (bubble) was shown. This is checked in tests.
214 */ 220 */
215 errorMessageWasShownForTesting_: false, 221 errorMessageWasShownForTesting_: false,
216 222
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 * @param {boolean} hidden Whether header is hidden. 255 * @param {boolean} hidden Whether header is hidden.
250 */ 256 */
251 get headerHidden() { 257 get headerHidden() {
252 return $('login-header-bar').hidden; 258 return $('login-header-bar').hidden;
253 }, 259 },
254 260
255 set headerHidden(hidden) { 261 set headerHidden(hidden) {
256 $('login-header-bar').hidden = hidden; 262 $('login-header-bar').hidden = hidden;
257 }, 263 },
258 264
265 set pinHidden(hidden) {
266 this.virtualKeyboardShown = hidden;
267 $('pod-row').setPinHidden(hidden);
268 },
269
259 /** 270 /**
260 * Sets the current size of the client area (display size). 271 * Sets the current size of the client area (display size).
261 * @param {number} width client area width 272 * @param {number} width client area width
262 * @param {number} height client area height 273 * @param {number} height client area height
263 */ 274 */
264 setClientAreaSize: function(width, height) { 275 setClientAreaSize: function(width, height) {
265 var clientArea = $('outer-container'); 276 var clientArea = $('outer-container');
266 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); 277 var bottom = parseInt(window.getComputedStyle(clientArea).bottom);
267 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); 278 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom);
268 }, 279 },
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 */ 1057 */
1047 DisplayManager.refocusCurrentPod = function() { 1058 DisplayManager.refocusCurrentPod = function() {
1048 $('pod-row').refocusCurrentPod(); 1059 $('pod-row').refocusCurrentPod();
1049 }; 1060 };
1050 1061
1051 // Export 1062 // Export
1052 return { 1063 return {
1053 DisplayManager: DisplayManager 1064 DisplayManager: DisplayManager
1054 }; 1065 };
1055 }); 1066 });
OLDNEW
« ui/login/account_picker/user_pod_row.js ('K') | « ui/login/account_picker/user_pod_template.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698