| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 </script> | 59 </script> |
| 60 <!-- template data placeholder --> | 60 <!-- template data placeholder --> |
| 61 <link rel="stylesheet" href="new_tab.css"> | 61 <link rel="stylesheet" href="new_tab.css"> |
| 62 <link rel="stylesheet" href="ntp/most_visited.css"> | 62 <link rel="stylesheet" href="ntp/most_visited.css"> |
| 63 <link rel="stylesheet" href="ntp/apps.css"> | 63 <link rel="stylesheet" href="ntp/apps.css"> |
| 64 <link rel="stylesheet" href="shared/css/menu.css"> | 64 <link rel="stylesheet" href="shared/css/menu.css"> |
| 65 <link rel="stylesheet" href="chrome://resources/css/button.css"> | 65 <link rel="stylesheet" href="chrome://resources/css/button.css"> |
| 66 <link rel="stylesheet" href="chrome://resources/css/throbber.css"> | 66 <link rel="stylesheet" href="chrome://resources/css/throbber.css"> |
| 67 <link rel="stylesheet" href="sync_setup_overlay.css"> | 67 <link rel="stylesheet" href="sync_setup_overlay.css"> |
| 68 <link rel="stylesheet" href="new_tab_sync_promo.css"> |
| 68 <script> | 69 <script> |
| 69 | 70 |
| 70 /** | 71 /** |
| 71 * Bitmask for the different UI sections. | 72 * Bitmask for the different UI sections. |
| 72 * This matches the Section enum in ../webui/shown_sections_handler.h | 73 * This matches the Section enum in ../webui/shown_sections_handler.h |
| 73 * @enum {number} | 74 * @enum {number} |
| 74 */ | 75 */ |
| 75 var Section = { | 76 var Section = { |
| 76 THUMB: 1 << 0, | 77 THUMB: 1 << 0, |
| 77 APPS: 1 << 6 | 78 APPS: 1 << 6 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 // on it. | 122 // on it. |
| 122 if ('mode' in hashParams) { | 123 if ('mode' in hashParams) { |
| 123 document.documentElement.setAttribute('mode', hashParams['mode']); | 124 document.documentElement.setAttribute('mode', hashParams['mode']); |
| 124 } | 125 } |
| 125 | 126 |
| 126 </script> | 127 </script> |
| 127 </head> | 128 </head> |
| 128 <body class="loading" | 129 <body class="loading" |
| 129 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> | 130 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> |
| 130 | 131 |
| 132 <div id="sync-promo" class="collapsed" hidden> |
| 133 <div id="sync-promo-login-status"> |
| 134 <span id="sync-promo-user-name"></span> |
| 135 <span id="sync-promo-not-connected" |
| 136 i18n-content="statusNotConnected" hidden></span> |
| 137 </div> |
| 138 <div id="sync-promo-contents"> |
| 139 <include src="sync_setup_overlay.html"> |
| 140 </div> |
| 141 <div id="sync-promo-toggle"> |
| 142 <input id="sync-promo-toggle-button" type="image" |
| 143 src="sync_promo_minimize.png"> |
| 144 </div> |
| 145 </div> |
| 146 |
| 131 <div id="attribution" class="attribution nolayout"> | 147 <div id="attribution" class="attribution nolayout"> |
| 132 <div i18n-content="attributionintro"></div> | 148 <div i18n-content="attributionintro"></div> |
| 133 <img id="attribution-img"> | 149 <img id="attribution-img"> |
| 134 </div> | 150 </div> |
| 135 | 151 |
| 136 <div id="main"> | 152 <div id="main"> |
| 137 | 153 |
| 138 <div id="notification-container"> | 154 <div id="notification-container"> |
| 139 <div id="notification"> | 155 <div id="notification"> |
| 140 <div> </div> | 156 <div> </div> |
| 141 <div class="link"><div class="link-color" id="action-link"></div></div> | 157 <div class="link"><div class="link-color" id="action-link"></div></div> |
| 142 <button id="notification-close"><div></div></button> | 158 <button id="notification-close"><div></div></button> |
| 143 </div> | 159 </div> |
| 144 </div> | 160 </div> |
| 145 | 161 |
| 146 <include src="sync_setup_overlay.html"> | |
| 147 | |
| 148 <div id="login-container"> | 162 <div id="login-container"> |
| 149 <span id="login-username"></span> | 163 <span id="login-username"></span> |
| 150 </div> | 164 </div> |
| 151 | 165 |
| 152 <div class="maxiview" id="apps-maxiview"> | 166 <div class="maxiview" id="apps-maxiview"> |
| 153 <div id="apps-promo"> | 167 <div id="apps-promo"> |
| 154 <p id="apps-promo-heading"></p> | 168 <p id="apps-promo-heading"></p> |
| 155 <a class="g-button-basic" id="apps-promo-link" href=""></a><br> | 169 <a class="g-button-basic" id="apps-promo-link" href=""></a><br> |
| 156 <button id="apps-promo-hide"></button> | 170 <button id="apps-promo-hide"></button> |
| 157 </div> | 171 </div> |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 <script src="shared/js/cr/ui/menu_button.js"></script> | 319 <script src="shared/js/cr/ui/menu_button.js"></script> |
| 306 <script src="shared/js/cr/ui/context_menu_button.js"></script> | 320 <script src="shared/js/cr/ui/context_menu_button.js"></script> |
| 307 <script src="shared/js/cr/ui/context_menu_handler.js"></script> | 321 <script src="shared/js/cr/ui/context_menu_handler.js"></script> |
| 308 | 322 |
| 309 <script src="ntp/drag_drop_controller.js"></script> | 323 <script src="ntp/drag_drop_controller.js"></script> |
| 310 <script src="ntp/most_visited.js"></script> | 324 <script src="ntp/most_visited.js"></script> |
| 311 <script src="new_tab.js"></script> | 325 <script src="new_tab.js"></script> |
| 312 <script src="ntp/apps.js"></script> | 326 <script src="ntp/apps.js"></script> |
| 313 | 327 |
| 314 <script src="chrome://resources/js/cr/event_target.js"></script> | 328 <script src="chrome://resources/js/cr/event_target.js"></script> |
| 329 <!-- TODO(sail): Refactor options_page and remove this include. --> |
| 315 <script src="options/options_page.js"></script> | 330 <script src="options/options_page.js"></script> |
| 316 <script src="sync_setup_overlay.js"></script> | 331 <script src="sync_setup_overlay.js"></script> |
| 317 <script src="new_tab_sync_promo.js"></script> | 332 <script src="new_tab_sync_promo.js"></script> |
| 318 | 333 |
| 319 <script> | 334 <script> |
| 320 cr.ui.decorate('menu', cr.ui.Menu); | 335 cr.ui.decorate('menu', cr.ui.Menu); |
| 321 cr.ui.decorate('command', cr.ui.Command); | 336 cr.ui.decorate('command', cr.ui.Command); |
| 322 cr.ui.decorate('button[menu]', cr.ui.MenuButton); | 337 cr.ui.decorate('button[menu]', cr.ui.MenuButton); |
| 323 | 338 |
| 324 if (cr.isChromeOS) | 339 if (cr.isChromeOS) |
| (...skipping 12 matching lines...) Expand all Loading... |
| 337 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT; | 352 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT; |
| 338 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS); | 353 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS); |
| 339 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu, | 354 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu, |
| 340 MENU_THUMB); | 355 MENU_THUMB); |
| 341 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu, | 356 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu, |
| 342 MENU_RECENT); | 357 MENU_RECENT); |
| 343 | 358 |
| 344 layoutSections(); | 359 layoutSections(); |
| 345 </script> | 360 </script> |
| 346 </html> | 361 </html> |
| OLD | NEW |