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