| 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 11 matching lines...) Expand all Loading... |
| 22 __proto__: options.OptionsPage.prototype, | 22 __proto__: options.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 click handlers for buttons. | 29 // Setup click handlers for buttons. |
| 30 $('privacyContentSettingsButton').onclick = function(event) { | 30 $('privacyContentSettingsButton').onclick = function(event) { |
| 31 OptionsPage.showPageByName('content'); | 31 OptionsPage.showPageByName('content'); |
| 32 OptionsPage.showTab($('cookies-nav-tab')); |
| 32 }; | 33 }; |
| 33 $('privacyClearDataButton').onclick = function(event) { | 34 $('privacyClearDataButton').onclick = function(event) { |
| 34 OptionsPage.showOverlay('clearBrowserDataOverlay'); | 35 OptionsPage.showOverlay('clearBrowserDataOverlay'); |
| 35 }; | 36 }; |
| 36 $('downloadLocationBrowseButton').onclick = function(event) { | 37 $('downloadLocationBrowseButton').onclick = function(event) { |
| 37 chrome.send('selectDownloadLocation'); | 38 chrome.send('selectDownloadLocation'); |
| 38 }; | 39 }; |
| 39 $('autoOpenFileTypesResetToDefault').onclick = function(event) { | 40 $('autoOpenFileTypesResetToDefault').onclick = function(event) { |
| 40 chrome.send('autoOpenFileTypesAction'); | 41 chrome.send('autoOpenFileTypesAction'); |
| 41 }; | 42 }; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { | 100 AdvancedOptions.SetUseSSL2CheckboxState = function(checked) { |
| 100 $('sslUseSSL2').checked = checked; | 101 $('sslUseSSL2').checked = checked; |
| 101 }; | 102 }; |
| 102 | 103 |
| 103 // Export | 104 // Export |
| 104 return { | 105 return { |
| 105 AdvancedOptions: AdvancedOptions | 106 AdvancedOptions: AdvancedOptions |
| 106 }; | 107 }; |
| 107 | 108 |
| 108 }); | 109 }); |
| OLD | NEW |