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

Side by Side Diff: chrome/browser/resources/ntp_search/new_tab.js

Issue 11416091: NTP5: Implementing new specification for favicons of Most Visited Pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing Evan's comments Created 8 years, 1 month 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 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
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
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;
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698