| 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 * | |
| 10 * Example: | |
| 11 * | |
| 12 * <iron-animated-pages> | |
| 13 * <settings-privacy-page prefs="{{prefs}}"> | |
| 14 * </settings-privacy-page> | |
| 15 * ... other pages ... | |
| 16 * </iron-animated-pages> | |
| 17 */ | 9 */ |
| 18 Polymer({ | 10 Polymer({ |
| 19 is: 'settings-privacy-page', | 11 is: 'settings-privacy-page', |
| 20 | 12 |
| 21 behaviors: [ | |
| 22 I18nBehavior, | |
| 23 ], | |
| 24 | |
| 25 properties: { | 13 properties: { |
| 26 /** | 14 /** |
| 27 * Preferences state. | 15 * Preferences state. |
| 28 */ | 16 */ |
| 29 prefs: { | 17 prefs: { |
| 30 type: Object, | 18 type: Object, |
| 31 notify: true, | 19 notify: true, |
| 32 }, | 20 }, |
| 33 | 21 |
| 34 /** | 22 /** |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 58 |
| 71 /** | 59 /** |
| 72 * @param {!Event} event | 60 * @param {!Event} event |
| 73 * @private | 61 * @private |
| 74 */ | 62 */ |
| 75 onIronOverlayClosed_: function(event) { | 63 onIronOverlayClosed_: function(event) { |
| 76 if (Polymer.dom(event).rootTarget.tagName == 'SETTINGS-DIALOG') | 64 if (Polymer.dom(event).rootTarget.tagName == 'SETTINGS-DIALOG') |
| 77 this.showClearBrowsingDataDialog_ = false; | 65 this.showClearBrowsingDataDialog_ = false; |
| 78 }, | 66 }, |
| 79 }); | 67 }); |
| OLD | NEW |