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 customlogo:customlogo" | 8 customlogo:customlogo" |
9 install-animation-enabled="true"> | 9 install-animation-enabled="true"> |
10 <head> | 10 <head> |
(...skipping 27 matching lines...) Expand all Loading... |
38 logEvent('Calling the new ' + name); | 38 logEvent('Calling the new ' + name); |
39 global[name].apply(null, args); | 39 global[name].apply(null, args); |
40 }); | 40 }); |
41 } | 41 } |
42 }; | 42 }; |
43 global[name] = f; | 43 global[name] = f; |
44 } | 44 } |
45 | 45 |
46 chrome.send('getMostVisited'); | 46 chrome.send('getMostVisited'); |
47 chrome.send('getRecentlyClosedTabs'); | 47 chrome.send('getRecentlyClosedTabs'); |
| 48 chrome.send('getForeignSessions'); |
48 chrome.send('getApps'); | 49 chrome.send('getApps'); |
49 | 50 |
50 registerCallback('mostVisitedPages'); | 51 registerCallback('mostVisitedPages'); |
51 registerCallback('recentlyClosedTabs'); | 52 registerCallback('recentlyClosedTabs'); |
52 registerCallback('syncMessageChanged'); | 53 registerCallback('syncMessageChanged'); |
53 registerCallback('getAppsCallback'); | 54 registerCallback('getAppsCallback'); |
54 registerCallback('setShownSections'); | 55 registerCallback('setShownSections'); |
| 56 registerCallback('foreignSessions'); |
55 | 57 |
56 </script> | 58 </script> |
57 <!-- template data placeholder --> | 59 <!-- template data placeholder --> |
58 <link rel="stylesheet" href="new_new_tab.css"> | 60 <link rel="stylesheet" href="new_new_tab.css"> |
59 <link rel="stylesheet" href="ntp/most_visited.css"> | 61 <link rel="stylesheet" href="ntp/most_visited.css"> |
60 <link rel="stylesheet" href="ntp/apps.css"> | 62 <link rel="stylesheet" href="ntp/apps.css"> |
61 <link rel="stylesheet" href="shared/css/menu.css"> | 63 <link rel="stylesheet" href="shared/css/menu.css"> |
62 <script> | 64 <script> |
63 | 65 |
64 /** | 66 /** |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 <div id="recently-closed" class="section hidden disabled" section="RECENT" | 179 <div id="recently-closed" class="section hidden disabled" section="RECENT" |
178 noexpand="true"> | 180 noexpand="true"> |
179 <h2> | 181 <h2> |
180 <div class="back"></div> | 182 <div class="back"></div> |
181 <span i18n-content="recentlyclosed"></span> | 183 <span i18n-content="recentlyclosed"></span> |
182 <button class="section-close-button"></button> | 184 <button class="section-close-button"></button> |
183 </h2> | 185 </h2> |
184 <div class="miniview"></div> | 186 <div class="miniview"></div> |
185 </div> | 187 </div> |
186 | 188 |
| 189 <!-- Start disabled until sync is enabled and foreign sessions are |
| 190 available. --> |
| 191 <div id="foreign-sessions" class="section hidden disabled" section="SYNC"> |
| 192 <h2> |
| 193 <div class="back"></div> |
| 194 <span i18n-content="foreignsessions"></span> |
| 195 </h2> |
| 196 <div class="miniview"></div> |
| 197 </div> |
| 198 |
187 <div id="sync-status" class="section disabled"> | 199 <div id="sync-status" class="section disabled"> |
188 <div> | 200 <div> |
189 <h3></h3> | 201 <h3></h3> |
190 <span></span> | 202 <span></span> |
191 </div> | 203 </div> |
192 </div> | 204 </div> |
193 </div> | 205 </div> |
194 | 206 |
195 <div id="closed-sections-bar"> | 207 <div id="closed-sections-bar"> |
196 <!-- The default visibility of these buttons needs to be the opposite of the | 208 <!-- The default visibility of these buttons needs to be the opposite of the |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 setSectionVisible('apps', Section.APPS, appsInitiallyVisible, MINIMIZED_APPS); | 305 setSectionVisible('apps', Section.APPS, appsInitiallyVisible, MINIMIZED_APPS); |
294 setSectionVisible( | 306 setSectionVisible( |
295 'most-visited', Section.THUMB, | 307 'most-visited', Section.THUMB, |
296 mostVisitedInitiallyVisible, MINIMIZED_THUMB); | 308 mostVisitedInitiallyVisible, MINIMIZED_THUMB); |
297 setSectionVisible( | 309 setSectionVisible( |
298 'recently-closed', undefined, | 310 'recently-closed', undefined, |
299 recentlyClosedInitiallyVisible, MINIMIZED_RECENT); | 311 recentlyClosedInitiallyVisible, MINIMIZED_RECENT); |
300 layoutSections(); | 312 layoutSections(); |
301 </script> | 313 </script> |
302 </html> | 314 </html> |
OLD | NEW |