Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(411)

Side by Side Diff: chrome/browser/resources/settings/appearance_page/appearance_fonts_page.js

Issue 2676743003: MD Settings: Hide sections in guest mode (Closed)
Patch Set: Fix closure Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698