| 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 // Mapping between font list ids and the generic family setting they | 5 // Mapping between font list ids and the generic family setting they |
| 6 // represent. | 6 // represent. |
| 7 var genericFamilies = [ | 7 var genericFamilies = [ |
| 8 { fontList: 'standardFontList', name: 'standard' }, | 8 { fontList: 'standardFontList', name: 'standard' }, |
| 9 { fontList: 'serifFontList', name: 'serif' }, | 9 { fontList: 'serifFontList', name: 'serif' }, |
| 10 { fontList: 'sansSerifFontList', name: 'sansserif' }, | 10 { fontList: 'sansSerifFontList', name: 'sansserif' }, |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 240 initFontSizePref('minFontSize', | 240 initFontSizePref('minFontSize', |
| 241 chrome.fontSettings.getMinimumFontSize, | 241 chrome.fontSettings.getMinimumFontSize, |
| 242 chrome.fontSettings.setMinimumFontSize, | 242 chrome.fontSettings.setMinimumFontSize, |
| 243 chrome.fontSettings.onMinimumFontSizeChanged); | 243 chrome.fontSettings.onMinimumFontSizeChanged); |
| 244 | 244 |
| 245 var clearButton = document.getElementById('clearButton'); | 245 var clearButton = document.getElementById('clearButton'); |
| 246 clearButton.addEventListener('click', clearAllSettings); | 246 clearButton.addEventListener('click', clearAllSettings); |
| 247 } | 247 } |
| 248 | 248 |
| 249 document.addEventListener('DOMContentLoaded', init); | 249 document.addEventListener('DOMContentLoaded', init); |
| OLD | NEW |