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

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: Created 4 years, 4 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 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 * @param {boolean} hidden Whether header is hidden. 249 * @param {boolean} hidden Whether header is hidden.
250 */ 250 */
251 get headerHidden() { 251 get headerHidden() {
252 return $('login-header-bar').hidden; 252 return $('login-header-bar').hidden;
253 }, 253 },
254 254
255 set headerHidden(hidden) { 255 set headerHidden(hidden) {
256 $('login-header-bar').hidden = hidden; 256 $('login-header-bar').hidden = hidden;
257 }, 257 },
258 258
259 set pinHidden(hidden) {
260 $('pod-row').setPinHidden(hidden);
261 },
262
259 /** 263 /**
260 * Sets the current size of the client area (display size). 264 * Sets the current size of the client area (display size).
261 * @param {number} width client area width 265 * @param {number} width client area width
262 * @param {number} height client area height 266 * @param {number} height client area height
263 */ 267 */
264 setClientAreaSize: function(width, height) { 268 setClientAreaSize: function(width, height) {
265 var clientArea = $('outer-container'); 269 var clientArea = $('outer-container');
266 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); 270 var bottom = parseInt(window.getComputedStyle(clientArea).bottom);
267 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); 271 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom);
268 }, 272 },
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 */ 1050 */
1047 DisplayManager.refocusCurrentPod = function() { 1051 DisplayManager.refocusCurrentPod = function() {
1048 $('pod-row').refocusCurrentPod(); 1052 $('pod-row').refocusCurrentPod();
1049 }; 1053 };
1050 1054
1051 // Export 1055 // Export
1052 return { 1056 return {
1053 DisplayManager: DisplayManager 1057 DisplayManager: DisplayManager
1054 }; 1058 };
1055 }); 1059 });
OLDNEW
« ui/login/account_picker/user_pod_row.js ('K') | « ui/login/account_picker/user_pod_row.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698