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

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

Issue 3584019: dom-ui settings: Add setting for setting the minimum font size.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 2 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) 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 * FontSettings class 10 * FontSettings class
(...skipping 25 matching lines...) Expand all
36 $('fontSettingsSerifSizeSelector').initializeValues( 36 $('fontSettingsSerifSizeSelector').initializeValues(
37 templateData.fontSettingsFontSizeList) 37 templateData.fontSettingsFontSizeList)
38 $('fontSettingsSansSerifSelector').initializeValues( 38 $('fontSettingsSansSerifSelector').initializeValues(
39 templateData.fontSettingsFontList) 39 templateData.fontSettingsFontList)
40 $('fontSettingsSansSerifSizeSelector').initializeValues( 40 $('fontSettingsSansSerifSizeSelector').initializeValues(
41 templateData.fontSettingsFontSizeList) 41 templateData.fontSettingsFontSizeList)
42 $('fontSettingsFixedWidthSelector').initializeValues( 42 $('fontSettingsFixedWidthSelector').initializeValues(
43 templateData.fontSettingsFontList) 43 templateData.fontSettingsFontList)
44 $('fontSettingsFixedWidthSizeSelector').initializeValues( 44 $('fontSettingsFixedWidthSizeSelector').initializeValues(
45 templateData.fontSettingsFontSizeList) 45 templateData.fontSettingsFontSizeList)
46 $('fontSettingsMinimumSizeSelector').initializeValues(
47 templateData.fontSettingsMinimumFontSizeList)
46 $('fontSettingsEncodingSelector').initializeValues( 48 $('fontSettingsEncodingSelector').initializeValues(
47 templateData.fontSettingsEncodingList) 49 templateData.fontSettingsEncodingList)
48 } 50 }
49 }; 51 };
50 52
51 FontSettings.setupFontPreview = function(id, font, size) { 53 FontSettings.setupFontPreview = function(id, font, size) {
52 $(id).textContent = font + " " + size; 54 $(id).textContent = font + " " + size;
53 $(id).style.fontFamily = font; 55 $(id).style.fontFamily = font;
54 $(id).style.fontSize = size + "pt"; 56 $(id).style.fontSize = size + "pt";
55 } 57 }
(...skipping 11 matching lines...) Expand all
67 this.setupFontPreview('fontSettingsFixedWidthPreview', text, size); 69 this.setupFontPreview('fontSettingsFixedWidthPreview', text, size);
68 } 70 }
69 71
70 // Export 72 // Export
71 return { 73 return {
72 FontSettings: FontSettings 74 FontSettings: FontSettings
73 }; 75 };
74 76
75 }); 77 });
76 78
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/font_settings.html ('k') | chrome/browser/resources/options/font_settings_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698