| 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 * | |
| 10 * Example: | |
| 11 * | |
| 12 * <core-animated-pages> | |
| 13 * <settings-internet-page prefs='{{prefs}}'> | |
| 14 * </settings-internet-page> | |
| 15 * ... other pages ... | |
| 16 * </core-animated-pages> | |
| 17 */ | 9 */ |
| 18 Polymer({ | 10 Polymer({ |
| 19 is: 'settings-internet-page', | 11 is: 'settings-internet-page', |
| 20 | 12 |
| 21 behaviors: [ | |
| 22 I18nBehavior, | |
| 23 ], | |
| 24 | |
| 25 properties: { | 13 properties: { |
| 26 /** | 14 /** |
| 27 * The current active route. | 15 * The current active route. |
| 28 */ | 16 */ |
| 29 currentRoute: { | 17 currentRoute: { |
| 30 type: Object, | 18 type: Object, |
| 31 notify: true, | 19 notify: true, |
| 32 }, | 20 }, |
| 33 | 21 |
| 34 /** | 22 /** |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 /** | 55 /** |
| 68 * @param {!{detail: {type: string}}} event | 56 * @param {!{detail: {type: string}}} event |
| 69 * @private | 57 * @private |
| 70 */ | 58 */ |
| 71 onShowKnownNetworks_: function(event) { | 59 onShowKnownNetworks_: function(event) { |
| 72 this.knownNetworksType = event.detail.type; | 60 this.knownNetworksType = event.detail.type; |
| 73 this.$.pages.setSubpageChain(['known-networks']); | 61 this.$.pages.setSubpageChain(['known-networks']); |
| 74 }, | 62 }, |
| 75 | 63 |
| 76 }); | 64 }); |
| OLD | NEW |