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

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

Issue 2899533002: [MD settings] move <dialog> out of content (Closed)
Patch Set: review changes 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
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 })();
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/privacy_page/privacy_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698