OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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.showOverlay('clearBrowserDataOverlay'); | 39 OptionsPage.showPageByName('clearBrowserDataPage'); |
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 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
266 var proxySectionElm = $('remoting-section'); | 266 var proxySectionElm = $('remoting-section'); |
267 proxySectionElm.parentNode.removeChild(proxySectionElm); | 267 proxySectionElm.parentNode.removeChild(proxySectionElm); |
268 }; | 268 }; |
269 | 269 |
270 // Export | 270 // Export |
271 return { | 271 return { |
272 AdvancedOptions: AdvancedOptions | 272 AdvancedOptions: AdvancedOptions |
273 }; | 273 }; |
274 | 274 |
275 }); | 275 }); |
OLD | NEW |