| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 (function() { | 5 (function() { |
| 6 'use strict'; | 6 'use strict'; |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * This is the absolute difference maintained between standard and | 9 * This is the absolute difference maintained between standard and |
| 10 * fixed-width font sizes. http://crbug.com/91922. | 10 * fixed-width font sizes. http://crbug.com/91922. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 /** @private */ | 47 /** @private */ |
| 48 advancedExtensionUrl_: String, | 48 advancedExtensionUrl_: String, |
| 49 | 49 |
| 50 /** @private {!settings.FontsBrowserProxy} */ | 50 /** @private {!settings.FontsBrowserProxy} */ |
| 51 browserProxy_: Object, | 51 browserProxy_: Object, |
| 52 | 52 |
| 53 /** @private {!DropdownMenuOptionList} */ | 53 /** @private {!DropdownMenuOptionList} */ |
| 54 fontOptions_: Object, | 54 fontOptions_: Object, |
| 55 | 55 |
| 56 /** @private */ |
| 57 isGuest_: { |
| 58 type: Boolean, |
| 59 value: function() { return loadTimeData.getBoolean('isGuest'); } |
| 60 }, |
| 61 |
| 56 /** | 62 /** |
| 57 * Common font sizes. | 63 * Common font sizes. |
| 58 * @private {!Array<number>} | 64 * @private {!Array<number>} |
| 59 */ | 65 */ |
| 60 fontSizeRange_: { | 66 fontSizeRange_: { |
| 61 readOnly: true, | 67 readOnly: true, |
| 62 type: Array, | 68 type: Array, |
| 63 value: FONT_SIZE_RANGE_, | 69 value: FONT_SIZE_RANGE_, |
| 64 }, | 70 }, |
| 65 | 71 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 * @param {string} fontFamily The name of the font family use. | 161 * @param {string} fontFamily The name of the font family use. |
| 156 * @return {string} | 162 * @return {string} |
| 157 * @private | 163 * @private |
| 158 */ | 164 */ |
| 159 computeStyle_: function(fontSize, fontFamily) { | 165 computeStyle_: function(fontSize, fontFamily) { |
| 160 return 'font-size: ' + fontSize + "px; font-family: '" + fontFamily + | 166 return 'font-size: ' + fontSize + "px; font-family: '" + fontFamily + |
| 161 "';"; | 167 "';"; |
| 162 }, | 168 }, |
| 163 }); | 169 }); |
| 164 })(); | 170 })(); |
| OLD | NEW |