| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 settings-certificate-subentry represents an SSL certificate | 6 * @fileoverview settings-certificate-subentry represents an SSL certificate |
| 7 * sub-entry. | 7 * sub-entry. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 cr.define('settings', function() { | 10 cr.define('settings', function() { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 * @param {!CertificateSubnode} model | 144 * @param {!CertificateSubnode} model |
| 145 * @return {boolean} Whether the certificate can be deleted. | 145 * @return {boolean} Whether the certificate can be deleted. |
| 146 * @private | 146 * @private |
| 147 */ | 147 */ |
| 148 canDelete_: function(model) { | 148 canDelete_: function(model) { |
| 149 return !model.readonly && !model.policy; | 149 return !model.readonly && !model.policy; |
| 150 }, | 150 }, |
| 151 | 151 |
| 152 /** @private */ | 152 /** @private */ |
| 153 closePopupMenu_: function() { | 153 closePopupMenu_: function() { |
| 154 this.$$('iron-dropdown').close(); | 154 this.$$('dialog[is=settings-action-menu]').close(); |
| 155 }, |
| 156 |
| 157 /** @private */ |
| 158 onDotsTap_: function() { |
| 159 var actionMenu = /** @type {!SettingsActionMenuElement} */( |
| 160 this.$.menu.get()); |
| 161 actionMenu.showAt(assert(this.$$('paper-icon-button'))); |
| 155 }, | 162 }, |
| 156 }); | 163 }); |
| OLD | NEW |