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