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

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

Issue 2180823004: Migrate <cr-dialog> from PaperDialogBehavior to native <dialog>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge conflicts with Tommy's CL. Created 4 years, 4 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 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 'settings-certificate-manager-page' is the settings page 6 * @fileoverview 'settings-certificate-manager-page' is the settings page
7 * containing SSL certificate settings. 7 * containing SSL certificate settings.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-certificate-manager-page', 10 is: 'settings-certificate-manager-page',
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 * 151 *
152 * @param {string} dialogTagName The tag name of the dialog to be shown. 152 * @param {string} dialogTagName The tag name of the dialog to be shown.
153 * @param {string} domIfBooleanName The name of the boolean variable 153 * @param {string} domIfBooleanName The name of the boolean variable
154 * corresponding to the dialog. 154 * corresponding to the dialog.
155 * @private 155 * @private
156 */ 156 */
157 openDialog_: function(dialogTagName, domIfBooleanName) { 157 openDialog_: function(dialogTagName, domIfBooleanName) {
158 this.set(domIfBooleanName, true); 158 this.set(domIfBooleanName, true);
159 this.async(function() { 159 this.async(function() {
160 var dialog = this.$$(dialogTagName); 160 var dialog = this.$$(dialogTagName);
161 dialog.addEventListener('iron-overlay-closed', function() { 161 dialog.addEventListener('close', function() {
162 this.set(domIfBooleanName, false); 162 this.set(domIfBooleanName, false);
163 }.bind(this)); 163 }.bind(this));
164 }.bind(this)); 164 }.bind(this));
165 }, 165 },
166 }); 166 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698