| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 73         readOnly: true, | 73         readOnly: true, | 
| 74         type: Number, | 74         type: Number, | 
| 75         value: FONT_SIZE_RANGE_.length - 1, | 75         value: FONT_SIZE_RANGE_.length - 1, | 
| 76       }, | 76       }, | 
| 77 | 77 | 
| 78       /** | 78       /** | 
| 79        * The interactive value of the minimum font size slider. | 79        * The interactive value of the minimum font size slider. | 
| 80        * @private | 80        * @private | 
| 81        */ | 81        */ | 
| 82       immediateMinimumSizeIndex_: { | 82       immediateMinimumSizeIndex_: { | 
|  | 83         observer: 'immediateMinimumSizeIndexChanged_', | 
| 83         type: Number, | 84         type: Number, | 
| 84       }, | 85       }, | 
| 85 | 86 | 
| 86       /** | 87       /** | 
| 87        * The interactive value of the font size slider. | 88        * The interactive value of the font size slider. | 
| 88        * @private | 89        * @private | 
| 89        */ | 90        */ | 
| 90       immediateSizeIndex_: { | 91       immediateSizeIndex_: { | 
|  | 92         observer: 'immediateSizeIndexChanged_', | 
| 91         type: Number, | 93         type: Number, | 
| 92       }, | 94       }, | 
| 93 | 95 | 
| 94       /** | 96       /** | 
| 95        * Reasonable, minimum font sizes. | 97        * Reasonable, minimum font sizes. | 
| 96        * @private {!Array<number>} | 98        * @private {!Array<number>} | 
| 97        */ | 99        */ | 
| 98       minimumFontSizeRange_: { | 100       minimumFontSizeRange_: { | 
| 99         readOnly: true, | 101         readOnly: true, | 
| 100         type: Array, | 102         type: Array, | 
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 226      * @param {string} fontFamily The name of the font family use. | 228      * @param {string} fontFamily The name of the font family use. | 
| 227      * @return {string} | 229      * @return {string} | 
| 228      * @private | 230      * @private | 
| 229      */ | 231      */ | 
| 230     computeStyle_: function(fontSize, fontFamily) { | 232     computeStyle_: function(fontSize, fontFamily) { | 
| 231       return 'font-size: ' + fontSize + "px; font-family: '" + fontFamily + | 233       return 'font-size: ' + fontSize + "px; font-family: '" + fontFamily + | 
| 232           "';"; | 234           "';"; | 
| 233     }, | 235     }, | 
| 234   }); | 236   }); | 
| 235 })(); | 237 })(); | 
| OLD | NEW | 
|---|