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

Side by Side Diff: chrome/browser/resources/chromeos/login/display_manager.js

Issue 158833003: Represent kiosk apps as user pods instead of menu items. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: pngcrush Created 6 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 get displayType() { 133 get displayType() {
134 return this.displayType_; 134 return this.displayType_;
135 }, 135 },
136 136
137 set displayType(displayType) { 137 set displayType(displayType) {
138 this.displayType_ = displayType; 138 this.displayType_ = displayType;
139 document.documentElement.setAttribute('screen', displayType); 139 document.documentElement.setAttribute('screen', displayType);
140 }, 140 },
141 141
142 get newKioskUI() {
143 return loadTimeData.getString('newKioskUI') == 'on';
144 },
145
142 /** 146 /**
143 * Returns dimensions of screen exluding header bar. 147 * Returns dimensions of screen exluding header bar.
144 * @type {Object} 148 * @type {Object}
145 */ 149 */
146 get clientAreaSize() { 150 get clientAreaSize() {
147 var container = $('outer-container'); 151 var container = $('outer-container');
148 return {width: container.offsetWidth, height: container.offsetHeight}; 152 return {width: container.offsetWidth, height: container.offsetHeight};
149 }, 153 },
150 154
151 /** 155 /**
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
858 */ 862 */
859 DisplayManager.refocusCurrentPod = function() { 863 DisplayManager.refocusCurrentPod = function() {
860 $('pod-row').refocusCurrentPod(); 864 $('pod-row').refocusCurrentPod();
861 }; 865 };
862 866
863 // Export 867 // Export
864 return { 868 return {
865 DisplayManager: DisplayManager 869 DisplayManager: DisplayManager
866 }; 870 };
867 }); 871 });
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/kiosk_browsertest.cc ('k') | chrome/browser/resources/chromeos/login/header_bar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698