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

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

Issue 2842303004: MD Settings: update dialogs to focus without ink when using mouse (Closed)
Patch Set: merge Created 3 years, 7 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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(assert(this.activeDialogAnchor_));
183 }.bind(this)); 183 }.bind(this));
184 }.bind(this)); 184 }.bind(this));
185 }, 185 },
186 }); 186 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698