| 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: |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 notify: true, | 31 notify: true, |
| 32 }, | 32 }, |
| 33 | 33 |
| 34 /** | 34 /** |
| 35 * The current active route. | 35 * The current active route. |
| 36 */ | 36 */ |
| 37 currentRoute: { | 37 currentRoute: { |
| 38 type: Object, | 38 type: Object, |
| 39 notify: true, | 39 notify: true, |
| 40 }, | 40 }, |
| 41 |
| 42 /** @private */ |
| 43 showClearBrowsingDataDialog_: Boolean, |
| 41 }, | 44 }, |
| 42 | 45 |
| 43 ready: function() { | 46 ready: function() { |
| 44 this.ContentSettingsTypes = settings.ContentSettingsTypes; | 47 this.ContentSettingsTypes = settings.ContentSettingsTypes; |
| 45 }, | 48 }, |
| 46 | 49 |
| 47 /** @private */ | 50 /** @private */ |
| 48 onManageCertificatesTap_: function() { | 51 onManageCertificatesTap_: function() { |
| 49 <if expr="use_nss_certs"> | 52 <if expr="use_nss_certs"> |
| 50 this.$.pages.setSubpageChain(['manage-certificates']); | 53 this.$.pages.setSubpageChain(['manage-certificates']); |
| 51 </if> | 54 </if> |
| 52 <if expr="is_win or is_macosx"> | 55 <if expr="is_win or is_macosx"> |
| 53 settings.PrivacyPageBrowserProxyImpl.getInstance(). | 56 settings.PrivacyPageBrowserProxyImpl.getInstance(). |
| 54 showManageSSLCertificates(); | 57 showManageSSLCertificates(); |
| 55 </if> | 58 </if> |
| 56 }, | 59 }, |
| 57 | 60 |
| 58 /** @private */ | 61 /** @private */ |
| 59 onSiteSettingsTap_: function() { | 62 onSiteSettingsTap_: function() { |
| 60 this.$.pages.setSubpageChain(['site-settings']); | 63 this.$.pages.setSubpageChain(['site-settings']); |
| 61 }, | 64 }, |
| 62 | 65 |
| 63 /** @private */ | 66 /** @private */ |
| 64 onClearBrowsingDataTap_: function() { | 67 onClearBrowsingDataTap_: function() { |
| 65 this.$.pages.querySelector('settings-clear-browsing-data-dialog').open(); | 68 this.showClearBrowsingDataDialog_ = true; |
| 69 }, |
| 70 |
| 71 /** |
| 72 * @param {!Event} event |
| 73 * @private |
| 74 */ |
| 75 onIronOverlayClosed_: function(event) { |
| 76 if (Polymer.dom(event).rootTarget.tagName == 'SETTINGS-DIALOG') |
| 77 this.showClearBrowsingDataDialog_ = false; |
| 66 }, | 78 }, |
| 67 }); | 79 }); |
| OLD | NEW |