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

Unified Diff: chrome/browser/resources/options/font_settings.js

Issue 6150003: DOMUI: Implement the i18n-options attribute that allows the client to load (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nit fix. Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
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 50445ce5ad2983e54e7e075de8836f557841b5f2..e82863516f1b3a8099128350ff28cedeaaa4d05d 100644
--- a/chrome/browser/resources/options/font_settings.js
+++ b/chrome/browser/resources/options/font_settings.js
@@ -12,15 +12,15 @@ cr.define('options', function() {
* @class
*/
function FontSettings() {
- OptionsPage.call(this, 'fontSettings',
+ OptionsPage.call(this,
+ 'fontSettings',
templateData.fontSettingsTitle,
- 'fontSettings');
+ 'font-settings');
}
cr.addSingletonGetter(FontSettings);
FontSettings.prototype = {
- // Inherit FontSettings from OptionsPage.
__proto__: OptionsPage.prototype,
/**
@@ -29,24 +29,6 @@ cr.define('options', function() {
initializePage: function() {
// Call base class implementation to starts preference initialization.
OptionsPage.prototype.initializePage.call(this);
-
- // Initialize values for selector controls.
- $('fontSettingsSerifSelector').initializeValues(
- templateData.fontSettingsFontList)
- $('fontSettingsSerifSizeSelector').initializeValues(
- templateData.fontSettingsFontSizeList)
- $('fontSettingsSansSerifSelector').initializeValues(
- templateData.fontSettingsFontList)
- $('fontSettingsSansSerifSizeSelector').initializeValues(
- templateData.fontSettingsFontSizeList)
- $('fontSettingsFixedWidthSelector').initializeValues(
- templateData.fontSettingsFontList)
- $('fontSettingsFixedWidthSizeSelector').initializeValues(
- templateData.fontSettingsFontSizeList)
- $('fontSettingsMinimumSizeSelector').initializeValues(
- templateData.fontSettingsMinimumFontSizeList)
- $('fontSettingsEncodingSelector').initializeValues(
- templateData.fontSettingsEncodingList)
}
};
« no previous file with comments | « chrome/browser/resources/options/font_settings.html ('k') | chrome/browser/resources/options/font_settings_ui.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698