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

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

Issue 1642323004: User Manager MD User Pods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments. fixed a couple of issues with the existing user manager (overflowing user pod r… Created 4 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
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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 set displayType(displayType) { 221 set displayType(displayType) {
222 this.displayType_ = displayType; 222 this.displayType_ = displayType;
223 document.documentElement.setAttribute('screen', displayType); 223 document.documentElement.setAttribute('screen', displayType);
224 }, 224 },
225 225
226 get newKioskUI() { 226 get newKioskUI() {
227 return loadTimeData.getString('newKioskUI') == 'on'; 227 return loadTimeData.getString('newKioskUI') == 'on';
228 }, 228 },
229 229
230 /** 230 /**
231 * Returns true if this is the Material Design Desktop User Manager.
232 * @type {boolean}
233 */
234 get newDesktopUserManager() {
235 return false;
236 },
237
238 /**
231 * Returns dimensions of screen exluding header bar. 239 * Returns dimensions of screen exluding header bar.
232 * @type {Object} 240 * @type {Object}
233 */ 241 */
234 get clientAreaSize() { 242 get clientAreaSize() {
235 var container = $('outer-container'); 243 var container = $('outer-container');
236 return {width: container.offsetWidth, height: container.offsetHeight}; 244 return {width: container.offsetWidth, height: container.offsetHeight};
237 }, 245 },
238 246
239 /** 247 /**
240 * Gets current screen element. 248 * Gets current screen element.
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
1044 */ 1052 */
1045 DisplayManager.refocusCurrentPod = function() { 1053 DisplayManager.refocusCurrentPod = function() {
1046 $('pod-row').refocusCurrentPod(); 1054 $('pod-row').refocusCurrentPod();
1047 }; 1055 };
1048 1056
1049 // Export 1057 // Export
1050 return { 1058 return {
1051 DisplayManager: DisplayManager 1059 DisplayManager: DisplayManager
1052 }; 1060 };
1053 }); 1061 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698