Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(486)

Side by Side Diff: chrome/browser/resources/settings/certificate_manager_page/certificate_subentry.js

Issue 2426743002: MD Settings: Migrate certificate entry action menu to settings-action-menu. (Closed)
Patch Set: Nit. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698