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

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

Issue 2027683003: Pin keyboard moved to under the user profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Created 4 years, 6 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 (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 Login UI based on a stripped down OOBE controller. 6 * @fileoverview Login UI based on a stripped down OOBE controller.
7 */ 7 */
8 8
9 <include src="login_shared.js"> 9 <include src="login_shared.js">
10 10
11 // Lazy load polymer. 11 // Lazy load polymer.
12 (function() { 12 (function() {
13 'use strict'; 13 'use strict';
14 14
15 // Register loader for custom elements. 15 // Register loader for custom elements.
16 cr.ui.login.ResourceLoader.registerAssets({ 16 cr.ui.login.ResourceLoader.registerAssets({
17 id: 'custom-elements', 17 id: 'custom-elements',
18 html: [{ url: 'chrome://oobe/custom_elements.html' }] 18 html: [{ url: 'chrome://oobe/custom_elements.html' }]
19 }); 19 });
20 20
21 // Called after polymer has been loaded. Fades the pin element in. 21 // Called after polymer has been loaded. Fades the pin element in.
22 var onPinLoaded = function(pinContainer) { 22 var onPinLoaded = function(pinContainer) {
23 pinContainer.style.opacity = 1; 23 setTimeout(function() {
24 pinContainer.style.opacity = 1;
25 var element1 = $('account-picker');
jdufault 2016/05/31 19:24:51 Why is this in a setTimeout? onPinLoaded is gettin
sammiequon 2016/06/14 22:22:21 Done.
26 element1.style.height = '600px';
27 element1.style.width = '250px';
28 var element2 = $('inner-container');
29 element2.style.height = '600px';
30 element2.style.width = '250px';
31 var element3 = document.getElementsByClassName('user-image-pane');
32 element3[0].style.height = '230px';
33 element3[0].style.width = '230px';
34 }, 1000);
24 }; 35 };
25 36
26 // We only load the PIN element when it is actually shown so that lock screen 37 // We only load the PIN element when it is actually shown so that lock screen
27 // load times remain low when the user is not using a PIN. 38 // load times remain low when the user is not using a PIN.
28 // 39 //
29 // Loading the PIN element blocks the DOM, which will interrupt any running 40 // Loading the PIN element blocks the DOM, which will interrupt any running
30 // animations. We load the PIN after an idle notification to allow the pod 41 // animations. We load the PIN after an idle notification to allow the pod
31 // fly-in animation to complete without interruption. 42 // fly-in animation to complete without interruption.
32 if (loadTimeData.getBoolean('showPin')) { 43 if (loadTimeData.getBoolean('showPin')) {
33 cr.ui.login.ResourceLoader.loadAssetsOnIdle('custom-elements', function() { 44 cr.ui.login.ResourceLoader.loadAssetsOnIdle('custom-elements', function() {
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 * Reloads content of the page. 82 * Reloads content of the page.
72 * @param {!Object} data New dictionary with i18n values. 83 * @param {!Object} data New dictionary with i18n values.
73 */ 84 */
74 reloadContent: function(data) { 85 reloadContent: function(data) {
75 loadTimeData.overrideValues(data); 86 loadTimeData.overrideValues(data);
76 i18nTemplate.process(document, loadTimeData); 87 i18nTemplate.process(document, loadTimeData);
77 Oobe.getInstance().updateLocalizedContent_(); 88 Oobe.getInstance().updateLocalizedContent_();
78 }, 89 },
79 }; 90 };
80 }); 91 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698