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

Side by Side Diff: chrome/browser/resources/ntp4/nav_dot.js

Issue 9320051: Fix JavaScript style in ntp4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 Nav dot 6 * @fileoverview Nav dot
7 * This is the class for the navigation controls that appear along the bottom 7 * This is the class for the navigation controls that appear along the bottom
8 * of the NTP. 8 * of the NTP.
9 */ 9 */
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 if (animate) { 66 if (animate) {
67 this.classList.add('small'); 67 this.classList.add('small');
68 var self = this; 68 var self = this;
69 window.setTimeout(function() { 69 window.setTimeout(function() {
70 self.classList.remove('small'); 70 self.classList.remove('small');
71 }, 0); 71 }, 0);
72 } 72 }
73 }, 73 },
74 74
75 /** 75 /**
76 * Gets the associated TilePage. 76 * @return {TilePage} The associated TilePage.
77 * @return {TilePage}
78 */ 77 */
79 get page() { 78 get page() {
80 return this.page_; 79 return this.page_;
81 }, 80 },
82 81
83 /** 82 /**
84 * Sets/gets the display title. 83 * Sets/gets the display title.
85 * @type {String} title The display name for this nav dot. 84 * @type {String} title The display name for this nav dot.
86 */ 85 */
87 get displayTitle() { 86 get displayTitle() {
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 onTransitionEnd_: function(e) { 267 onTransitionEnd_: function(e) {
269 if (e.propertyName === 'max-width' && this.classList.contains('small')) 268 if (e.propertyName === 'max-width' && this.classList.contains('small'))
270 this.parentNode.removeChild(this); 269 this.parentNode.removeChild(this);
271 }, 270 },
272 }; 271 };
273 272
274 return { 273 return {
275 NavDot: NavDot, 274 NavDot: NavDot,
276 }; 275 };
277 }); 276 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp4/most_visited_page.js ('k') | chrome/browser/resources/ntp4/page_list_view.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698