| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |