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

Side by Side Diff: chrome/browser/resources/settings/people_page/fingerprint_list.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 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 (function() { 5 (function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * The duration in ms of a background flash when a user touches the fingerprint 9 * The duration in ms of a background flash when a user touches the fingerprint
10 * sensor on this page. 10 * sensor on this page.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 /** 143 /**
144 * Opens the setup fingerprint dialog. 144 * Opens the setup fingerprint dialog.
145 * @private 145 * @private
146 */ 146 */
147 openAddFingerprintDialog_: function() { 147 openAddFingerprintDialog_: function() {
148 this.$.setupFingerprint.open(); 148 this.$.setupFingerprint.open();
149 }, 149 },
150 150
151 /** @private */ 151 /** @private */
152 onSetupFingerprintDialogClose_: function() { 152 onSetupFingerprintDialogClose_: function() {
153 this.$$('#addFingerprint').focus(); 153 cr.ui.focusWithoutInk(assert(this.$$('#addFingerprint')));
154 this.browserProxy_.startAuthentication(); 154 this.browserProxy_.startAuthentication();
155 }, 155 },
156 156
157 /** 157 /**
158 * Close the setup fingerprint dialog when the screen is unlocked. 158 * Close the setup fingerprint dialog when the screen is unlocked.
159 * @param {boolean} screenIsLocked 159 * @param {boolean} screenIsLocked
160 * @private 160 * @private
161 */ 161 */
162 onScreenLocked_: function(screenIsLocked) { 162 onScreenLocked_: function(screenIsLocked) {
163 if (!screenIsLocked && 163 if (!screenIsLocked &&
164 settings.getCurrentRoute() == settings.Route.FINGERPRINT) { 164 settings.getCurrentRoute() == settings.Route.FINGERPRINT) {
165 this.$.setupFingerprint.close(); 165 this.$.setupFingerprint.close();
166 } 166 }
167 }, 167 },
168 }); 168 });
169 })(); 169 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698