| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 chrome.send('autoOpenFileTypesAction'); | 53 chrome.send('autoOpenFileTypesAction'); |
| 54 }; | 54 }; |
| 55 $('fontSettingsCustomizeFontsButton').onclick = function(event) { | 55 $('fontSettingsCustomizeFontsButton').onclick = function(event) { |
| 56 OptionsPage.showPageByName('fontSettings'); | 56 OptionsPage.showPageByName('fontSettings'); |
| 57 chrome.send('coreOptionsUserMetricsAction', ['Options_FontSettings']); | 57 chrome.send('coreOptionsUserMetricsAction', ['Options_FontSettings']); |
| 58 }; | 58 }; |
| 59 $('defaultFontSize').onchange = function(event) { | 59 $('defaultFontSize').onchange = function(event) { |
| 60 chrome.send('defaultFontSizeAction', | 60 chrome.send('defaultFontSizeAction', |
| 61 [String(event.target.options[event.target.selectedIndex].value)]); | 61 [String(event.target.options[event.target.selectedIndex].value)]); |
| 62 }; | 62 }; |
| 63 $('language-button').onclick = function(event) { |
| 64 OptionsPage.showPageByName('language'); |
| 65 chrome.send('coreOptionsUserMetricsAction', |
| 66 ['Options_LanuageAndSpellCheckSettings']); |
| 67 }; |
| 63 | 68 |
| 64 if (cr.isWindows || cr.isMac) { | 69 if (cr.isWindows || cr.isMac) { |
| 65 $('certificatesManageButton').onclick = function(event) { | 70 $('certificatesManageButton').onclick = function(event) { |
| 66 chrome.send('showManageSSLCertificates'); | 71 chrome.send('showManageSSLCertificates'); |
| 67 }; | 72 }; |
| 68 } else { | 73 } else { |
| 69 $('certificatesManageButton').onclick = function(event) { | 74 $('certificatesManageButton').onclick = function(event) { |
| 70 OptionsPage.showPageByName('certificateManager'); | 75 OptionsPage.showPageByName('certificateManager'); |
| 71 OptionsPage.showTab($('personal-certs-nav-tab')); | 76 OptionsPage.showTab($('personal-certs-nav-tab')); |
| 72 chrome.send('coreOptionsUserMetricsAction', | 77 chrome.send('coreOptionsUserMetricsAction', |
| (...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 var proxySectionElm = $('remoting-section'); | 268 var proxySectionElm = $('remoting-section'); |
| 264 proxySectionElm.parentNode.removeChild(proxySectionElm); | 269 proxySectionElm.parentNode.removeChild(proxySectionElm); |
| 265 }; | 270 }; |
| 266 | 271 |
| 267 // Export | 272 // Export |
| 268 return { | 273 return { |
| 269 AdvancedOptions: AdvancedOptions | 274 AdvancedOptions: AdvancedOptions |
| 270 }; | 275 }; |
| 271 | 276 |
| 272 }); | 277 }); |
| OLD | NEW |