| Index: chrome/browser/resources/options/font_settings.js
|
| diff --git a/chrome/browser/resources/options/font_settings.js b/chrome/browser/resources/options/font_settings.js
|
| index dfde2f60e22c21b39e4e79c2b236e49f0f880863..0847dc992ec86086a69e57b192c03b2d7d1f107a 100644
|
| --- a/chrome/browser/resources/options/font_settings.js
|
| +++ b/chrome/browser/resources/options/font_settings.js
|
| @@ -34,6 +34,8 @@ cr.define('options', function() {
|
| 22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 56, 64, 72];
|
| standardFontRange.continuous = false;
|
| standardFontRange.notifyChange = this.standardRangeChanged_.bind(this);
|
| + standardFontRange.notifyPrefChange =
|
| + this.standardFontSizeChanged_.bind(this);
|
|
|
| var minimumFontRange = $('minimum-font-size');
|
| minimumFontRange.valueMap = [6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17,
|
| @@ -86,6 +88,22 @@ cr.define('options', function() {
|
| fontSampleEl = $('sans-serif-font-sample');
|
| this.setUpFontSample_(fontSampleEl, value, fontSampleEl.style.fontFamily,
|
| true);
|
| +
|
| + fontSampleEl = $('fixed-font-sample');
|
| + this.setUpFontSample_(fontSampleEl, value, fontSampleEl.style.fontFamily,
|
| + true);
|
| + },
|
| +
|
| + /**
|
| + * Sets the 'default_fixed_font_size' preference when the standard font
|
| + * size has been changed by the user.
|
| + * @param {Element} el The slider input element.
|
| + * @param {number} value The mapped value that has been saved.
|
| + * @private
|
| + */
|
| + standardFontSizeChanged_: function(el, value) {
|
| + Preferences.setIntegerPref('webkit.webprefs.default_fixed_font_size',
|
| + value, '');
|
| },
|
|
|
| /**
|
|
|