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

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

Issue 2516503002: MD Settings: add extension-controlled indicator to homepage (Closed)
Patch Set: 80 col wrap Created 4 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/settings/appearance_page/appearance_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698