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

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

Issue 2627023006: WebUI: Remove i18n from cr_elements/network (Closed)
Patch Set: . Created 3 years, 11 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 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 Polymer element for displaying material design OOBE. 6 * @fileoverview Polymer element for displaying material design OOBE.
7 */ 7 */
8 8
9 Polymer({ 9 Polymer({
10 is: 'oobe-welcome-md', 10 is: 'oobe-welcome-md',
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 102
103 /** 103 /**
104 * If UI uses forced keyboard navigation. 104 * If UI uses forced keyboard navigation.
105 */ 105 */
106 highlightStrength: { 106 highlightStrength: {
107 type: String, 107 type: String,
108 value: '', 108 value: '',
109 }, 109 },
110 }, 110 },
111 111
112 /** @override */
113 ready: function() {
114 CrOncStrings = {
115 OncTypeCellular: loadTimeData.getString('OncTypeCellular'),
116 OncTypeEthernet: loadTimeData.getString('OncTypeEthernet'),
117 OncTypeVPN: loadTimeData.getString('OncTypeVPN'),
118 OncTypeWiFi: loadTimeData.getString('OncTypeWiFi'),
119 OncTypeWiMAX: loadTimeData.getString('OncTypeWiMAX'),
120 networkDisabled: loadTimeData.getString('networkDisabled'),
121 networkListItemConnected:
122 loadTimeData.getString('networkListItemConnected'),
123 networkListItemConnecting:
124 loadTimeData.getString('networkListItemConnecting'),
125 networkListItemNotConnected:
126 loadTimeData.getString('networkListItemNotConnected'),
127 vpnNameTemplate: loadTimeData.getString('vpnNameTemplate'),
128 };
129 // Additional strings for custom items.
130 CrOncStrings.addMobileNetworkMenuName =
131 loadTimeData.getString('addMobileNetworkMenuName');
132 CrOncStrings.addWiFiNetworkMenuName =
133 loadTimeData.getString('addWiFiNetworkMenuName');
134 CrOncStrings.proxySettingsMenuName =
135 loadTimeData.getString('proxySettingsMenuName');
Dan Beam 2017/01/18 02:00:23 why are you doing this separately from the CrOncSt
stevenjb 2017/01/18 19:49:24 I thought closure would complain since these are n
136 },
Alexander Alekseev 2017/01/13 22:48:57 That's sad that these strings have to be initializ
stevenjb 2017/01/14 06:11:40 Well, we could load a shared JS file, but I'm not
137
112 /** 138 /**
113 * Hides all screens to help switching from one screen to another. 139 * Hides all screens to help switching from one screen to another.
114 */ 140 */
115 hideAllScreens_: function() { 141 hideAllScreens_: function() {
116 this.welcomeScreenShown = false; 142 this.welcomeScreenShown = false;
117 this.networkSelectionScreenShown = false; 143 this.networkSelectionScreenShown = false;
118 this.languageSelectionScreenShown = false; 144 this.languageSelectionScreenShown = false;
119 this.accessibilityOptionsScreenShown = false; 145 this.accessibilityOptionsScreenShown = false;
120 this.timezoneScreenShown = false; 146 this.timezoneScreenShown = false;
121 }, 147 },
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 * @private 448 * @private
423 */ 449 */
424 onTimezoneSelected_: function(event) { 450 onTimezoneSelected_: function(event) {
425 var item = event.detail; 451 var item = event.detail;
426 if (!item) 452 if (!item)
427 return; 453 return;
428 454
429 this.screen.onTimezoneSelected_(item.value); 455 this.screen.onTimezoneSelected_(item.value);
430 }, 456 },
431 }); 457 });
OLDNEW
« no previous file with comments | « chrome/app/settings_strings.grdp ('k') | chrome/browser/resources/chromeos/network_ui/network_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698