| Index: chrome/browser/resources/incognito_tab.html
|
| ===================================================================
|
| --- chrome/browser/resources/incognito_tab.html (revision 22523)
|
| +++ chrome/browser/resources/incognito_tab.html (working copy)
|
| @@ -1,5 +1,5 @@
|
| <!DOCTYPE html>
|
| -<html i18n-values="dir:textdirection">
|
| +<html i18n-values="dir:textdirection;bookmarkbarattached:bookmarkbarattached">
|
| <head>
|
| <title i18n-content="title"></title>
|
| <style>
|
| @@ -20,6 +20,12 @@
|
| margin-right:auto;
|
| }
|
| </style>
|
| +<script>
|
| +// Until themes can clear the cache, force-reload the theme stylesheet.
|
| +document.write('<link id="incognitothemecss" rel="stylesheet" ' +
|
| + 'href="chrome://theme/css/newincognitotab.css?' +
|
| + Date.now() + '">');
|
| +</script>
|
| </head>
|
| <body>
|
| <div class="content" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
|
| @@ -27,4 +33,18 @@
|
| <span i18n-values=".innerHTML:content"></span>
|
| </div>
|
| </body>
|
| +<script>
|
| +function themeChanged() {
|
| + document.getElementById('incognitothemecss').href =
|
| + 'chrome://theme/css/newincognitotab.css?' + Date.now();
|
| +}
|
| +
|
| +function bookmarkBarAttached() {
|
| + document.documentElement.setAttribute("bookmarkbarattached", "true");
|
| +}
|
| +
|
| +function bookmarkBarDetached() {
|
| + document.documentElement.setAttribute("bookmarkbarattached", "false");
|
| +}
|
| +</script>
|
| </html>
|
|
|