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-privacy-page' is the settings page containing privacy and | 7 * 'settings-privacy-page' is the settings page containing privacy and |
8 * security settings. | 8 * security settings. |
9 * | 9 * |
10 * Example: | 10 * Example: |
11 * | 11 * |
12 * <iron-animated-pages> | 12 * <iron-animated-pages> |
13 * <settings-privacy-page prefs="{{prefs}}"> | 13 * <settings-privacy-page prefs="{{prefs}}"> |
14 * </settings-privacy-page> | 14 * </settings-privacy-page> |
15 * ... other pages ... | 15 * ... other pages ... |
16 * </iron-animated-pages> | 16 * </iron-animated-pages> |
17 */ | 17 */ |
18 Polymer({ | 18 Polymer({ |
19 is: 'settings-privacy-page', | 19 is: 'settings-privacy-page', |
20 | 20 |
| 21 behaviors: [ |
| 22 I18nBehavior, |
| 23 ], |
| 24 |
21 properties: { | 25 properties: { |
22 /** | 26 /** |
23 * Preferences state. | 27 * Preferences state. |
24 */ | 28 */ |
25 prefs: { | 29 prefs: { |
26 type: Object, | 30 type: Object, |
27 notify: true, | 31 notify: true, |
28 }, | 32 }, |
29 | 33 |
30 /** | 34 /** |
(...skipping 17 matching lines...) Expand all Loading... |
48 /** @private */ | 52 /** @private */ |
49 onSiteSettingsTap_: function() { | 53 onSiteSettingsTap_: function() { |
50 this.$.pages.setSubpageChain(['site-settings']); | 54 this.$.pages.setSubpageChain(['site-settings']); |
51 }, | 55 }, |
52 | 56 |
53 /** @private */ | 57 /** @private */ |
54 onClearBrowsingDataTap_: function() { | 58 onClearBrowsingDataTap_: function() { |
55 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); | 59 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); |
56 }, | 60 }, |
57 }); | 61 }); |
OLD | NEW |