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

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

Issue 208683007: Update incognito and guest browsing new tab page: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created a shared guest / incognito tab stylesheet, fixes to styles. Created 6 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
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 <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_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 i18n-values=".innerHTML:content"></span>
19 <div class="extensions-message">
20 <div class="extension-icon"></div>
21 <span i18n-values=".innerHTML:extensionsmessage"></span>
22 </div>
23 </div> 20 </div>
24 </body> 21 </body>
25 <script src="chrome://resources/js/cr.js"></script> 22 <script src="chrome://resources/js/cr.js"></script>
26 <script> 23 <script>
27 cr.define('ntp', function() { 24 cr.define('ntp', function() {
28 'use strict'; 25 'use strict';
29 /** 26 /**
30 * Set whether the bookmarks bar is attached or not. 27 * Set whether the bookmarks bar is attached or not.
31 * @param {boolean} attached Whether the bar is attached or not. 28 * @param {boolean} attached Whether the bar is attached or not.
32 */ 29 */
33 function setBookmarkBarAttached(attached) { 30 function setBookmarkBarAttached(attached) {
34 document.documentElement.setAttribute('bookmarkbarattached', !!attached); 31 document.documentElement.setAttribute('bookmarkbarattached', !!attached);
35 } 32 }
36 33
37 function themeChanged() { 34 function themeChanged() {
38 document.getElementById('incognitothemecss').href = 35 document.getElementById('incognitothemecss').href =
39 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); 36 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
40 } 37 }
41 38
42 return { 39 return {
43 setBookmarkBarAttached: setBookmarkBarAttached, 40 setBookmarkBarAttached: setBookmarkBarAttached,
44 themeChanged: themeChanged, 41 themeChanged: themeChanged,
45 }; 42 };
46 }); 43 });
47 </script> 44 </script>
48 </html> 45 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698