OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 a list of network properties | 6 * @fileoverview Polymer element for displaying a list of network properties |
7 * in a list. This also supports editing fields inline for fields listed in | 7 * in a list. This also supports editing fields inline for fields listed in |
8 * editFieldTypes. | 8 * editFieldTypes. |
9 */ | 9 */ |
10 Polymer({ | 10 Polymer({ |
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 return this.i18n('OncTether-SignalStrength_Okay'); | 197 return this.i18n('OncTether-SignalStrength_Okay'); |
198 if (value <= 74) | 198 if (value <= 74) |
199 return this.i18n('OncTether-SignalStrength_Good'); | 199 return this.i18n('OncTether-SignalStrength_Good'); |
200 if (value <= 99) | 200 if (value <= 99) |
201 return this.i18n('OncTether-SignalStrength_Strong'); | 201 return this.i18n('OncTether-SignalStrength_Strong'); |
202 return this.i18n('OncTether-SignalStrength_VeryStrong'); | 202 return this.i18n('OncTether-SignalStrength_VeryStrong'); |
203 } | 203 } |
204 | 204 |
205 if (key == 'Tether.Carrier') { | 205 if (key == 'Tether.Carrier') { |
206 assert(typeof value == 'string'); | 206 assert(typeof value == 'string'); |
207 return (!value || value == 'unknown-carrier') | 207 return (!value || value == 'unknown-carrier') ? |
208 ? this.i18n('tetherUnknownCarrier') | 208 this.i18n('tetherUnknownCarrier') : |
209 : value; | 209 value; |
210 } | 210 } |
211 | 211 |
212 return ''; | 212 return ''; |
213 }, | 213 }, |
214 }); | 214 }); |
OLD | NEW |