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

Side by Side Diff: chrome/browser/resources/settings/site_settings/site_data.js

Issue 2791053002: MD Settings: Restore focus after closing dialogs, for content settings. (Closed)
Patch Set: Nit. Created 3 years, 8 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 /** 5 /**
6 * @fileoverview 6 * @fileoverview
7 * 'site-data' handles showing the local storage summary list for all sites. 7 * 'site-data' handles showing the local storage summary list for all sites.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 if (filterString.length == 0) 76 if (filterString.length == 0)
77 return loadTimeData.getString('siteSettingsCookieRemoveAll'); 77 return loadTimeData.getString('siteSettingsCookieRemoveAll');
78 return loadTimeData.getString('siteSettingsCookieRemoveAllShown'); 78 return loadTimeData.getString('siteSettingsCookieRemoveAllShown');
79 }, 79 },
80 80
81 /** @private */ 81 /** @private */
82 onCloseDialog_: function() { 82 onCloseDialog_: function() {
83 this.$.confirmDeleteDialog.close(); 83 this.$.confirmDeleteDialog.close();
84 }, 84 },
85 85
86 /** @private */
87 onConfirmDeleteDialogClosed_: function() {
88 this.$.removeShowingSites.focus();
89 },
90
86 /** 91 /**
87 * Shows a dialog to confirm the deletion of multiple sites. 92 * Shows a dialog to confirm the deletion of multiple sites.
88 * @param {!Event} e 93 * @param {!Event} e
89 * @private 94 * @private
90 */ 95 */
91 onRemoveShowingSitesTap_: function(e) { 96 onRemoveShowingSitesTap_: function(e) {
92 e.preventDefault(); 97 e.preventDefault();
93 this.confirmationDeleteMsg_ = loadTimeData.getString( 98 this.confirmationDeleteMsg_ = loadTimeData.getString(
94 'siteSettingsCookieRemoveMultipleConfirmation'); 99 'siteSettingsCookieRemoveMultipleConfirmation');
95 this.$.confirmDeleteDialog.showModal(); 100 this.$.confirmDeleteDialog.showModal();
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 132
128 /** 133 /**
129 * @param {!{model: !{item: CookieDataSummaryItem}}} event 134 * @param {!{model: !{item: CookieDataSummaryItem}}} event
130 * @private 135 * @private
131 */ 136 */
132 onSiteTap_: function(event) { 137 onSiteTap_: function(event) {
133 settings.navigateTo(settings.Route.SITE_SETTINGS_DATA_DETAILS, 138 settings.navigateTo(settings.Route.SITE_SETTINGS_DATA_DETAILS,
134 new URLSearchParams('site=' + event.model.item.site)); 139 new URLSearchParams('site=' + event.model.item.site));
135 }, 140 },
136 }); 141 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698