| OLD | NEW |
| 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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 183 if (dialog && !dialog.open) | 183 if (dialog && !dialog.open) |
| 184 dialog.showModal(); | 184 dialog.showModal(); |
| 185 }, | 185 }, |
| 186 | 186 |
| 187 /** @private */ | 187 /** @private */ |
| 188 closeDoNotTrackDialog_: function() { | 188 closeDoNotTrackDialog_: function() { |
| 189 this.$$('#confirmDoNotTrackDialog').close(); | 189 this.$$('#confirmDoNotTrackDialog').close(); |
| 190 this.showDoNotTrackDialog_ = false; | 190 this.showDoNotTrackDialog_ = false; |
| 191 }, | 191 }, |
| 192 | 192 |
| 193 /** @private */ |
| 194 onDoNotTrackDialogClosed_: function() { |
| 195 cr.ui.focusWithoutInk(this.$.doNotTrack); |
| 196 }, |
| 197 |
| 193 /** | 198 /** |
| 194 * Handles the shared proxy confirmation dialog 'Confirm' button. | 199 * Handles the shared proxy confirmation dialog 'Confirm' button. |
| 195 * @private | 200 * @private |
| 196 */ | 201 */ |
| 197 onDoNotTrackDialogConfirm_: function() { | 202 onDoNotTrackDialogConfirm_: function() { |
| 198 /** @type {!SettingsToggleButtonElement} */ (this.$.doNotTrack) | 203 /** @type {!SettingsToggleButtonElement} */ (this.$.doNotTrack) |
| 199 .sendPrefChange(); | 204 .sendPrefChange(); |
| 200 this.closeDoNotTrackDialog_(); | 205 this.closeDoNotTrackDialog_(); |
| 201 }, | 206 }, |
| 202 | 207 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 : this.i18n('siteSettingsBlocked'); | 333 : this.i18n('siteSettingsBlocked'); |
| 329 }, | 334 }, |
| 330 | 335 |
| 331 /** @private */ | 336 /** @private */ |
| 332 getProtectedContentIdentifiersLabel_: function(value) { | 337 getProtectedContentIdentifiersLabel_: function(value) { |
| 333 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') | 338 return value ? this.i18n('siteSettingsProtectedContentEnableIdentifiers') |
| 334 : this.i18n('siteSettingsBlocked'); | 339 : this.i18n('siteSettingsBlocked'); |
| 335 }, | 340 }, |
| 336 }); | 341 }); |
| 337 })(); | 342 })(); |
| OLD | NEW |