| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 | 158 |
| 159 /** | 159 /** |
| 160 * @param {boolean} enabled Whether the theme reset is available. | 160 * @param {boolean} enabled Whether the theme reset is available. |
| 161 */ | 161 */ |
| 162 setResetThemeEnabled: function(enabled) { | 162 setResetThemeEnabled: function(enabled) { |
| 163 this.allowResetTheme_ = enabled; | 163 this.allowResetTheme_ = enabled; |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 /** @private */ | 166 /** @private */ |
| 167 onCustomizeFontsTap_: function() { | 167 onCustomizeFontsTap_: function() { |
| 168 this.$.pages.setSubpageChain(['appearance-fonts']); | 168 settings.navigateTo(settings.Route.FONTS); |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 /** @private */ | 171 /** @private */ |
| 172 openThemesGallery_: function() { | 172 openThemesGallery_: function() { |
| 173 window.open(loadTimeData.getString('themesGalleryUrl')); | 173 window.open(loadTimeData.getString('themesGalleryUrl')); |
| 174 }, | 174 }, |
| 175 | 175 |
| 176 <if expr="chromeos"> | 176 <if expr="chromeos"> |
| 177 /** | 177 /** |
| 178 * ChromeOS only. | 178 * ChromeOS only. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 229 | 229 |
| 230 /** | 230 /** |
| 231 * @param {boolean} bookmarksBarVisible if bookmarks bar option is visible. | 231 * @param {boolean} bookmarksBarVisible if bookmarks bar option is visible. |
| 232 * @return {string} 'first' if the argument is false or empty otherwise. | 232 * @return {string} 'first' if the argument is false or empty otherwise. |
| 233 * @private | 233 * @private |
| 234 */ | 234 */ |
| 235 getFirst_: function(bookmarksBarVisible) { | 235 getFirst_: function(bookmarksBarVisible) { |
| 236 return !bookmarksBarVisible ? 'first' : ''; | 236 return !bookmarksBarVisible ? 'first' : ''; |
| 237 } | 237 } |
| 238 }); | 238 }); |
| OLD | NEW |