| 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 '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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 * @private | 172 * @private |
| 173 */ | 173 */ |
| 174 openDialog_: function(dialogTagName, domIfBooleanName, anchor) { | 174 openDialog_: function(dialogTagName, domIfBooleanName, anchor) { |
| 175 if (anchor) | 175 if (anchor) |
| 176 this.activeDialogAnchor_ = anchor; | 176 this.activeDialogAnchor_ = anchor; |
| 177 this.set(domIfBooleanName, true); | 177 this.set(domIfBooleanName, true); |
| 178 this.async(function() { | 178 this.async(function() { |
| 179 var dialog = this.$$(dialogTagName); | 179 var dialog = this.$$(dialogTagName); |
| 180 dialog.addEventListener('close', function() { | 180 dialog.addEventListener('close', function() { |
| 181 this.set(domIfBooleanName, false); | 181 this.set(domIfBooleanName, false); |
| 182 this.activeDialogAnchor_.focus(); | 182 cr.ui.focusWithoutInk(this.activeDialogAnchor_); |
| 183 }.bind(this)); | 183 }.bind(this)); |
| 184 }.bind(this)); | 184 }.bind(this)); |
| 185 }, | 185 }, |
| 186 }); | 186 }); |
| OLD | NEW |