| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 'use strict'; | 5 'use strict'; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * @fileoverview The Advanced Font Settings Extension implementation. | 8 * @fileoverview The Advanced Font Settings Extension implementation. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 * @const | 211 * @const |
| 212 */ | 212 */ |
| 213 advancedFonts.pendingChanges = new PendingChanges(); | 213 advancedFonts.pendingChanges = new PendingChanges(); |
| 214 | 214 |
| 215 /** | 215 /** |
| 216 * Map from |genericFamily| to UI controls and data for its font setting. | 216 * Map from |genericFamily| to UI controls and data for its font setting. |
| 217 */ | 217 */ |
| 218 advancedFonts.fontSettings = null; | 218 advancedFonts.fontSettings = null; |
| 219 | 219 |
| 220 /** | 220 /** |
| 221 * Map from |fontSizeKey| to UI contols and data for its font size setting. | 221 * Map from |fontSizeKey| to UI controls and data for its font size setting. |
| 222 */ | 222 */ |
| 223 advancedFonts.fontSizeSettings = null; | 223 advancedFonts.fontSizeSettings = null; |
| 224 | 224 |
| 225 /** | 225 /** |
| 226 * Gets the font size used for |fontSizeKey|, including pending changes. Calls | 226 * Gets the font size used for |fontSizeKey|, including pending changes. Calls |
| 227 * |callback| with the result. | 227 * |callback| with the result. |
| 228 * | 228 * |
| 229 * @param {string} fontSizeKey The font size setting key. See | 229 * @param {string} fontSizeKey The font size setting key. See |
| 230 * PendingChanges.getFontSize(). | 230 * PendingChanges.getFontSize(). |
| 231 * @param {function(number, boolean)} callback The callback of form | 231 * @param {function(number, boolean)} callback The callback of form |
| (...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 759 advancedFonts.useSystemFont(); | 759 advancedFonts.useSystemFont(); |
| 760 | 760 |
| 761 advancedFonts.initFontControls(); | 761 advancedFonts.initFontControls(); |
| 762 advancedFonts.initFontSizeControls(); | 762 advancedFonts.initFontSizeControls(); |
| 763 advancedFonts.initScriptList(); | 763 advancedFonts.initScriptList(); |
| 764 | 764 |
| 765 advancedFonts.initApplyAndResetButtons(); | 765 advancedFonts.initApplyAndResetButtons(); |
| 766 }; | 766 }; |
| 767 | 767 |
| 768 document.addEventListener('DOMContentLoaded', advancedFonts.init); | 768 document.addEventListener('DOMContentLoaded', advancedFonts.init); |
| OLD | NEW |