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