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

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

Issue 1440113002: [MD] Change appearance of incognito NTP to MD spec. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: cant remember if i changed anything Created 5 years, 1 month 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; 2 <html i18n-values="dir:textdirection;
3 hasCustomBackground:hasCustomBackground;
3 bookmarkbarattached:bookmarkbarattached; 4 bookmarkbarattached:bookmarkbarattached;
4 lang:language"> 5 lang:language">
5 <head> 6 <head>
6 <meta charset="utf-8"> 7 <meta charset="utf-8">
7 <title i18n-content="title"></title> 8 <title i18n-content="title"></title>
8 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> 9 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
9 <link rel="stylesheet" href="incognito_and_guest_tab.css"> 10 <link rel="stylesheet" href="incognito_and_guest_tab.css">
10 <link rel="stylesheet" href="incognito_tab.css"> 11 <link rel="stylesheet" href="incognito_tab.css">
11 <script> 12 <script>
12 // Until themes can clear the cache, force-reload the theme stylesheet. 13 // Until themes can clear the cache, force-reload the theme stylesheet.
13 document.write('<link id="incognitothemecss" rel="stylesheet" ' + 14 document.write('<link id="incognitothemecss" rel="stylesheet" ' +
14 'href="chrome://theme/css/incognito_new_tab_theme.css?' + 15 'href="chrome://theme/css/incognito_new_tab_theme.css?' +
15 Date.now() + '">'); 16 Date.now() + '">');
16 </script> 17 </script>
17 </head> 18 </head>
18 <body> 19 <body>
19 <div class="content"> 20 <div class="content">
20 <div class="icon"></div> 21 <div class="icon"></div>
21 <span> 22 <span>
22 <h1 i18n-content="incognitoTabHeading"></h1> 23 <h1 i18n-content="incognitoTabHeading"></h1>
23 <p> 24 <p>
24 <span i18n-values=".innerHTML:incognitoTabDescription"></span> 25 <span i18n-content="incognitoTabDescription"></span>
25 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a>
26 </p> 26 </p>
27 <p> 27 <p>
28 <strong i18n-content="incognitoTabWarning"></strong> 28 <span i18n-content="incognitoTabWarning"></span>
29 </p> 29 </p>
30 </span> 30 </span>
31 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a>
31 </div> 32 </div>
32 </body> 33 </body>
33 <script src="chrome://resources/js/cr.js"></script> 34 <script src="chrome://resources/js/cr.js"></script>
34 <script> 35 <script>
35 cr.define('ntp', function() { 36 cr.define('ntp', function() {
36 'use strict'; 37 'use strict';
37 /** 38 /**
38 * Set whether the bookmarks bar is attached or not. 39 * Set whether the bookmarks bar is attached or not.
39 * @param {boolean} attached Whether the bar is attached or not. 40 * @param {boolean} attached Whether the bar is attached or not.
40 */ 41 */
41 function setBookmarkBarAttached(attached) { 42 function setBookmarkBarAttached(attached) {
42 document.documentElement.setAttribute('bookmarkbarattached', !!attached); 43 document.documentElement.setAttribute('bookmarkbarattached', !!attached);
43 } 44 }
44 45
Dan Beam 2015/11/20 00:50:31 /** @param {!{hasCustomBackground: boolean}} theme
Evan Stade 2015/11/20 22:05:17 Done.
45 function themeChanged() { 46 function themeChanged(themeData) {
47 document.documentElement.setAttribute('hasCustomBackground',
48 themeData.hasCustomBackground);
46 document.getElementById('incognitothemecss').href = 49 document.getElementById('incognitothemecss').href =
47 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); 50 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
48 } 51 }
49 52
50 return { 53 return {
51 setBookmarkBarAttached: setBookmarkBarAttached, 54 setBookmarkBarAttached: setBookmarkBarAttached,
52 themeChanged: themeChanged, 55 themeChanged: themeChanged,
53 }; 56 };
54 }); 57 });
55 </script> 58 </script>
56 </html> 59 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698