OLD | NEW |
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 cr.define('ntp', function() { | 5 cr.define('ntp', function() { |
6 'use strict'; | 6 'use strict'; |
7 | 7 |
8 var Tile = ntp.Tile; | 8 var Tile = ntp.Tile; |
9 var TilePage = ntp.TilePage; | 9 var TilePage = ntp.TilePage; |
10 | 10 |
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 return el; | 155 return el; |
156 } | 156 } |
157 | 157 |
158 ThumbnailPage.prototype = { | 158 ThumbnailPage.prototype = { |
159 __proto__: TilePage.prototype, | 159 __proto__: TilePage.prototype, |
160 | 160 |
161 /** | 161 /** |
162 * Initializes a ThumbnailPage. | 162 * Initializes a ThumbnailPage. |
163 */ | 163 */ |
164 initialize: function() { | 164 initialize: function() { |
| 165 TilePage.prototype.initialize.apply(this, arguments); |
| 166 |
165 this.classList.add('thumbnail-page'); | 167 this.classList.add('thumbnail-page'); |
166 }, | 168 }, |
167 | 169 |
168 /** @override */ | 170 /** @override */ |
169 shouldAcceptDrag: function(e) { | 171 shouldAcceptDrag: function(e) { |
170 return false; | 172 return false; |
171 }, | 173 }, |
172 }; | 174 }; |
173 | 175 |
174 return { | 176 return { |
175 Thumbnail: Thumbnail, | 177 Thumbnail: Thumbnail, |
176 ThumbnailPage: ThumbnailPage, | 178 ThumbnailPage: ThumbnailPage, |
177 }; | 179 }; |
178 }); | 180 }); |
OLD | NEW |