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 //---------------------------------------------------------------------------- | 8 //---------------------------------------------------------------------------- |
9 // Constants | 9 // Constants |
10 //---------------------------------------------------------------------------- | 10 //---------------------------------------------------------------------------- |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 * @type {number} | 78 * @type {number} |
79 * @const | 79 * @const |
80 */ | 80 */ |
81 var TAB_BAR_HEIGHT = 34; | 81 var TAB_BAR_HEIGHT = 34; |
82 | 82 |
83 /** | 83 /** |
84 * The height of the NTP's Upper Section. | 84 * The height of the NTP's Upper Section. |
85 * @type {number} | 85 * @type {number} |
86 * @const | 86 * @const |
87 */ | 87 */ |
88 var UPPER_SECTION_HEIGHT = 34; | 88 var UPPER_SECTION_HEIGHT = 289; |
89 | 89 |
90 //---------------------------------------------------------------------------- | 90 //---------------------------------------------------------------------------- |
91 // Tile | 91 // Tile |
92 //---------------------------------------------------------------------------- | 92 //---------------------------------------------------------------------------- |
93 | 93 |
94 /** | 94 /** |
95 * A virtual Tile class. Each TilePage subclass should have its own Tile | 95 * A virtual Tile class. Each TilePage subclass should have its own Tile |
96 * subclass implemented too (e.g. MostVisitedPage contains MostVisited | 96 * subclass implemented too (e.g. MostVisitedPage contains MostVisited |
97 * tiles, and MostVisited is a Tile subclass). | 97 * tiles, and MostVisited is a Tile subclass). |
98 * @constructor | 98 * @constructor |
(...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
913 if (pageOffset != this.pageOffset_) | 913 if (pageOffset != this.pageOffset_) |
914 this.paginate_(pageOffset); | 914 this.paginate_(pageOffset); |
915 }, | 915 }, |
916 }; | 916 }; |
917 | 917 |
918 return { | 918 return { |
919 Tile2: Tile, | 919 Tile2: Tile, |
920 TilePage2: TilePage, | 920 TilePage2: TilePage, |
921 }; | 921 }; |
922 }); | 922 }); |
OLD | NEW |