OLD | NEW |
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 Oobe network screen implementation. | 6 * @fileoverview Oobe network screen implementation. |
7 */ | 7 */ |
8 | 8 |
9 login.createScreen('NetworkScreen', 'connect', function() { | 9 login.createScreen('NetworkScreen', 'connect', function() { |
10 var USER_ACTION_CONTINUE_BUTTON_CLICKED = 'continue'; | 10 var USER_ACTION_CONTINUE_BUTTON_CLICKED = 'continue'; |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 $('bubble').showContentForElement($('networks-list'), | 169 $('bubble').showContentForElement($('networks-list'), |
170 cr.ui.Bubble.Attachment.BOTTOM, | 170 cr.ui.Bubble.Attachment.BOTTOM, |
171 error); | 171 error); |
172 }, | 172 }, |
173 | 173 |
174 /** | 174 /** |
175 * This is called after resources are updated. | 175 * This is called after resources are updated. |
176 */ | 176 */ |
177 updateLocalizedContent: function() { | 177 updateLocalizedContent: function() { |
178 this.setMDMode_(); | 178 this.setMDMode_(); |
| 179 $('oobe-welcome-md').updateLocalizedContent(); |
179 }, | 180 }, |
180 | 181 |
181 /** | 182 /** |
182 * This method takes care of switching to material-design OOBE. | 183 * This method takes care of switching to material-design OOBE. |
183 * @private | 184 * @private |
184 */ | 185 */ |
185 setMDMode_: function() { | 186 setMDMode_: function() { |
186 var useMDOobe = (loadTimeData.getString('newOobeUI') == 'on'); | 187 var useMDOobe = (loadTimeData.getString('newOobeUI') == 'on'); |
187 | 188 |
188 $('oobe-connect').hidden = useMDOobe; | 189 $('oobe-connect').hidden = useMDOobe; |
(...skipping 10 matching lines...) Expand all Loading... |
199 var timezoneList = loadTimeData.getValue('timezoneList'); | 200 var timezoneList = loadTimeData.getValue('timezoneList'); |
200 welcomeScreen.timezones = timezoneList; | 201 welcomeScreen.timezones = timezoneList; |
201 | 202 |
202 welcomeScreen.highlightStrength = | 203 welcomeScreen.highlightStrength = |
203 loadTimeData.getValue('highlightStrength'); | 204 loadTimeData.getValue('highlightStrength'); |
204 } | 205 } |
205 }, | 206 }, |
206 }; | 207 }; |
207 }); | 208 }); |
208 | 209 |
OLD | NEW |