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

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

Issue 2814863002: cros: Allow JS to control virtual keyboard on sign-in screen. (Closed)
Patch Set: Remove login_display_host_impl.cc keyboard logic Created 3 years, 8 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
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 * @param {boolean} hidden Whether header is hidden. 260 * @param {boolean} hidden Whether header is hidden.
261 */ 261 */
262 get headerHidden() { 262 get headerHidden() {
263 return $('login-header-bar').hidden; 263 return $('login-header-bar').hidden;
264 }, 264 },
265 265
266 set headerHidden(hidden) { 266 set headerHidden(hidden) {
267 $('login-header-bar').hidden = hidden; 267 $('login-header-bar').hidden = hidden;
268 }, 268 },
269 269
270 set pinHidden(hidden) {
271 this.virtualKeyboardShown = hidden;
272 $('pod-row').setFocusedPodPinVisibility(!hidden);
273 },
274
275 /** 270 /**
276 * Sets the current size of the client area (display size). 271 * Sets the current size of the client area (display size).
277 * @param {number} width client area width 272 * @param {number} width client area width
278 * @param {number} height client area height 273 * @param {number} height client area height
279 */ 274 */
280 setClientAreaSize: function(width, height) { 275 setClientAreaSize: function(width, height) {
281 var clientArea = $('outer-container'); 276 var clientArea = $('outer-container');
282 var bottom = parseInt(window.getComputedStyle(clientArea).bottom); 277 var bottom = parseInt(window.getComputedStyle(clientArea).bottom);
283 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom); 278 clientArea.style.minHeight = cr.ui.toCssPx(height - bottom);
284 }, 279 },
(...skipping 783 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 */ 1063 */
1069 DisplayManager.refocusCurrentPod = function() { 1064 DisplayManager.refocusCurrentPod = function() {
1070 $('pod-row').refocusCurrentPod(); 1065 $('pod-row').refocusCurrentPod();
1071 }; 1066 };
1072 1067
1073 // Export 1068 // Export
1074 return { 1069 return {
1075 DisplayManager: DisplayManager 1070 DisplayManager: DisplayManager
1076 }; 1071 };
1077 }); 1072 });
OLDNEW
« no previous file with comments | « ui/keyboard/keyboard_controller.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698