| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html i18n-values=" | 2 <html i18n-values=" |
| 3 dir:textdirection; | 3 dir:textdirection; |
| 4 firstview:firstview; | 4 firstview:firstview; |
| 5 bookmarkbarattached:bookmarkbarattached; | 5 bookmarkbarattached:bookmarkbarattached; |
| 6 hasattribution:hasattribution; | 6 hasattribution:hasattribution; |
| 7 anim:anim; | 7 anim:anim; |
| 8 syncispresent:syncispresent; | 8 syncispresent:syncispresent; |
| 9 showsetashomepage:showsetashomepage"> | 9 showsetashomepage:showsetashomepage"> |
| 10 | 10 |
| 11 <meta charset="utf-8"> | 11 <meta charset="utf-8"> |
| 12 <title i18n-content="title"></title> | 12 <title i18n-content="title"></title> |
| 13 <script> | 13 <script> |
| 14 // Logging info for benchmarking purposes. | 14 // Logging info for benchmarking purposes. |
| 15 var log = []; | 15 var log = []; |
| 16 function logEvent(name, shouldLogTime) { | 16 function logEvent(name, shouldLogTime) { |
| 17 if (shouldLogTime) { | 17 if (shouldLogTime) { |
| 18 chrome.send('logEventTime', [name]); | 18 chrome.send('logEventTime', [name]); |
| 19 } | 19 } |
| 20 log.push([name, Date.now()]); | 20 log.push([name, Date.now()]); |
| 21 } | 21 } |
| 22 logEvent('NewTab.ScriptStart', true); | 22 logEvent('Tab.NewTabScriptStart', true); |
| 23 | 23 |
| 24 var global = this; | 24 var global = this; |
| 25 | 25 |
| 26 /** | 26 /** |
| 27 * Registers a callback function so that if the backend calls it too early it | 27 * Registers a callback function so that if the backend calls it too early it |
| 28 * will get delayed until DOMContentLoaded is fired. | 28 * will get delayed until DOMContentLoaded is fired. |
| 29 * @param {string} name The name of the global function that the backend calls. | 29 * @param {string} name The name of the global function that the backend calls. |
| 30 */ | 30 */ |
| 31 function registerCallback(name) { | 31 function registerCallback(name) { |
| 32 var f = function(var_args) { | 32 var f = function(var_args) { |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 <img src="ntp_themes_promo.png"> | 253 <img src="ntp_themes_promo.png"> |
| 254 </a> | 254 </a> |
| 255 </div> | 255 </div> |
| 256 | 256 |
| 257 <div class="window-menu" id="window-tooltip"></div> | 257 <div class="window-menu" id="window-tooltip"></div> |
| 258 | 258 |
| 259 </body> | 259 </body> |
| 260 <script src="local_strings.js"></script> | 260 <script src="local_strings.js"></script> |
| 261 <script src="new_new_tab.js"></script> | 261 <script src="new_new_tab.js"></script> |
| 262 </html> | 262 </html> |
| OLD | NEW |