Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Side by Side Diff: chrome/browser/resources/options/advanced_options.js

Issue 6296017: dom-ui settings: enable languages & spell checker settings for all platforms.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: code review tweak Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698