| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 return this.i18n('homePageNtp'); | 139 return this.i18n('homePageNtp'); |
| 140 return homepage || this.i18n('exampleDotCom'); | 140 return homepage || this.i18n('exampleDotCom'); |
| 141 }, | 141 }, |
| 142 | 142 |
| 143 /** @private */ | 143 /** @private */ |
| 144 onCustomizeFontsTap_: function() { | 144 onCustomizeFontsTap_: function() { |
| 145 settings.navigateTo(settings.Route.FONTS); | 145 settings.navigateTo(settings.Route.FONTS); |
| 146 }, | 146 }, |
| 147 | 147 |
| 148 /** @private */ | 148 /** @private */ |
| 149 onDisableExtension_: function() { |
| 150 this.fire('refresh-pref', 'homepage'); |
| 151 }, |
| 152 |
| 153 /** @private */ |
| 149 onThemesTap_: function() { | 154 onThemesTap_: function() { |
| 150 window.open(this.themeUrl_ || loadTimeData.getString('themesGalleryUrl')); | 155 window.open(this.themeUrl_ || loadTimeData.getString('themesGalleryUrl')); |
| 151 }, | 156 }, |
| 152 | 157 |
| 153 <if expr="chromeos"> | 158 <if expr="chromeos"> |
| 154 /** | 159 /** |
| 155 * ChromeOS only. | 160 * ChromeOS only. |
| 156 * @private | 161 * @private |
| 157 */ | 162 */ |
| 158 openWallpaperManager_: function() { | 163 openWallpaperManager_: function() { |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 * @see content::ZoomValuesEqual(). | 263 * @see content::ZoomValuesEqual(). |
| 259 * @param {number} zoom1 | 264 * @param {number} zoom1 |
| 260 * @param {number} zoom2 | 265 * @param {number} zoom2 |
| 261 * @return {boolean} | 266 * @return {boolean} |
| 262 * @private | 267 * @private |
| 263 */ | 268 */ |
| 264 zoomValuesEqual_: function(zoom1, zoom2) { | 269 zoomValuesEqual_: function(zoom1, zoom2) { |
| 265 return Math.abs(zoom1 - zoom2) <= 0.001; | 270 return Math.abs(zoom1 - zoom2) <= 0.001; |
| 266 }, | 271 }, |
| 267 }); | 272 }); |
| OLD | NEW |