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

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

Issue 7399015: Sync Promo: Add a way to collapse the sync promo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove extra changes Created 9 years, 5 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 | Annotate | Revision Log
OLDNEW
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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
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="options/options_page.css"> 67 <link rel="stylesheet" href="options/options_page.css">
68 <link rel="stylesheet" href="sync_setup_overlay.css"> 68 <link rel="stylesheet" href="sync_setup_overlay.css">
69 <link rel="stylesheet" href="new_tab_sync_promo.css">
69 <script> 70 <script>
70 71
71 /** 72 /**
72 * Bitmask for the different UI sections. 73 * Bitmask for the different UI sections.
73 * This matches the Section enum in ../webui/shown_sections_handler.h 74 * This matches the Section enum in ../webui/shown_sections_handler.h
74 * @enum {number} 75 * @enum {number}
75 */ 76 */
76 var Section = { 77 var Section = {
77 THUMB: 1 << 0, 78 THUMB: 1 << 0,
78 APPS: 1 << 6 79 APPS: 1 << 6
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // on it. 123 // on it.
123 if ('mode' in hashParams) { 124 if ('mode' in hashParams) {
124 document.documentElement.setAttribute('mode', hashParams['mode']); 125 document.documentElement.setAttribute('mode', hashParams['mode']);
125 } 126 }
126 127
127 </script> 128 </script>
128 </head> 129 </head>
129 <body class="loading" 130 <body class="loading"
130 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 131 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
131 132
133 <div id="sync-promo" class="collapsed" hidden>
134 <div id="sync-promo-login-status">
135 <span id="sync-promo-user-name"></span>
136 <span id="sync-promo-not-connected"
137 i18n-content="statusNotConnected" hidden></span>
138 </div>
139 <div id="sync-promo-contents">
140 <include src="sync_setup_overlay.html">
141 </div>
142 <div id="sync-promo-toggle">
143 <input id="sync-promo-toggle-button" type="image"
144 src="sync_promo_minimize.png"/>
James Hawkins 2011/07/18 02:37:36 s/\///
sail 2011/07/20 01:30:46 Done.
145 </div>
146 </div>
147
132 <div id="attribution" class="attribution nolayout"> 148 <div id="attribution" class="attribution nolayout">
133 <div i18n-content="attributionintro"></div> 149 <div i18n-content="attributionintro"></div>
134 <img id="attribution-img"> 150 <img id="attribution-img">
135 </div> 151 </div>
136 152
137 <div id="main"> 153 <div id="main">
138 154
139 <div id="notification-container"> 155 <div id="notification-container">
140 <div id="notification"> 156 <div id="notification">
141 <div>&nbsp;</div> 157 <div>&nbsp;</div>
142 <div class="link"><div class="link-color" id="action-link"></div></div> 158 <div class="link"><div class="link-color" id="action-link"></div></div>
143 <button id="notification-close"><div></div></button> 159 <button id="notification-close"><div></div></button>
144 </div> 160 </div>
145 </div> 161 </div>
146 162
147 <include src="sync_setup_overlay.html">
148
149 <div id="login-container"> 163 <div id="login-container">
150 <span id="login-username"></span> 164 <span id="login-username"></span>
151 </div> 165 </div>
152 166
153 <div class="maxiview" id="apps-maxiview"> 167 <div class="maxiview" id="apps-maxiview">
154 <div id="apps-promo"> 168 <div id="apps-promo">
155 <p id="apps-promo-heading"></p> 169 <p id="apps-promo-heading"></p>
156 <a class="g-button-basic" id="apps-promo-link" href=""></a><br> 170 <a class="g-button-basic" id="apps-promo-link" href=""></a><br>
157 <button id="apps-promo-hide"></button> 171 <button id="apps-promo-hide"></button>
158 </div> 172 </div>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT; 352 var recentlyClosedInitiallyMenu = shownSections & MENU_RECENT;
339 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS); 353 setSectionMenuMode('apps', Section.APPS, appsInitiallyMenu, MENU_APPS);
340 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu, 354 setSectionMenuMode('most-visited', Section.THUMB, mostVisitedInitiallyMenu,
341 MENU_THUMB); 355 MENU_THUMB);
342 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu, 356 setSectionMenuMode('recently-closed', undefined, recentlyClosedInitiallyMenu,
343 MENU_RECENT); 357 MENU_RECENT);
344 358
345 layoutSections(); 359 layoutSections();
346 </script> 360 </script>
347 </html> 361 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698