| 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 | 6 * @fileoverview |
| 7 * 'settings-internet-page' is the settings page containing internet | 7 * 'settings-internet-page' is the settings page containing internet |
| 8 * settings. | 8 * settings. |
| 9 */ | 9 */ |
| 10 Polymer({ | 10 Polymer({ |
| 11 is: 'settings-internet-page', | 11 is: 'settings-internet-page', |
| 12 | 12 |
| 13 behaviors: [I18nBehavior], | 13 behaviors: [I18nBehavior], |
| 14 | 14 |
| 15 properties: { | 15 properties: { |
| 16 /** | 16 /** |
| 17 * Interface for networkingPrivate calls. May be overriden by tests. | 17 * Interface for networkingPrivate calls. May be overriden by tests. |
| 18 * @type {NetworkingPrivate} | 18 * @type {NetworkingPrivate} |
| 19 */ | 19 */ |
| 20 networkingPrivate: { | 20 networkingPrivate: { |
| 21 type: Object, | 21 type: Object, |
| 22 value: chrome.networkingPrivate, | 22 value: chrome.networkingPrivate, |
| 23 }, | 23 }, |
| 24 | 24 |
| 25 /** Preferences state. */ |
| 26 prefs: { |
| 27 type: Object, |
| 28 notify: true, |
| 29 }, |
| 30 |
| 25 /** | 31 /** |
| 26 * The network type for the known networks subpage. | 32 * The network type for the known networks subpage. |
| 27 * @private | 33 * @private |
| 28 */ | 34 */ |
| 29 knownNetworksType_: String, | 35 knownNetworksType_: String, |
| 30 | 36 |
| 31 /** | 37 /** |
| 32 * Whether the 'Add connection' section is expanded. | 38 * Whether the 'Add connection' section is expanded. |
| 33 * @private | 39 * @private |
| 34 */ | 40 */ |
| (...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 }, | 202 }, |
| 197 | 203 |
| 198 /** | 204 /** |
| 199 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider | 205 * @param {!chrome.networkingPrivate.ThirdPartyVPNProperties} provider |
| 200 * @return {string} | 206 * @return {string} |
| 201 */ | 207 */ |
| 202 getAddThirdParrtyVpnLabel_: function(provider) { | 208 getAddThirdParrtyVpnLabel_: function(provider) { |
| 203 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); | 209 return this.i18n('internetAddThirdPartyVPN', provider.ProviderName); |
| 204 } | 210 } |
| 205 }); | 211 }); |
| OLD | NEW |