OLD | NEW |
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="md_login_shared.js"> |
10 | 10 |
11 /** | 11 /** |
12 * Ensures that the pin keyboard is loaded. | 12 * Ensures that the pin keyboard is loaded. |
13 * @param {function()} onLoaded Callback run when the pin keyboard is loaded. | 13 * @param {function()} onLoaded Callback run when the pin keyboard is loaded. |
14 */ | 14 */ |
15 function ensurePinKeyboardLoaded(onLoaded) { | 15 function ensurePinKeyboardLoaded(onLoaded) { |
16 'use strict'; | 16 'use strict'; |
17 | 17 |
18 // The element we want to see if loaded. | 18 // The element we want to see if loaded. |
19 var getPinKeyboard = function() { | 19 var getPinKeyboard = function() { |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 * Reloads content of the page. | 86 * Reloads content of the page. |
87 * @param {!Object} data New dictionary with i18n values. | 87 * @param {!Object} data New dictionary with i18n values. |
88 */ | 88 */ |
89 reloadContent: function(data) { | 89 reloadContent: function(data) { |
90 loadTimeData.overrideValues(data); | 90 loadTimeData.overrideValues(data); |
91 i18nTemplate.process(document, loadTimeData); | 91 i18nTemplate.process(document, loadTimeData); |
92 Oobe.getInstance().updateLocalizedContent_(); | 92 Oobe.getInstance().updateLocalizedContent_(); |
93 }, | 93 }, |
94 }; | 94 }; |
95 }); | 95 }); |
OLD | NEW |