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

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

Issue 2842303004: MD Settings: update dialogs to focus without ink when using mouse (Closed)
Patch Set: different approach 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-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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 }, 235 },
236 236
237 /** @private */ 237 /** @private */
238 onClearBrowsingDataTap_: function() { 238 onClearBrowsingDataTap_: function() {
239 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA); 239 settings.navigateTo(settings.Route.CLEAR_BROWSER_DATA);
240 }, 240 },
241 241
242 /** @private */ 242 /** @private */
243 onDialogClosed_: function() { 243 onDialogClosed_: function() {
244 settings.navigateToPreviousRoute(); 244 settings.navigateToPreviousRoute();
245 this.$.clearBrowsingDataTrigger.focus(); 245 cr.ui.focusWithoutInk(this.$.clearBrowsingDataTrigger);
246 }, 246 },
247 247
248 /** @private */ 248 /** @private */
249 onSberChange_: function() { 249 onSberChange_: function() {
250 var enabled = this.$.safeBrowsingExtendedReportingControl.checked; 250 var enabled = this.$.safeBrowsingExtendedReportingControl.checked;
251 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled); 251 this.browserProxy_.setSafeBrowsingExtendedReportingEnabled(enabled);
252 }, 252 },
253 253
254 // <if expr="_google_chrome and not chromeos"> 254 // <if expr="_google_chrome and not chromeos">
255 /** @private */ 255 /** @private */
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 : this.i18n('siteSettingsBlocked'); 325 : this.i18n('siteSettingsBlocked');
326 }, 326 },
327 327
328 /** @private */ 328 /** @private */
329 getProtectedContentIdentifiersLabel_: function(value) { 329 getProtectedContentIdentifiersLabel_: function(value) {
330 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') 330 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers')
331 : this.i18n('siteSettingsBlocked'); 331 : this.i18n('siteSettingsBlocked');
332 }, 332 },
333 }); 333 });
334 })(); 334 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698