| 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 // | 5 // |
| 6 // AdvancedOptions class | 6 // AdvancedOptions class |
| 7 // Encapsulated handling of advanced options page. | 7 // Encapsulated handling of advanced options page. |
| 8 // | 8 // |
| 9 function AdvancedOptions(model) { | 9 function AdvancedOptions(model) { |
| 10 OptionsPage.call(this, 'advanced', templateData.advancedPage, 'advancedPage'); | 10 OptionsPage.call(this, 'advanced', templateData.advancedPage, 'advancedPage'); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 // Inherit AdvancedOptions from OptionsPage. | 21 // Inherit AdvancedOptions from OptionsPage. |
| 22 __proto__: OptionsPage.prototype, | 22 __proto__: OptionsPage.prototype, |
| 23 | 23 |
| 24 // Initialize AdvancedOptions page. | 24 // Initialize AdvancedOptions page. |
| 25 initializePage: function() { | 25 initializePage: function() { |
| 26 // Call base class implementation to starts preference initialization. | 26 // Call base class implementation to starts preference initialization. |
| 27 OptionsPage.prototype.initializePage.call(this); | 27 OptionsPage.prototype.initializePage.call(this); |
| 28 | 28 |
| 29 // Setup function handlers for buttons. | 29 // Setup function handlers for buttons. |
| 30 $('privacyContentSettingsButton').onclick = function(event) { | 30 $('privacyContentSettingsButton').onclick = function(event) { |
| 31 // TODO(csilv): spawn content settings sub-dialog. | 31 OptionsPage.showPageByName('content'); |
| 32 }; | 32 }; |
| 33 $('privacyClearDataButton').onclick = function(event) { | 33 $('privacyClearDataButton').onclick = function(event) { |
| 34 // TODO(csilv): spawn clear data overlay dialog. | 34 // TODO(csilv): spawn clear data overlay dialog. |
| 35 }; | 35 }; |
| 36 $('proxiesConfigureButton').onclick = function(event) { | 36 $('proxiesConfigureButton').onclick = function(event) { |
| 37 if (cr.isMac) { | 37 if (cr.isMac) { |
| 38 chrome.send('showNetworkProxySettings'); | 38 chrome.send('showNetworkProxySettings'); |
| 39 } else { | 39 } else { |
| 40 // TODO(csilv): spawn network proxy settings sub-dialog. | 40 // TODO(csilv): spawn network proxy settings sub-dialog. |
| 41 } | 41 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 57 } | 57 } |
| 58 }; | 58 }; |
| 59 | 59 |
| 60 // Hide tabsToLinks checkbox on non-Mac platforms. | 60 // Hide tabsToLinks checkbox on non-Mac platforms. |
| 61 if (!cr.isMac) { | 61 if (!cr.isMac) { |
| 62 $('tabsToLinksCheckbox').style.display = 'none'; | 62 $('tabsToLinksCheckbox').style.display = 'none'; |
| 63 } | 63 } |
| 64 }, | 64 }, |
| 65 }; | 65 }; |
| 66 | 66 |
| OLD | NEW |