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