| 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-a11y-page' is the settings page containing accessibility | 7 * 'cr-settings-basic-page' is the settings page containing the basic settings. |
| 8 * settings. | |
| 9 * | 8 * |
| 10 * Example: | 9 * Example: |
| 11 * | 10 * |
| 12 * <iron-animated-pages> | 11 * <iron-animated-pages> |
| 13 * <cr-settings-a11y-page prefs="{{prefs}}"></cr-settings-a11y-page> | 12 * <cr-settings-basic-page prefs="{{prefs}}"></cr-settings-basic-page> |
| 14 * ... other pages ... | 13 * ... other pages ... |
| 15 * </iron-animated-pages> | 14 * </iron-animated-pages> |
| 16 * | 15 * |
| 17 * @group Chrome Settings Elements | 16 * @group Chrome Settings Elements |
| 18 * @element cr-settings-a11y-page | 17 * @element cr-settings-basic-page |
| 19 */ | 18 */ |
| 20 Polymer({ | 19 Polymer({ |
| 21 is: 'cr-settings-a11y-page', | 20 is: 'cr-settings-basic-page', |
| 22 | 21 |
| 23 properties: { | 22 properties: { |
| 24 /** | 23 /** |
| 25 * Preferences state. | 24 * Preferences state. |
| 26 */ | 25 */ |
| 27 prefs: { | 26 prefs: { |
| 28 type: Object, | 27 type: Object, |
| 29 notify: true, | 28 notify: true, |
| 30 }, | 29 }, |
| 31 | 30 |
| 32 /** | 31 /** |
| 33 * Route for the page. | 32 * Route for the page. |
| 34 */ | 33 */ |
| 35 route: String, | 34 route: String, |
| 36 | 35 |
| 37 /** | 36 /** |
| 38 * Whether the page is a subpage. | 37 * Whether the page is a subpage. |
| 39 */ | 38 */ |
| 40 subpage: { | 39 subpage: { |
| 41 type: Boolean, | 40 type: Boolean, |
| 42 value: false, | 41 value: false, |
| 43 readOnly: true, | 42 readOnly: true, |
| 44 }, | 43 }, |
| 45 | 44 |
| 46 /** | 45 /** |
| 47 * ID of the page. | 46 * ID of the page. |
| 48 */ | 47 */ |
| 49 PAGE_ID: { | 48 PAGE_ID: { |
| 50 type: String, | 49 type: String, |
| 51 value: 'a11y', | 50 value: 'basic', |
| 52 readOnly: true, | 51 readOnly: true, |
| 53 }, | 52 }, |
| 54 | 53 |
| 55 /** | 54 /** |
| 56 * Title for the page header and navigation menu. | 55 * Title for the page header and navigation menu. |
| 57 */ | 56 */ |
| 58 pageTitle: { | 57 pageTitle: { |
| 59 type: String, | 58 type: String, |
| 60 value: function() { return loadTimeData.getString('a11yPageTitle'); }, | 59 value: function() { return loadTimeData.getString('basicPageTitle'); }, |
| 61 }, | 60 }, |
| 62 | 61 |
| 63 /** | 62 /** |
| 64 * Name of the 'iron-icon' to show. | 63 * Name of the 'iron-icon' to show. |
| 65 */ | 64 */ |
| 66 icon: { | 65 icon: { |
| 67 type: String, | 66 type: String, |
| 68 value: 'accessibility', | 67 value: 'menu', |
| 69 readOnly: true, | 68 readOnly: true, |
| 70 }, | 69 }, |
| 71 }, | 70 }, |
| 72 }); | 71 }); |
| OLD | NEW |