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