| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached"> | 2 <html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached"> |
| 3 <head> | 3 <head> |
| 4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
| 5 <title i18n-content="title"></title> | 5 <title i18n-content="title"></title> |
| 6 <link rel="stylesheet" href="incognito_and_guest_tab.css"> | 6 <link rel="stylesheet" href="incognito_and_guest_tab.css"> |
| 7 <link rel="stylesheet" href="incognito_tab.css"> | 7 <link rel="stylesheet" href="incognito_tab.css"> |
| 8 <script> | 8 <script> |
| 9 // Until themes can clear the cache, force-reload the theme stylesheet. | 9 // Until themes can clear the cache, force-reload the theme stylesheet. |
| 10 document.write('<link id="incognitothemecss" rel="stylesheet" ' + | 10 document.write('<link id="incognitothemecss" rel="stylesheet" ' + |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 <span i18n-values=".innerHTML:incognitoTabDescription"></span> | 22 <span i18n-values=".innerHTML:incognitoTabDescription"></span> |
| 23 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a> | 23 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a> |
| 24 </p> | 24 </p> |
| 25 <p> | 25 <p> |
| 26 <strong i18n-content="incognitoTabWarning"></strong> | 26 <strong i18n-content="incognitoTabWarning"></strong> |
| 27 </p> | 27 </p> |
| 28 </span> | 28 </span> |
| 29 </div> | 29 </div> |
| 30 </body> | 30 </body> |
| 31 <script src="chrome://resources/js/cr.js"></script> | 31 <script src="chrome://resources/js/cr.js"></script> |
| 32 <script src="chrome://resources/js/load_time_data.js"></script> | |
| 33 <script> | 32 <script> |
| 34 cr.define('ntp', function() { | 33 cr.define('ntp', function() { |
| 35 'use strict'; | 34 'use strict'; |
| 36 /** | 35 /** |
| 37 * Set whether the bookmarks bar is attached or not. | 36 * Set whether the bookmarks bar is attached or not. |
| 38 * @param {boolean} attached Whether the bar is attached or not. | 37 * @param {boolean} attached Whether the bar is attached or not. |
| 39 */ | 38 */ |
| 40 function setBookmarkBarAttached(attached) { | 39 function setBookmarkBarAttached(attached) { |
| 41 document.documentElement.setAttribute('bookmarkbarattached', !!attached); | 40 document.documentElement.setAttribute('bookmarkbarattached', !!attached); |
| 42 } | 41 } |
| 43 | 42 |
| 44 function themeChanged() { | 43 function themeChanged() { |
| 45 document.getElementById('incognitothemecss').href = | 44 document.getElementById('incognitothemecss').href = |
| 46 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); | 45 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); |
| 47 } | 46 } |
| 48 | 47 |
| 49 return { | 48 return { |
| 50 setBookmarkBarAttached: setBookmarkBarAttached, | 49 setBookmarkBarAttached: setBookmarkBarAttached, |
| 51 themeChanged: themeChanged, | 50 themeChanged: themeChanged, |
| 52 }; | 51 }; |
| 53 }); | 52 }); |
| 54 </script> | 53 </script> |
| 55 </html> | 54 </html> |
| OLD | NEW |