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

Side by Side Diff: chrome/browser/resources/ntp_android/new_tab.html

Issue 10928039: Add support for testing Android's NTP w/o Android. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Resolved review nits. Created 8 years, 3 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;"> 2 <html i18n-values="dir:textdirection;">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <meta name="viewport" content="width=device-width, initial-scale=1.0, 5 <meta name="viewport" content="width=device-width, initial-scale=1.0,
6 maximum-scale=1.0, user-scalable=no"> 6 maximum-scale=1.0, user-scalable=no">
7 <title i18n-content="title"></title> 7 <title i18n-content="title"></title>
8 <link rel="stylesheet" href="ntp_android.css"> 8 <link rel="stylesheet" href="ntp_android.css">
9 <link rel="stylesheet" href="bookmarks.css"> 9 <link rel="stylesheet" href="bookmarks.css">
10 <link rel="stylesheet" href="bookmarks_tablet.css"> 10 <link rel="stylesheet" href="bookmarks_tablet.css">
11 <link rel="stylesheet" href="mostvisited.css"> 11 <link rel="stylesheet" href="mostvisited.css">
12 <link rel="stylesheet" href="mostvisited_tablet.css"> 12 <link rel="stylesheet" href="mostvisited_tablet.css">
13 <link rel="stylesheet" href="opentabs.css"> 13 <link rel="stylesheet" href="opentabs.css">
14 <link rel="stylesheet" href="opentabs_tablet.css"> 14 <link rel="stylesheet" href="opentabs_tablet.css">
15 <link rel="stylesheet" href="incognito_tab.css"> 15 <link rel="stylesheet" href="incognito_tab.css">
16 <!-- template data placeholder --> 16 <!-- template data placeholder -->
17 <script src="../shared/js/cr.js"></script> 17 <script src="../shared/js/cr.js"></script>
18 <script src="../shared/js/parse_html_subset.js"></script> 18 <script src="../shared/js/parse_html_subset.js"></script>
19 <script src="ntp_android.js"></script> 19 <script src="ntp_android.js"></script>
20 <script> 20 <script>
21 var MOCK = document.location.host != "newtab"; 21 if (document.location.host != "newtab") {
22 if (MOCK) {
23 document.write('<script src="mockdata.js"><\/script>'); 22 document.write('<script src="mockdata.js"><\/script>');
24 var templateData = {
25 "title":"New Tab",
26 "mostvisited":"Most Visited",
27 "remotetabs":"Open Tabs"
28 };
29 } 23 }
30 </script> 24 </script>
31 </head> 25 </head>
32 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize;devic e:device"> 26 <body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize;devic e:device">
33 <div id="content-area" style="display:none"> 27 <div id="content-area" style="display:none">
34 <div class="main-section" id="open_tabs_container"> 28 <div class="main-section" id="open_tabs_container">
35 <div class="center-empty-container" id="sync_enable_sync" style="display : none;"> 29 <div class="center-empty-container" id="sync_enable_sync" style="display : none;">
36 <div class="center-empty-content" i18n-values=".innerHTML:syncEnableSy nc"></div> 30 <div class="center-empty-content" i18n-values=".innerHTML:syncEnableSy nc"></div>
37 </div> 31 </div>
38 <div class="center-empty-container" id="sync_promo" style="display: none ;"> 32 <div class="center-empty-container" id="sync_promo" style="display: none ;">
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 <span i18n-values=".innerHTML:content"></span> 69 <span i18n-values=".innerHTML:content"></span>
76 </div> 70 </div>
77 </div> 71 </div>
78 </div> 72 </div>
79 </body> 73 </body>
80 <script src="../shared/js/i18n_template.js"></script> 74 <script src="../shared/js/i18n_template.js"></script>
81 <script> 75 <script>
82 i18nTemplate.process(document, templateData); 76 i18nTemplate.process(document, templateData);
83 </script> 77 </script>
84 </html> 78 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/ntp_android/mockdata.js ('k') | chrome/browser/resources/ntp_android/ntp_android.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698