| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 | 6 |
| 7 var OptionsPage = options.OptionsPage; | 7 var OptionsPage = options.OptionsPage; |
| 8 | 8 |
| 9 // | 9 // |
| 10 // AdvancedOptions class | 10 // AdvancedOptions class |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 OptionsPage.prototype.initializePage.call(this); | 29 OptionsPage.prototype.initializePage.call(this); |
| 30 | 30 |
| 31 // Set up click handlers for buttons. | 31 // Set up click handlers for buttons. |
| 32 $('privacyContentSettingsButton').onclick = function(event) { | 32 $('privacyContentSettingsButton').onclick = function(event) { |
| 33 OptionsPage.showPageByName('content'); | 33 OptionsPage.showPageByName('content'); |
| 34 OptionsPage.showTab($('cookies-nav-tab')); | 34 OptionsPage.showTab($('cookies-nav-tab')); |
| 35 chrome.send('coreOptionsUserMetricsAction', | 35 chrome.send('coreOptionsUserMetricsAction', |
| 36 ['Options_ContentSettings']); | 36 ['Options_ContentSettings']); |
| 37 }; | 37 }; |
| 38 $('privacyClearDataButton').onclick = function(event) { | 38 $('privacyClearDataButton').onclick = function(event) { |
| 39 OptionsPage.showPageByName('clearBrowserDataPage'); | 39 OptionsPage.showOverlay('clearBrowserDataOverlay'); |
| 40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']); | 40 chrome.send('coreOptionsUserMetricsAction', ['Options_ClearData']); |
| 41 }; | 41 }; |
| 42 | 42 |
| 43 // 'metricsReportingEnabled' element is only present on Chrome branded | 43 // 'metricsReportingEnabled' element is only present on Chrome branded |
| 44 // builds. | 44 // builds. |
| 45 if ($('metricsReportingEnabled')) { | 45 if ($('metricsReportingEnabled')) { |
| 46 $('metricsReportingEnabled').onclick = function(event) { | 46 $('metricsReportingEnabled').onclick = function(event) { |
| 47 chrome.send('metricsReportingCheckboxAction', | 47 chrome.send('metricsReportingCheckboxAction', |
| 48 [String(event.target.checked)]); | 48 [String(event.target.checked)]); |
| 49 }; | 49 }; |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 var proxySectionElm = $('remoting-section'); | 263 var proxySectionElm = $('remoting-section'); |
| 264 proxySectionElm.parentNode.removeChild(proxySectionElm); | 264 proxySectionElm.parentNode.removeChild(proxySectionElm); |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 // Export | 267 // Export |
| 268 return { | 268 return { |
| 269 AdvancedOptions: AdvancedOptions | 269 AdvancedOptions: AdvancedOptions |
| 270 }; | 270 }; |
| 271 | 271 |
| 272 }); | 272 }); |
| OLD | NEW |