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

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

Issue 2106103006: MD Settings: cr/cros - Guest mode page visibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments + took out cr_element parts 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 /** 213 /**
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
224 /**
225 * @param {boolean} isFirst
226 * @return {string} 'first' if the argument is true or empty otherwise.
227 * @private
228 */
229 getFirst_: function(isFirst) {
230 return isFirst ? 'first' : '';
231 }
223 }); 232 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698