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

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

Issue 2321913003: Old and new about pages: simplify product logo animation code (Closed)
Patch Set: happify closure Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 * @fileoverview 'settings-about-page' contains version and OS related 6 * @fileoverview 'settings-about-page' contains version and OS related
7 * information. 7 * information.
8 */ 8 */
9 Polymer({ 9 Polymer({
10 is: 'settings-about-page', 10 is: 'settings-about-page',
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 * @return {boolean} 274 * @return {boolean}
275 * @private 275 * @private
276 */ 276 */
277 shouldShowRegulatoryInfo_: function() { 277 shouldShowRegulatoryInfo_: function() {
278 return this.regulatoryInfo_ !== null; 278 return this.regulatoryInfo_ !== null;
279 }, 279 },
280 </if> 280 </if>
281 281
282 /** @private */ 282 /** @private */
283 onProductLogoTap_: function() { 283 onProductLogoTap_: function() {
284 var logo = this.$['product-logo']; 284 this.$['product-logo'].animate({
285 logo.classList.remove('spin'); 285 transform: ['none', 'rotate(-10turn)'],
286 // Force a style recalc that cancels the animation specified by "spin". 286 }, {
287 getComputedStyle(logo).getPropertyValue('animation-name'); 287 duration: 500,
288 logo.classList.add('spin'); 288 easing: 'cubic-bezier(1, 0, 0, 1)',
289 });
289 }, 290 },
290 291
291 <if expr="_google_chrome"> 292 <if expr="_google_chrome">
292 /** @private */ 293 /** @private */
293 onReportIssueTap_: function() { 294 onReportIssueTap_: function() {
294 this.aboutBrowserProxy_.openFeedbackDialog(); 295 this.aboutBrowserProxy_.openFeedbackDialog();
295 }, 296 },
296 </if> 297 </if>
297 }); 298 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698