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

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

Issue 2533413002: cros: Small JS cleanup in lock screen code. (Closed)
Patch Set: Created 4 years 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 | « no previous file | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
(...skipping 11 matching lines...) Expand all
22 22
23 // Register loader for custom elements. 23 // Register loader for custom elements.
24 cr.ui.login.ResourceLoader.registerAssets({ 24 cr.ui.login.ResourceLoader.registerAssets({
25 id: 'custom-elements', 25 id: 'custom-elements',
26 html: [{ url: 'chrome://oobe/custom_elements.html' }] 26 html: [{ url: 'chrome://oobe/custom_elements.html' }]
27 }); 27 });
28 28
29 // Called after polymer has been loaded. Fades the pin element in. 29 // Called after polymer has been loaded. Fades the pin element in.
30 var onPinLoaded = function(pinKeyboard) { 30 var onPinLoaded = function(pinKeyboard) {
31 var podRow = $('pod-row'); 31 var podRow = $('pod-row');
32 podRow.togglePinTransitions(true); 32 podRow.toggleTransitions(true);
33 podRow.setFocusedPodPinVisibility(true); 33 podRow.setFocusedPodPinVisibility(true);
34 }; 34 };
35 35
36 // The element we want to see if loaded. 36 // The element we want to see if loaded.
37 var getPinKeyboard = function() { 37 var getPinKeyboard = function() {
38 return $('pod-row').querySelectorAll('pin-keyboard')[0]; 38 return $('pod-row').querySelectorAll('pin-keyboard')[0];
39 }; 39 };
40 40
41 // We only load the PIN element when it is actually shown so that lock screen 41 // We only load the PIN element when it is actually shown so that lock screen
42 // load times remain low when the user is not using a PIN. 42 // load times remain low when the user is not using a PIN.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 * Reloads content of the page. 81 * Reloads content of the page.
82 * @param {!Object} data New dictionary with i18n values. 82 * @param {!Object} data New dictionary with i18n values.
83 */ 83 */
84 reloadContent: function(data) { 84 reloadContent: function(data) {
85 loadTimeData.overrideValues(data); 85 loadTimeData.overrideValues(data);
86 i18nTemplate.process(document, loadTimeData); 86 i18nTemplate.process(document, loadTimeData);
87 Oobe.getInstance().updateLocalizedContent_(); 87 Oobe.getInstance().updateLocalizedContent_();
88 }, 88 },
89 }; 89 };
90 }); 90 });
OLDNEW
« no previous file with comments | « no previous file | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698