| 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 * 'cr-settings-internet-page' is the settings page containing internet | 7 * 'cr-settings-internet-page' is the settings page containing internet |
| 8 * settings. | 8 * settings. |
| 9 * | 9 * |
| 10 * Example: | 10 * Example: |
| 11 * | 11 * |
| 12 * <core-animated-pages> | 12 * <core-animated-pages> |
| 13 * <cr-settings-internet-page prefs="{{prefs}}"> | 13 * <cr-settings-internet-page prefs="{{prefs}}"> |
| 14 * </cr-settings-internet-page> | 14 * </cr-settings-internet-page> |
| 15 * ... other pages ... | 15 * ... other pages ... |
| 16 * </core-animated-pages> | 16 * </core-animated-pages> |
| 17 * | 17 * |
| 18 * @group Chrome Settings Elements | 18 * @group Chrome Settings Elements |
| 19 * @element cr-settings-internet-page | 19 * @element cr-settings-internet-page |
| 20 */ | 20 */ |
| 21 Polymer('cr-settings-internet-page', { | 21 Polymer('cr-settings-internet-page', { |
| 22 publish: { | 22 publish: { |
| 23 /** | 23 /** |
| 24 * ID of the page. | 24 * ID of the page. |
| 25 * | 25 * |
| 26 * @attribute PAGE_ID | 26 * @attribute PAGE_ID |
| 27 * @const string | 27 * @const {string} |
| 28 */ | 28 */ |
| 29 PAGE_ID: 'internet', | 29 PAGE_ID: 'internet', |
| 30 | 30 |
| 31 /** | 31 /** |
| 32 * Route for the page. | 32 * Route for the page. |
| 33 * | 33 * |
| 34 * @attribute route | 34 * @attribute route |
| 35 * @type string | 35 * @type {string} |
| 36 * @default '' | 36 * @default '' |
| 37 */ | 37 */ |
| 38 route: '', | 38 route: '', |
| 39 | 39 |
| 40 /** | 40 /** |
| 41 * Whether the page is a subpage. | 41 * Whether the page is a subpage. |
| 42 * | 42 * |
| 43 * @attribute subpage | 43 * @attribute subpage |
| 44 * @type boolean | 44 * @type {boolean} |
| 45 * @default false | 45 * @default false |
| 46 */ | 46 */ |
| 47 subpage: false, | 47 subpage: false, |
| 48 | 48 |
| 49 /** | 49 /** |
| 50 * Title for the page header and navigation menu. | 50 * Title for the page header and navigation menu. |
| 51 * | 51 * |
| 52 * @attribute pageTitle | 52 * @attribute pageTitle |
| 53 * @type string | 53 * @type {string} |
| 54 */ | 54 */ |
| 55 pageTitle: loadTimeData.getString('internetPageTitle'), | 55 pageTitle: loadTimeData.getString('internetPageTitle'), |
| 56 | 56 |
| 57 /** | 57 /** |
| 58 * Name of the 'core-icon' to show. TODO(stevenjb): Update this with the | 58 * Name of the 'core-icon' to show. TODO(stevenjb): Update this with the |
| 59 * icon for the active internet connection. | 59 * icon for the active internet connection. |
| 60 * | 60 * |
| 61 * @attribute icon | 61 * @attribute icon |
| 62 * @type string | 62 * @type {string} |
| 63 * @default 'settings-ethernet' | 63 * @default 'settings-ethernet' |
| 64 */ | 64 */ |
| 65 icon: 'settings-ethernet', | 65 icon: 'settings-ethernet', |
| 66 }, | 66 }, |
| 67 }); | 67 }); |
| OLD | NEW |