| OLD | NEW |
| 1 <!DOCTYPE HTML> | 1 <!DOCTYPE HTML> |
| 2 <html id="t" jsvalues="dir:textdirection;firstview:firstview"> | 2 <html id="t" jsvalues="dir:textdirection;firstview:firstview"> |
| 3 <!-- | 3 <!-- |
| 4 This page is optimized for perceived performance. Our enemies are the time | 4 This page is optimized for perceived performance. Our enemies are the time |
| 5 taken for the backend to generate our data, and the time taken to parse | 5 taken for the backend to generate our data, and the time taken to parse |
| 6 and render the starting HTML/CSS content of the page. This page is | 6 and render the starting HTML/CSS content of the page. This page is |
| 7 designed to let Chrome do both of those things in parallel. | 7 designed to let Chrome do both of those things in parallel. |
| 8 | 8 |
| 9 1. Defines temporary content callback functions | 9 1. Defines temporary content callback functions |
| 10 2. Fires off requests for content (these can come back 20-150ms later) | 10 2. Fires off requests for content (these can come back 20-150ms later) |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 var linkSpanContainer = DOM('div', { className: 'recent-window-container
'}); | 736 var linkSpanContainer = DOM('div', { className: 'recent-window-container
'}); |
| 737 | 737 |
| 738 var linkSpan = DOM('span'); | 738 var linkSpan = DOM('span'); |
| 739 linkSpan.appendChild(document.createTextNode(" (")); | 739 linkSpan.appendChild(document.createTextNode(" (")); |
| 740 for (var windowIndex = 0; windowIndex < entry.tabs.length; windowIndex++
) { | 740 for (var windowIndex = 0; windowIndex < entry.tabs.length; windowIndex++
) { |
| 741 var tab = entry.tabs[windowIndex]; | 741 var tab = entry.tabs[windowIndex]; |
| 742 var tabImg = DOM('img', { | 742 var tabImg = DOM('img', { |
| 743 src:'url("chrome-ui://favicon/' + tab.url + '")', | 743 src:'url("chrome-ui://favicon/' + tab.url + '")', |
| 744 width:16, | 744 width:16, |
| 745 height:16}); | 745 height:16}); |
| 746 tabImg.onmousedown = function() { return false; } |
| 746 linkSpan.appendChild(tabImg); | 747 linkSpan.appendChild(tabImg); |
| 747 } | 748 } |
| 748 linkSpan.appendChild(document.createTextNode(")")); | 749 linkSpan.appendChild(document.createTextNode(")")); |
| 749 | 750 |
| 750 link = DOM('span', { className: 'recently-closed-window-link' } ); | 751 link = DOM('span', { className: 'recently-closed-window-link' } ); |
| 751 windowSpan = DOM('span', {className: 'recently-close-window-text'}); | 752 windowSpan = DOM('span', {className: 'recently-close-window-text'}); |
| 752 windowSpan.appendChild( | 753 windowSpan.appendChild( |
| 753 document.createTextNode(localStrings.getString('closedwindow'))); | 754 document.createTextNode(localStrings.getString('closedwindow'))); |
| 754 link.appendChild(windowSpan); | 755 link.appendChild(windowSpan); |
| 755 link.appendChild(linkSpan); | 756 link.appendChild(linkSpan); |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 905 processData(); | 906 processData(); |
| 906 | 907 |
| 907 // In case renderMostVisitedItems doesn't come back quickly enough, begin | 908 // In case renderMostVisitedItems doesn't come back quickly enough, begin |
| 908 // the first-run fade-in. If it has started or if this is not a first | 909 // the first-run fade-in. If it has started or if this is not a first |
| 909 // run new tab, this will be a no-op. | 910 // run new tab, this will be a no-op. |
| 910 setTimeout(function(){document.getElementById('main').className = 'visible'}, | 911 setTimeout(function(){document.getElementById('main').className = 'visible'}, |
| 911 1000); | 912 1000); |
| 912 </script> | 913 </script> |
| 913 </body> | 914 </body> |
| 914 </html> | 915 </html> |
| OLD | NEW |