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 /** | 5 /** |
6 * @fileoverview New tab page | 6 * @fileoverview New tab page |
7 * This is the main code for the new tab page. NewTabView manages page list, | 7 * This is the main code for the new tab page. NewTabView manages page list, |
8 * dot list and handles apps pages callbacks from backend. It also handles | 8 * dot list and handles apps pages callbacks from backend. It also handles |
9 * the layout of the Bottom Panel and the global UI states of the New Tab Page. | 9 * the layout of the Bottom Panel and the global UI states of the New Tab Page. |
10 */ | 10 */ |
(...skipping 19 matching lines...) Expand all Loading... |
30 * @type {number} | 30 * @type {number} |
31 * @const | 31 * @const |
32 */ | 32 */ |
33 var BOTTOM_PANEL_HORIZONTAL_MARGIN = 100; | 33 var BOTTOM_PANEL_HORIZONTAL_MARGIN = 100; |
34 | 34 |
35 /** | 35 /** |
36 * The height required to show the Bottom Panel. | 36 * The height required to show the Bottom Panel. |
37 * @type {number} | 37 * @type {number} |
38 * @const | 38 * @const |
39 */ | 39 */ |
40 var HEIGHT_FOR_BOTTOM_PANEL = 505; | 40 var HEIGHT_FOR_BOTTOM_PANEL = 513; |
41 | 41 |
42 /** | 42 /** |
43 * The Bottom Panel width required to show 6 cols of Tiles, which is used | 43 * The Bottom Panel width required to show 6 cols of Tiles, which is used |
44 * in the width computation. | 44 * in the width computation. |
45 * @type {number} | 45 * @type {number} |
46 * @const | 46 * @const |
47 */ | 47 */ |
48 var MAX_BOTTOM_PANEL_WIDTH = 920; | 48 var MAX_BOTTOM_PANEL_WIDTH = 920; |
49 | 49 |
50 /** | 50 /** |
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1116 setMostVisitedPages: setMostVisitedPages, | 1116 setMostVisitedPages: setMostVisitedPages, |
1117 setRecentlyClosedTabs: setRecentlyClosedTabs, | 1117 setRecentlyClosedTabs: setRecentlyClosedTabs, |
1118 showNotification: showNotification, | 1118 showNotification: showNotification, |
1119 themeChanged: themeChanged, | 1119 themeChanged: themeChanged, |
1120 }; | 1120 }; |
1121 }); | 1121 }); |
1122 | 1122 |
1123 document.addEventListener('DOMContentLoaded', ntp.onLoad); | 1123 document.addEventListener('DOMContentLoaded', ntp.onLoad); |
1124 | 1124 |
1125 var toCssPx = cr.ui.toCssPx; | 1125 var toCssPx = cr.ui.toCssPx; |
OLD | NEW |