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

Side by Side Diff: chrome/browser/resources/settings/reset_page/reset_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 6 * @fileoverview
7 * 'settings-reset-page' is the settings page containing reset 7 * 'settings-reset-page' is the settings page containing reset
8 * settings. 8 * settings.
9 * 9 *
10 * Example: 10 * Example:
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 /** @private */ 53 /** @private */
54 onShowResetProfileDialog_: function() { 54 onShowResetProfileDialog_: function() {
55 settings.navigateTo(settings.Route.RESET_DIALOG, 55 settings.navigateTo(settings.Route.RESET_DIALOG,
56 new URLSearchParams('origin=userclick')); 56 new URLSearchParams('origin=userclick'));
57 }, 57 },
58 58
59 /** @private */ 59 /** @private */
60 onResetProfileDialogClose_: function() { 60 onResetProfileDialogClose_: function() {
61 settings.navigateToPreviousRoute(); 61 settings.navigateToPreviousRoute();
62 this.$.resetProfileArrow.focus(); 62 cr.ui.focusWithoutInk(assert(this.$.resetProfileArrow));
63 }, 63 },
64 64
65 // <if expr="chromeos"> 65 // <if expr="chromeos">
66 /** 66 /**
67 * @param {!Event} e 67 * @param {!Event} e
68 * @private 68 * @private
69 */ 69 */
70 onShowPowerwashDialog_: function(e) { 70 onShowPowerwashDialog_: function(e) {
71 e.preventDefault(); 71 e.preventDefault();
72 this.showPowerwashDialog_ = true; 72 this.showPowerwashDialog_ = true;
73 }, 73 },
74 74
75 /** @private */ 75 /** @private */
76 onPowerwashDialogClose_: function() { 76 onPowerwashDialogClose_: function() {
77 this.showPowerwashDialog_ = false; 77 this.showPowerwashDialog_ = false;
78 this.$.powerwashArrow.focus(); 78 cr.ui.focusWithoutInk(assert(this.$.powerwashArrow));
79 }, 79 },
80 // </if> 80 // </if>
81 }); 81 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698