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

Side by Side Diff: chrome/browser/resources/options/font_settings.js

Issue 426723004: options: Remove a bunch of useless: (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
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 cr.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 /** 9 /**
10 * FontSettings class 10 * FontSettings class
11 * Encapsulated handling of the 'Fonts and Encoding' page. 11 * Encapsulated handling of the 'Fonts and Encoding' page.
12 * @class 12 * @class
13 */ 13 */
14 function FontSettings() { 14 function FontSettings() {
15 OptionsPage.call(this, 15 OptionsPage.call(this,
16 'fonts', 16 'fonts',
17 loadTimeData.getString('fontSettingsPageTabTitle'), 17 loadTimeData.getString('fontSettingsPageTabTitle'),
18 'font-settings'); 18 'font-settings');
19 } 19 }
20 20
21 cr.addSingletonGetter(FontSettings); 21 cr.addSingletonGetter(FontSettings);
22 22
23 FontSettings.prototype = { 23 FontSettings.prototype = {
24 __proto__: OptionsPage.prototype, 24 __proto__: OptionsPage.prototype,
25 25
26 /** 26 /** @override */
27 * Initialize the page.
28 */
29 initializePage: function() { 27 initializePage: function() {
30 OptionsPage.prototype.initializePage.call(this); 28 OptionsPage.prototype.initializePage.call(this);
31 29
32 var standardFontRange = $('standard-font-size'); 30 var standardFontRange = $('standard-font-size');
33 standardFontRange.valueMap = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20, 31 standardFontRange.valueMap = [9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 20,
34 22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 56, 64, 72]; 32 22, 24, 26, 28, 30, 32, 34, 36, 40, 44, 48, 56, 64, 72];
35 standardFontRange.addEventListener( 33 standardFontRange.addEventListener(
36 'change', this.standardRangeChanged_.bind(this, standardFontRange)); 34 'change', this.standardRangeChanged_.bind(this, standardFontRange));
37 standardFontRange.addEventListener( 35 standardFontRange.addEventListener(
38 'input', this.standardRangeChanged_.bind(this, standardFontRange)); 36 'input', this.standardRangeChanged_.bind(this, standardFontRange));
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 $('advanced-font-settings-install').hidden = available; 248 $('advanced-font-settings-install').hidden = available;
251 $('advanced-font-settings-options').hidden = !available; 249 $('advanced-font-settings-options').hidden = !available;
252 }; 250 };
253 251
254 // Export 252 // Export
255 return { 253 return {
256 FontSettings: FontSettings 254 FontSettings: FontSettings
257 }; 255 };
258 }); 256 });
259 257
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/factory_reset_overlay.js ('k') | chrome/browser/resources/options/home_page_overlay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698