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

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

Issue 6155008: DOMUI: Implement the new Fonts and Encoding page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fix 3. 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 var AddStartupPageOverlay = options.AddStartupPageOverlay; 5 var AddStartupPageOverlay = options.AddStartupPageOverlay;
6 var AdvancedOptions = options.AdvancedOptions; 6 var AdvancedOptions = options.AdvancedOptions;
7 var AlertOverlay = options.AlertOverlay; 7 var AlertOverlay = options.AlertOverlay;
8 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay; 8 var AutoFillEditAddressOverlay = options.AutoFillEditAddressOverlay;
9 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay; 9 var AutoFillEditCreditCardOverlay = options.AutoFillEditCreditCardOverlay;
10 var AutoFillOptions = options.AutoFillOptions; 10 var AutoFillOptions = options.AutoFillOptions;
(...skipping 23 matching lines...) Expand all
34 // Decorate the existing elements in the document. 34 // Decorate the existing elements in the document.
35 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox); 35 cr.ui.decorate('input[pref][type=checkbox]', options.PrefCheckbox);
36 cr.ui.decorate('input[pref][type=number]', options.PrefNumber); 36 cr.ui.decorate('input[pref][type=number]', options.PrefNumber);
37 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio); 37 cr.ui.decorate('input[pref][type=radio]', options.PrefRadio);
38 cr.ui.decorate('input[pref][type=range]', options.PrefRange); 38 cr.ui.decorate('input[pref][type=range]', options.PrefRange);
39 cr.ui.decorate('select[pref]', options.PrefSelect); 39 cr.ui.decorate('select[pref]', options.PrefSelect);
40 cr.ui.decorate('input[pref][type=text]', options.PrefTextField); 40 cr.ui.decorate('input[pref][type=text]', options.PrefTextField);
41 cr.ui.decorate('input[pref][type=url]', options.PrefTextField); 41 cr.ui.decorate('input[pref][type=url]', options.PrefTextField);
42 cr.ui.decorate('#content-settings-page input[type=radio]', 42 cr.ui.decorate('#content-settings-page input[type=radio]',
43 options.ContentSettingsRadio); 43 options.ContentSettingsRadio);
44 cr.ui.decorate('#fontSettingsMinimumSizeSelector',
45 options.MinimumFontSizeSelect);
46 44
47 var menuOffPattern = /(^\?|&)menu=off($|&)/; 45 var menuOffPattern = /(^\?|&)menu=off($|&)/;
48 var menuDisabled = menuOffPattern.test(window.location.search); 46 var menuDisabled = menuOffPattern.test(window.location.search);
49 document.documentElement.setAttribute('hide-menu', menuDisabled); 47 document.documentElement.setAttribute('hide-menu', menuDisabled);
50 48
51 localStrings = new LocalStrings(); 49 localStrings = new LocalStrings();
52 50
53 OptionsPage.register(SearchPage.getInstance()); 51 OptionsPage.register(SearchPage.getInstance());
54 52
55 OptionsPage.register(BrowserOptions.getInstance()); 53 OptionsPage.register(BrowserOptions.getInstance());
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 document.documentElement.setAttribute('toolkit', 'gtk'); 173 document.documentElement.setAttribute('toolkit', 'gtk');
176 if (cr.isViews) 174 if (cr.isViews)
177 document.documentElement.setAttribute('toolkit', 'views'); 175 document.documentElement.setAttribute('toolkit', 'views');
178 } 176 }
179 177
180 document.addEventListener('DOMContentLoaded', load); 178 document.addEventListener('DOMContentLoaded', load);
181 179
182 window.onpopstate = function(e) { 180 window.onpopstate = function(e) {
183 options.OptionsPage.setState(e.state); 181 options.OptionsPage.setState(e.state);
184 }; 182 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/options.html ('k') | chrome/browser/resources/options/pref_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698