Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Side by Side Diff: chrome/browser/resources/incognito_tab.html

Issue 9861016: [NTP4] Fix theme and bookmarks bar notifications. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:f ontsize"> 14 <div class="content" i18n-values=".style.fontFamily:fontfamily;.style.fontSize:f ontsize">
15 <img src="shared/images/otr_icon_standalone.png" class="icon" /> 15 <img src="shared/images/otr_icon_standalone.png" class="icon" />
16 <span i18n-values=".innerHTML:content"></span> 16 <span i18n-values=".innerHTML:content"></span>
17 <div style="margin-top:15px"> 17 <div style="margin-top:15px">
18 <img src="../../app/theme/extensions_section.png" class="extensionicon" /> 18 <img src="../../app/theme/extensions_section.png" class="extensionicon" />
19 <span i18n-values=".innerHTML:extensionsmessage"></span> 19 <span i18n-values=".innerHTML:extensionsmessage"></span>
20 </div> 20 </div>
21 </div> 21 </div>
22 </body> 22 </body>
23 <script src="chrome://resources/js/cr.js"></script>
Dan Beam 2012/03/27 10:30:13 I don't really have to do this, but I figured it w
Evan Stade 2012/03/27 18:25:09 it's fine
23 <script> 24 <script>
24 function themeChanged() { 25 cr.define('ntp', function() {
25 document.getElementById('incognitothemecss').href = 26 'use strict';
26 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); 27 /**
27 } 28 * Set whether the bookmarks bar is attached or not.
29 * @param {boolean} attached Whether the bar is attached or not.
30 */
31 function setBookmarkBarAttached(attached) {
32 document.documentElement.setAttribute('bookmarkbarattached', !!attached);
33 }
28 34
29 function bookmarkBarAttached() { 35 function themeChanged() {
30 document.documentElement.setAttribute("bookmarkbarattached", "true"); 36 document.getElementById('incognitothemecss').href =
31 } 37 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
38 }
32 39
33 function bookmarkBarDetached() { 40 return {
34 document.documentElement.setAttribute("bookmarkbarattached", "false"); 41 setBookmarkBarAttached: setBookmarkBarAttached,
35 } 42 themeChanged: themeChanged,
43 };
44 });
36 </script> 45 </script>
37 </html> 46 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698