| 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 <script src="shared/js/cr/ui/menu_button.js"></script> | 281 <script src="shared/js/cr/ui/menu_button.js"></script> |
| 282 <script src="shared/js/cr/ui/context_menu_button.js"></script> | 282 <script src="shared/js/cr/ui/context_menu_button.js"></script> |
| 283 <script src="shared/js/cr/ui/context_menu_handler.js"></script> | 283 <script src="shared/js/cr/ui/context_menu_handler.js"></script> |
| 284 | 284 |
| 285 <script src="ntp/util.js"></script> | 285 <script src="ntp/util.js"></script> |
| 286 <script src="ntp/most_visited.js"></script> | 286 <script src="ntp/most_visited.js"></script> |
| 287 <script src="new_new_tab.js"></script> | 287 <script src="new_new_tab.js"></script> |
| 288 <script src="ntp/apps.js"></script> | 288 <script src="ntp/apps.js"></script> |
| 289 | 289 |
| 290 <script> | 290 <script> |
| 291 cr.ui.decorate('menu', cr.ui.Menu); | 291 cr.ui.decorate('menu', cr.ui.Menu); |
| 292 cr.ui.decorate('command', cr.ui.Command); | 292 cr.ui.decorate('command', cr.ui.Command); |
| 293 cr.ui.decorate('button[menu]', cr.ui.MenuButton); | 293 cr.ui.decorate('button[menu]', cr.ui.MenuButton); |
| 294 </script> | |
| 295 | 294 |
| 296 <script> | 295 if (cr.isChromeOS) |
| 296 $('closed-sections-bar').setAttribute('chromeos', true); |
| 297 |
| 297 initializeLogin(); | 298 initializeLogin(); |
| 298 | 299 |
| 299 initializeSection('apps', MINIMIZED_APPS, Section.APPS); | 300 initializeSection('apps', MINIMIZED_APPS, Section.APPS); |
| 300 initializeSection('most-visited', MINIMIZED_THUMB, Section.THUMB); | 301 initializeSection('most-visited', MINIMIZED_THUMB, Section.THUMB); |
| 301 initializeSection('recently-closed', MINIMIZED_RECENT); | 302 initializeSection('recently-closed', MINIMIZED_RECENT); |
| 302 | 303 |
| 303 updateSimpleSection('apps', Section.APPS); | 304 updateSimpleSection('apps', Section.APPS); |
| 304 updateSimpleSection('most-visited', Section.THUMB); | 305 updateSimpleSection('most-visited', Section.THUMB); |
| 305 var appsInitiallyVisible = !(shownSections & MINIMIZED_APPS); | 306 var appsInitiallyVisible = !(shownSections & MINIMIZED_APPS); |
| 306 var mostVisitedInitiallyVisible = !(shownSections & MINIMIZED_THUMB); | 307 var mostVisitedInitiallyVisible = !(shownSections & MINIMIZED_THUMB); |
| 307 var recentlyClosedInitiallyVisible = !(shownSections & MINIMIZED_RECENT); | 308 var recentlyClosedInitiallyVisible = !(shownSections & MINIMIZED_RECENT); |
| 308 // Apps and recently closed start as hidden in the HTML, most visited is | 309 // Apps and recently closed start as hidden in the HTML, most visited is |
| 309 // initially visible. Adapt to the change received from the prefs by forcing | 310 // initially visible. Adapt to the change received from the prefs by forcing |
| 310 // all three sections to update. | 311 // all three sections to update. |
| 311 shownSections &= ~MINIMIZED_THUMB; | 312 shownSections &= ~MINIMIZED_THUMB; |
| 312 shownSections |= MINIMIZED_APPS | MINIMIZED_RECENT; | 313 shownSections |= MINIMIZED_APPS | MINIMIZED_RECENT; |
| 313 setSectionVisible('apps', Section.APPS, appsInitiallyVisible, MINIMIZED_APPS); | 314 setSectionVisible('apps', Section.APPS, appsInitiallyVisible, MINIMIZED_APPS); |
| 314 setSectionVisible( | 315 setSectionVisible( |
| 315 'most-visited', Section.THUMB, | 316 'most-visited', Section.THUMB, |
| 316 mostVisitedInitiallyVisible, MINIMIZED_THUMB); | 317 mostVisitedInitiallyVisible, MINIMIZED_THUMB); |
| 317 setSectionVisible( | 318 setSectionVisible( |
| 318 'recently-closed', undefined, | 319 'recently-closed', undefined, |
| 319 recentlyClosedInitiallyVisible, MINIMIZED_RECENT); | 320 recentlyClosedInitiallyVisible, MINIMIZED_RECENT); |
| 320 layoutSections(); | 321 layoutSections(); |
| 321 </script> | 322 </script> |
| 322 </html> | 323 </html> |
| OLD | NEW |