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

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: guest 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 bookmarkbarattached:bookmarkbarattached; 3 bookmarkbarattached:bookmarkbarattached;
4 lang:language"> 4 lang:language">
5 <head> 5 <head>
6 <meta charset="utf-8"> 6 <meta charset="utf-8">
7 <title i18n-content="title"></title> 7 <title i18n-content="title"></title>
8 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> 8 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css">
9 <link rel="stylesheet" href="incognito_and_guest_tab.css"> 9 <link rel="stylesheet" href="incognito_and_guest_tab.css">
10 <link rel="stylesheet" href="incognito_tab.css"> 10 <link rel="stylesheet" href="incognito_tab.css">
11 <script> 11 <script>
12 // Until themes can clear the cache, force-reload the theme stylesheet. 12 // Until themes can clear the cache, force-reload the theme stylesheet.
13 document.write('<link id="incognitothemecss" rel="stylesheet" ' + 13 document.write('<link id="incognitothemecss" rel="stylesheet" ' +
14 'href="chrome://theme/css/incognito_new_tab_theme.css?' + 14 'href="chrome://theme/css/incognito_new_tab_theme.css?' +
15 Date.now() + '">'); 15 Date.now() + '">');
16 </script> 16 </script>
17 </head> 17 </head>
18 <body> 18 <body>
19 <div class="content"> 19 <div class="content">
20 <div class="icon"></div> 20 <div class="icon"></div>
21 <span> 21 <span>
22 <h1 i18n-content="incognitoTabHeading"></h1> 22 <h1 i18n-content="incognitoTabHeading"></h1>
23 <p> 23 <p>
24 <span i18n-values=".innerHTML:incognitoTabDescription"></span> 24 <span i18n-values=".innerHTML:incognitoTabDescription"></span>
25 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a>
26 </p> 25 </p>
27 <p> 26 <p>
28 <strong i18n-content="incognitoTabWarning"></strong> 27 <span i18n-content="incognitoTabWarning"></span>
29 </p> 28 </p>
30 </span> 29 </span>
30 <a i18n-content="learnMore" i18n-values=".href:learnMoreLink"></a>
31 </div> 31 </div>
32 </body> 32 </body>
33 <script src="chrome://resources/js/cr.js"></script> 33 <script src="chrome://resources/js/cr.js"></script>
34 <script> 34 <script>
35 cr.define('ntp', function() { 35 cr.define('ntp', function() {
36 'use strict'; 36 'use strict';
37 /** 37 /**
38 * Set whether the bookmarks bar is attached or not. 38 * Set whether the bookmarks bar is attached or not.
39 * @param {boolean} attached Whether the bar is attached or not. 39 * @param {boolean} attached Whether the bar is attached or not.
40 */ 40 */
41 function setBookmarkBarAttached(attached) { 41 function setBookmarkBarAttached(attached) {
42 document.documentElement.setAttribute('bookmarkbarattached', !!attached); 42 document.documentElement.setAttribute('bookmarkbarattached', !!attached);
43 } 43 }
44 44
45 function themeChanged() { 45 function themeChanged() {
46 document.getElementById('incognitothemecss').href = 46 document.getElementById('incognitothemecss').href =
47 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now(); 47 'chrome://theme/css/incognito_new_tab_theme.css?' + Date.now();
48 } 48 }
49 49
50 return { 50 return {
51 setBookmarkBarAttached: setBookmarkBarAttached, 51 setBookmarkBarAttached: setBookmarkBarAttached,
52 themeChanged: themeChanged, 52 themeChanged: themeChanged,
53 }; 53 };
54 }); 54 });
55 </script> 55 </script>
56 </html> 56 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698