OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html i18n-values=" | 2 <html i18n-values=" |
3 dir:textdirection; | 3 dir:textdirection; |
4 bookmarkbarattached:bookmarkbarattached; | 4 bookmarkbarattached:bookmarkbarattached; |
5 hasattribution:hasattribution; | 5 hasattribution:hasattribution; |
6 anim:anim; | 6 anim:anim; |
7 syncispresent:syncispresent; | 7 syncispresent:syncispresent; |
8 has_3d:has_3d"> | 8 has_3d:has_3d"> |
9 | 9 |
10 <meta charset="utf-8"> | 10 <meta charset="utf-8"> |
(...skipping 26 matching lines...) Expand all Loading... |
37 logEvent('Calling the new ' + name); | 37 logEvent('Calling the new ' + name); |
38 global[name].apply(null, args); | 38 global[name].apply(null, args); |
39 }); | 39 }); |
40 } | 40 } |
41 }; | 41 }; |
42 global[name] = f; | 42 global[name] = f; |
43 } | 43 } |
44 | 44 |
45 chrome.send('getMostVisited'); | 45 chrome.send('getMostVisited'); |
46 chrome.send('getRecentlyClosedTabs'); | 46 chrome.send('getRecentlyClosedTabs'); |
47 chrome.send('getTips'); | |
48 chrome.send('getApps'); | 47 chrome.send('getApps'); |
49 | 48 |
50 registerCallback('mostVisitedPages'); | 49 registerCallback('mostVisitedPages'); |
51 registerCallback('recentlyClosedTabs'); | 50 registerCallback('recentlyClosedTabs'); |
52 registerCallback('syncMessageChanged'); | 51 registerCallback('syncMessageChanged'); |
53 registerCallback('tips'); | |
54 registerCallback('onHomePageSet'); | |
55 registerCallback('getAppsCallback'); | 52 registerCallback('getAppsCallback'); |
56 registerCallback('setShownSections'); | 53 registerCallback('setShownSections'); |
57 | 54 |
58 </script> | 55 </script> |
59 <!-- template data placeholder --> | 56 <!-- template data placeholder --> |
60 <link rel="stylesheet" href="new_new_tab.css"> | 57 <link rel="stylesheet" href="new_new_tab.css"> |
61 <link rel="stylesheet" href="ntp/most_visited.css"> | 58 <link rel="stylesheet" href="ntp/most_visited.css"> |
62 <link rel="stylesheet" href="ntp/apps.css"> | 59 <link rel="stylesheet" href="ntp/apps.css"> |
63 <link rel="stylesheet" href="shared/css/menu.css"> | 60 <link rel="stylesheet" href="shared/css/menu.css"> |
64 <script> | 61 <script> |
65 | 62 |
66 /** | 63 /** |
67 * Bitmask for the different UI sections. | 64 * Bitmask for the different UI sections. |
68 * This matches the Section enum in ../dom_ui/shown_sections_handler.h | 65 * This matches the Section enum in ../dom_ui/shown_sections_handler.h |
69 * @enum {number} | 66 * @enum {number} |
70 */ | 67 */ |
71 var Section = { | 68 var Section = { |
72 THUMB: 1, | 69 THUMB: 1, |
73 // LIST is no longer used | 70 // LIST is no longer used |
74 RECENT: 4, | 71 RECENT: 4, |
75 TIPS: 8, | 72 // TIPS is no longer used |
76 SYNC: 16, | 73 SYNC: 16, |
77 DEBUG: 32 | 74 DEBUG: 32 |
78 }; | 75 }; |
79 | 76 |
80 var shownSections = templateData['shown_sections']; | 77 var shownSections = templateData['shown_sections']; |
81 | 78 |
82 // Until themes can clear the cache, force-reload the theme stylesheet. | 79 // Until themes can clear the cache, force-reload the theme stylesheet. |
83 document.write('<link id="themecss" rel="stylesheet" ' + | 80 document.write('<link id="themecss" rel="stylesheet" ' + |
84 'href="chrome://theme/css/newtab.css?' + | 81 'href="chrome://theme/css/newtab.css?' + |
85 Date.now() + '">'); | 82 Date.now() + '">'); |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 119 } |
123 | 120 |
124 </script> | 121 </script> |
125 </head> | 122 </head> |
126 <body class="loading" | 123 <body class="loading" |
127 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 124 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
128 | 125 |
129 <div id="main"> | 126 <div id="main"> |
130 | 127 |
131 <div id=top-bar> | 128 <div id=top-bar> |
132 <div id="tip-line" class="section" section="TIPS"></div> | |
133 <input type="button" id="option-button" | 129 <input type="button" id="option-button" |
134 i18n-values="title:pagedisplaytooltip"> | 130 i18n-values="title:pagedisplaytooltip"> |
135 </div> | 131 </div> |
136 | 132 |
137 <menu id="option-menu"> | 133 <menu id="option-menu"> |
138 <div command="hide" section="TIPS" i18n-content="tips"></div> | |
139 <div command="hide" section="THUMB" i18n-content="mostvisited"></div> | 134 <div command="hide" section="THUMB" i18n-content="mostvisited"></div> |
140 <div command="hide" section="RECENT" i18n-content="recentlyclosed"></div> | 135 <div command="hide" section="RECENT" i18n-content="recentlyclosed"></div> |
141 <hr> | 136 <hr> |
142 <div command="clear-all-blacklisted" | 137 <div command="clear-all-blacklisted" |
143 i18n-content="restorethumbnails"></div> | 138 i18n-content="restorethumbnails"></div> |
144 </menu> | 139 </menu> |
145 | 140 |
146 <div id="notification"> | 141 <div id="notification"> |
147 <span> </span> | 142 <span> </span> |
148 <span class="link"><span class="link-color"></span></span> | 143 <span class="link"><span class="link-color"></span></span> |
(...skipping 22 matching lines...) Expand all Loading... |
171 >Tab</label | 166 >Tab</label |
172 ><label><input type="radio" name="launch-container-type" value="window" | 167 ><label><input type="radio" name="launch-container-type" value="window" |
173 >Window</label | 168 >Window</label |
174 ><label><input type="radio" name="launch-container-type" value="panel" | 169 ><label><input type="radio" name="launch-container-type" value="panel" |
175 >Panel</label> | 170 >Panel</label> |
176 </div> | 171 </div> |
177 </div> | 172 </div> |
178 </div> | 173 </div> |
179 | 174 |
180 <script> | 175 <script> |
181 updateSimpleSection('tip-line', Section.TIPS); | |
182 updateSimpleSection('recently-closed', Section.RECENT); | 176 updateSimpleSection('recently-closed', Section.RECENT); |
183 updateSimpleSection('most-visited-section', Section.THUMB); | 177 updateSimpleSection('most-visited-section', Section.THUMB); |
184 updateSimpleSection('debug', Section.DEBUG); | 178 updateSimpleSection('debug', Section.DEBUG); |
185 </script> | 179 </script> |
186 | 180 |
187 <div id="sync-status"> | 181 <div id="sync-status"> |
188 <h2></h2> | 182 <h2></h2> |
189 <span></span> | 183 <span></span> |
190 </div> | 184 </div> |
191 | 185 |
(...skipping 24 matching lines...) Expand all Loading... |
216 i18nTemplate.process(document, templateData); | 210 i18nTemplate.process(document, templateData); |
217 </script> | 211 </script> |
218 <script src="shared/js/local_strings.js"></script> | 212 <script src="shared/js/local_strings.js"></script> |
219 <script src="shared/js/class_list.js"></script> | 213 <script src="shared/js/class_list.js"></script> |
220 <script src="shared/js/parse_html_subset.js"></script> | 214 <script src="shared/js/parse_html_subset.js"></script> |
221 <script src="ntp/util.js"></script> | 215 <script src="ntp/util.js"></script> |
222 <script src="ntp/most_visited.js"></script> | 216 <script src="ntp/most_visited.js"></script> |
223 <script src="new_new_tab.js"></script> | 217 <script src="new_new_tab.js"></script> |
224 <script src="ntp/apps.js"></script> | 218 <script src="ntp/apps.js"></script> |
225 </html> | 219 </html> |
OLD | NEW |