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

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

Issue 9455078: Simplify the incognito NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Spaces. 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" 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 <div i18n-values=".innerHTML:content"></div>
18 <div class="extensions-message"> 18 <div class="extensions-message">
19 <img src="../../app/theme/extensions_section.png" class="extension-icon" /> 19 <p i18n-values=".innerHTML:extensionsmessage"></p>
20 <span i18n-values=".innerHTML:extensionsmessage"></span>
21 </div> 20 </div>
22 </div> 21 </div>
23 </body> 22 </body>
24 <script src="chrome://resources/js/cr.js"></script> 23 <script src="chrome://resources/js/cr.js"></script>
25 <script> 24 <script>
26 cr.define('ntp', function() { 25 cr.define('ntp', function() {
27 'use strict'; 26 'use strict';
28 /** 27 /**
29 * Set whether the bookmarks bar is attached or not. 28 * Set whether the bookmarks bar is attached or not.
30 * @param {boolean} attached Whether the bar is attached or not. 29 * @param {boolean} attached Whether the bar is attached or not.
31 */ 30 */
32 function setBookmarkBarAttached(attached) { 31 function setBookmarkBarAttached(attached) {
33 document.documentElement.setAttribute('bookmarkbarattached', !!attached); 32 document.documentElement.setAttribute('bookmarkbarattached', !!attached);
34 } 33 }
35 34
36 function themeChanged() { 35 function themeChanged() {
37 document.getElementById('incognitothemecss').href = 36 document.getElementById('incognitothemecss').href =
38 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); 37 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
39 } 38 }
40 39
41 return { 40 return {
42 setBookmarkBarAttached: setBookmarkBarAttached, 41 setBookmarkBarAttached: setBookmarkBarAttached,
43 themeChanged: themeChanged, 42 themeChanged: themeChanged,
44 }; 43 };
45 }); 44 });
46 </script> 45 </script>
47 </html> 46 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/incognito_tab.css ('k') | chrome/browser/ui/webui/ntp/ntp_resource_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698