| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html i18n-values=" | 2 <html i18n-values=" |
| 3 dir:textdirection; | 3 dir:textdirection; |
| 4 bookmarkbarattached:bookmarkbarattached; | 4 bookmarkbarattached:bookmarkbarattached; |
| 5 hasattribution:hasattribution; | 5 hasattribution:hasattribution; |
| 6 anim:anim; | 6 anim:anim; |
| 7 syncispresent:syncispresent; | 7 syncispresent:syncispresent; |
| 8 customlogo:customlogo" | 8 customlogo:customlogo" |
| 9 install-animation-enabled="true"> | 9 install-animation-enabled="true"> |
| 10 <head> | 10 <head> |
| 11 <meta charset="utf-8"> | 11 <meta charset="utf-8"> |
| 12 <title i18n-content="title"></title> | 12 <title i18n-content="title"></title> |
| 13 <script src="shared/js/util.js"></script> | 13 <script src="shared/js/util.js"></script> |
| 14 <script> | 14 <script> |
| 15 // Logging info for benchmarking purposes. | 15 // Logging info for benchmarking purposes. |
| 16 var log = []; | 16 var log = []; |
| 17 function logEvent(name, shouldLogTime) { | 17 function logEvent(name, shouldLogTime) { |
| 18 if (shouldLogTime) { | 18 if (shouldLogTime) { |
| 19 chrome.send('logEventTime', [name]); | 19 chrome.send('metricsHandler:logEventTime', [name]); |
| 20 } | 20 } |
| 21 log.push([name, Date.now()]); | 21 log.push([name, Date.now()]); |
| 22 } | 22 } |
| 23 logEvent('Tab.NewTabScriptStart', true); | 23 logEvent('Tab.NewTabScriptStart', true); |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Registers a callback function so that if the backend calls it too early it | 26 * Registers a callback function so that if the backend calls it too early it |
| 27 * will get delayed until DOMContentLoaded is fired. | 27 * will get delayed until DOMContentLoaded is fired. |
| 28 * @param {string} name The name of the global function that the backend calls. | 28 * @param {string} name The name of the global function that the backend calls. |
| 29 */ | 29 */ |
| (...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 328 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT; | 328 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT; |
| 329 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS); | 329 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS); |
| 330 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu, | 330 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu, |
| 331 MENU_THUMB); | 331 MENU_THUMB); |
| 332 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu, | 332 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu, |
| 333 MENU_RECENT); | 333 MENU_RECENT); |
| 334 | 334 |
| 335 layoutSections(); | 335 layoutSections(); |
| 336 </script> | 336 </script> |
| 337 </html> | 337 </html> |
| OLD | NEW |