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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
136 continueButton.classList.add('preserve-disabled-state'); | 136 continueButton.classList.add('preserve-disabled-state'); |
137 buttons.push(continueButton); | 137 buttons.push(continueButton); |
138 | 138 |
139 return buttons; | 139 return buttons; |
140 }, | 140 }, |
141 | 141 |
142 /** | 142 /** |
143 * Returns a control which should receive an initial focus. | 143 * Returns a control which should receive an initial focus. |
144 */ | 144 */ |
145 get defaultControl() { | 145 get defaultControl() { |
146 var useMDOobe = (loadTimeData.getString('newOobeUI') == 'on'); | |
147 if (useMDOobe) | |
stevenjb
2017/02/14 01:21:32
if (loadTimeData.getString('newOobeUI') == 'on')
Alexander Alekseev
2017/02/14 11:59:27
Done.
| |
148 return $('oobe-welcome-md'); | |
149 | |
146 return $('language-select'); | 150 return $('language-select'); |
147 }, | 151 }, |
148 | 152 |
149 /** | 153 /** |
150 * Shows the network error message. | 154 * Shows the network error message. |
151 * @param {string} message Message to be shown. | 155 * @param {string} message Message to be shown. |
152 */ | 156 */ |
153 showError: function(message) { | 157 showError: function(message) { |
154 var error = document.createElement('div'); | 158 var error = document.createElement('div'); |
155 var messageDiv = document.createElement('div'); | 159 var messageDiv = document.createElement('div'); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
191 var timezoneList = loadTimeData.getValue('timezoneList'); | 195 var timezoneList = loadTimeData.getValue('timezoneList'); |
192 welcomeScreen.timezones = timezoneList; | 196 welcomeScreen.timezones = timezoneList; |
193 | 197 |
194 welcomeScreen.highlightStrength = | 198 welcomeScreen.highlightStrength = |
195 loadTimeData.getValue('highlightStrength'); | 199 loadTimeData.getValue('highlightStrength'); |
196 } | 200 } |
197 }, | 201 }, |
198 }; | 202 }; |
199 }); | 203 }); |
200 | 204 |
OLD | NEW |