Chromium Code Reviews| 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 965df6ef49566a35de1148e417b97922283bbfbe..a6fe53c41d0a98123094054cb079852918bb6b64 100644 |
| --- a/chrome/browser/resources/options/font_settings.js |
| +++ b/chrome/browser/resources/options/font_settings.js |
| @@ -57,6 +57,10 @@ cr.define('options', function() { |
| $('font-settings-confirm').onclick = function() { |
| OptionsPage.closeOverlay(); |
| }; |
| + |
| + $('advanced-font-settings-options').onclick = function() { |
| + chrome.send('openAdvancedFontSettingsOptions'); |
| + }; |
| }, |
| /** |
| @@ -234,6 +238,16 @@ cr.define('options', function() { |
| null, true); |
| }; |
|
Dan Beam
2013/10/23 18:04:00
/**
* A doc comment goes here.
* @param {boolean
|
| + FontSettings.notifyAdvancedFontSettingsAvailability = function(available) { |
|
Dan Beam
2013/10/23 18:04:00
$('advanced-font-settings-install').hidden = avail
falken
2013/10/24 12:09:41
Oops, of course. Done.
|
| + if (available) { |
| + $('advanced-font-settings-install').hidden = true; |
| + $('advanced-font-settings-options').hidden = false; |
| + } else { |
| + $('advanced-font-settings-install').hidden = false; |
| + $('advanced-font-settings-options').hidden = true; |
| + } |
| + } |
|
Dan Beam
2013/10/23 18:04:00
};
falken
2013/10/24 12:09:41
Done.
|
| + |
| // Export |
| return { |
| FontSettings: FontSettings |