| 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 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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} bookmarksBarVisible if bookmarks bar option is visible. |
| 226 * @return {string} 'first' if the argument is false or empty otherwise. |
| 227 * @private |
| 228 */ |
| 229 getFirst_: function(bookmarksBarVisible) { |
| 230 return !bookmarksBarVisible ? 'first' : ''; |
| 231 } |
| 223 }); | 232 }); |
| OLD | NEW |