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

Side by Side Diff: chrome/browser/resources/settings/appearance_page/appearance_page.js

Issue 2156413002: Settings Router Refactor: Migrate to settings.Route.navigateTo calls. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update for route rename Created 4 years, 5 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
OLDNEW
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
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
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 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698