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

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

Issue 2796343004: ChromeOS OOBE: cr-network-list strings must be updated on UI language change. (Closed)
Patch Set: Created 3 years, 8 months 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 | chrome/browser/resources/chromeos/login/oobe_welcome.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) 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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/chromeos/login/oobe_welcome.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698