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

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

Issue 2793463002: MD Settings: Restore focus after closing various dialogs. (Closed)
Patch Set: Nits. 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 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-privacy-page' is the settings page containing privacy and 7 * 'settings-privacy-page' is the settings page containing privacy and
8 * security settings. 8 * security settings.
9 */ 9 */
10 (function() { 10 (function() {
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 }, 218 },
219 219
220 /** @private */ 220 /** @private */
221 onClearBrowsingDataTap_: function() { 221 onClearBrowsingDataTap_: function() {
222 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); 222 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA);
223 }, 223 },
224 224
225 /** @private */ 225 /** @private */
226 onDialogClosed_: function() { 226 onDialogClosed_: function() {
227 settings.navigateToPreviousRoute(); 227 settings.navigateToPreviousRoute();
228 this.$.clearBrowsingDataTrigger.focus();
228 }, 229 },
229 230
230 /** @private */ 231 /** @private */
231 onHelpTap_: function() { 232 onHelpTap_: function() {
232 window.open( 233 window.open(
233 'https://support.google.com/chrome/?p=settings_manage_exceptions'); 234 'https://support.google.com/chrome/?p=settings_manage_exceptions');
234 }, 235 },
235 236
236 /** @private */ 237 /** @private */
237 onSberChange_: function() { 238 onSberChange_: function() {
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 : this.i18n('siteSettingsBlocked'); 322 : this.i18n('siteSettingsBlocked');
322 }, 323 },
323 324
324 /** @private */ 325 /** @private */
325 getProtectedContentIdentifiersLabel_: function(value) { 326 getProtectedContentIdentifiersLabel_: function(value) {
326 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') 327 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers')
327 : this.i18n('siteSettingsBlocked'); 328 : this.i18n('siteSettingsBlocked');
328 }, 329 },
329 }); 330 });
330 })(); 331 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698