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

Side by Side Diff: chrome/browser/resources/settings/internet_page/internet_subpage.js

Issue 2838323002: [CrOS Tether] Add tether settings section to the MD settings page. (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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 information about WiFi, 6 * @fileoverview Polymer element for displaying information about WiFi,
7 * WiMAX, or virtual networks. 7 * WiMAX, or virtual networks.
8 */ 8 */
9 9
10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */ 10 /** @typedef {chrome.networkingPrivate.DeviceStateProperties} */
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 247
248 /** 248 /**
249 * @param {!DeviceStateProperties} deviceState 249 * @param {!DeviceStateProperties} deviceState
250 * @return {string} 250 * @return {string}
251 * @private 251 * @private
252 */ 252 */
253 getToggleA11yString_: function(deviceState) { 253 getToggleA11yString_: function(deviceState) {
254 if (!this.enableToggleIsVisible_(deviceState)) 254 if (!this.enableToggleIsVisible_(deviceState))
255 return ''; 255 return '';
256 switch (deviceState.Type) { 256 switch (deviceState.Type) {
257 case CrOnc.Type.TETHER:
258 return this.i18n('internetToggleTetherA11yLabel');
257 case CrOnc.Type.CELLULAR: 259 case CrOnc.Type.CELLULAR:
258 return this.i18n('internetToggleMobileA11yLabel'); 260 return this.i18n('internetToggleMobileA11yLabel');
259 case CrOnc.Type.WI_FI: 261 case CrOnc.Type.WI_FI:
260 return this.i18n('internetToggleWiFiA11yLabel'); 262 return this.i18n('internetToggleWiFiA11yLabel');
261 case CrOnc.Type.WI_MAX: 263 case CrOnc.Type.WI_MAX:
262 return this.i18n('internetToggleWiMAXA11yLabel'); 264 return this.i18n('internetToggleWiMAXA11yLabel');
263 } 265 }
264 assertNotReached(); 266 assertNotReached();
265 return ''; 267 return '';
266 }, 268 },
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 430
429 /** 431 /**
430 * @param {*} lhs 432 * @param {*} lhs
431 * @param {*} rhs 433 * @param {*} rhs
432 * @return {boolean} 434 * @return {boolean}
433 */ 435 */
434 isEqual_: function(lhs, rhs) { 436 isEqual_: function(lhs, rhs) {
435 return lhs === rhs; 437 return lhs === rhs;
436 }, 438 },
437 }); 439 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698