| 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 /** | 5 /** |
| 6 * 'settings-appearance-page' is the settings page containing appearance | 6 * 'settings-appearance-page' is the settings page containing appearance |
| 7 * settings. | 7 * settings. |
| 8 * | 8 * |
| 9 * Example: | 9 * Example: |
| 10 * | 10 * |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 | 152 |
| 153 /** | 153 /** |
| 154 * @param {boolean} enabled Whether the theme reset is available. | 154 * @param {boolean} enabled Whether the theme reset is available. |
| 155 */ | 155 */ |
| 156 setResetThemeEnabled: function(enabled) { | 156 setResetThemeEnabled: function(enabled) { |
| 157 this.allowResetTheme_ = enabled; | 157 this.allowResetTheme_ = enabled; |
| 158 }, | 158 }, |
| 159 | 159 |
| 160 /** @private */ | 160 /** @private */ |
| 161 onCustomizeFontsTap_: function() { | 161 onCustomizeFontsTap_: function() { |
| 162 this.$.pages.setSubpageChain(['appearance-fonts']); | 162 settings.navigateTo(settings.Route.FONTS); |
| 163 }, | 163 }, |
| 164 | 164 |
| 165 /** @private */ | 165 /** @private */ |
| 166 openThemesGallery_: function() { | 166 openThemesGallery_: function() { |
| 167 window.open(loadTimeData.getString('themesGalleryUrl')); | 167 window.open(loadTimeData.getString('themesGalleryUrl')); |
| 168 }, | 168 }, |
| 169 | 169 |
| 170 <if expr="chromeos"> | 170 <if expr="chromeos"> |
| 171 /** | 171 /** |
| 172 * ChromeOS only. | 172 * ChromeOS only. |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 * @param {number} percent The integer percentage of the page zoom. | 214 * @param {number} percent The integer percentage of the page zoom. |
| 215 * @private | 215 * @private |
| 216 */ | 216 */ |
| 217 zoomLevelChanged_: function(percent) { | 217 zoomLevelChanged_: function(percent) { |
| 218 // The |percent| may be undefined on startup. | 218 // The |percent| may be undefined on startup. |
| 219 if (percent === undefined) | 219 if (percent === undefined) |
| 220 return; | 220 return; |
| 221 chrome.settingsPrivate.setDefaultZoomPercent(percent); | 221 chrome.settingsPrivate.setDefaultZoomPercent(percent); |
| 222 }, | 222 }, |
| 223 }); | 223 }); |
| OLD | NEW |