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

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

Issue 6017002: DOMUI Settings: UTH: Remove the 'Reset to Defaults' button. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 10 years 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) 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 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 $('defaultZoomLevel').onchange = function(event) { 59 $('defaultZoomLevel').onchange = function(event) {
60 chrome.send('defaultZoomLevelAction', 60 chrome.send('defaultZoomLevelAction',
61 [String(event.target.options[event.target.selectedIndex].value)]); 61 [String(event.target.options[event.target.selectedIndex].value)]);
62 } 62 }
63 $('optionsReset').onclick = function(event) {
64 AlertOverlay.show(undefined,
65 localStrings.getString('optionsResetMessage'),
66 localStrings.getString('optionsResetOkLabel'),
67 localStrings.getString('optionsResetCancelLabel'),
68 function() { chrome.send('resetToDefaults'); });
69 }
70 63
71 if (cr.isWindows || cr.isMac) { 64 if (cr.isWindows || cr.isMac) {
72 $('certificatesManageButton').onclick = function(event) { 65 $('certificatesManageButton').onclick = function(event) {
73 chrome.send('showManageSSLCertificates'); 66 chrome.send('showManageSSLCertificates');
74 }; 67 };
75 } else { 68 } else {
76 $('certificatesManageButton').onclick = function(event) { 69 $('certificatesManageButton').onclick = function(event) {
77 OptionsPage.showPageByName('certificateManager'); 70 OptionsPage.showPageByName('certificateManager');
78 OptionsPage.showTab($('personal-certs-nav-tab')); 71 OptionsPage.showTab($('personal-certs-nav-tab'));
79 chrome.send('coreOptionsUserMetricsAction', 72 chrome.send('coreOptionsUserMetricsAction',
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
234 $('cloud-print-proxy-section').style.display = 'none'; 227 $('cloud-print-proxy-section').style.display = 'none';
235 } 228 }
236 }; 229 };
237 230
238 // Export 231 // Export
239 return { 232 return {
240 AdvancedOptions: AdvancedOptions 233 AdvancedOptions: AdvancedOptions
241 }; 234 };
242 235
243 }); 236 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/browser/ui/options/options_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698