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

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

Issue 392005: NTP: Hide "Make this my home page" after setting the home page.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « chrome/browser/resources/new_new_tab.css ('k') | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html i18n-values=" 2 <html i18n-values="
3 dir:textdirection; 3 dir:textdirection;
4 firstview:firstview; 4 firstview:firstview;
5 bookmarkbarattached:bookmarkbarattached; 5 bookmarkbarattached:bookmarkbarattached;
6 hasattribution:hasattribution; 6 hasattribution:hasattribution;
7 anim:anim; 7 anim:anim;
8 syncispresent:syncispresent; 8 syncispresent:syncispresent;
9 showsetashomepage:showsetashomepage"> 9 showsetashomepage:showsetashomepage">
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 chrome.send('getMostVisited'); 46 chrome.send('getMostVisited');
47 chrome.send('getRecentlyClosedTabs'); 47 chrome.send('getRecentlyClosedTabs');
48 chrome.send('getTips'); 48 chrome.send('getTips');
49 49
50 registerCallback('onShownSections'); 50 registerCallback('onShownSections');
51 registerCallback('mostVisitedPages'); 51 registerCallback('mostVisitedPages');
52 registerCallback('recentlyClosedTabs'); 52 registerCallback('recentlyClosedTabs');
53 registerCallback('syncMessageChanged'); 53 registerCallback('syncMessageChanged');
54 registerCallback('tips'); 54 registerCallback('tips');
55 registerCallback('onHomePageSet');
55 56
56 </script> 57 </script>
57 <!-- template data placeholder --> 58 <!-- template data placeholder -->
58 <link rel="stylesheet" href="new_new_tab.css"> 59 <link rel="stylesheet" href="new_new_tab.css">
59 <script> 60 <script>
60 61
61 /** 62 /**
62 * Bitmask for the different UI sections. 63 * Bitmask for the different UI sections.
63 * This matches the Section enum in ../dom_ui/shown_sections_handler.h 64 * This matches the Section enum in ../dom_ui/shown_sections_handler.h
64 * @enum {number} 65 * @enum {number}
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
247 </span> 248 </span>
248 </div> 249 </div>
249 <script>updateSimpleSection('recently-closed', Section.RECENT);</script> 250 <script>updateSimpleSection('recently-closed', Section.RECENT);</script>
250 251
251 <div id="sync-status"> 252 <div id="sync-status">
252 <h2></h2> 253 <h2></h2>
253 <span></span> 254 <span></span>
254 </div> 255 </div>
255 <script>updateSimpleSection('sync-status', Section.SYNC);</script> 256 <script>updateSimpleSection('sync-status', Section.SYNC);</script>
256 257
257 <div id="set-as-homepage"> 258 <div id="set-as-home-page">
258 <button class="link"> 259 <button class="link">
259 <span class="link-color" i18n-content="makethishomepage"></span> 260 <span class="link-color" i18n-content="makethishomepage"></span>
260 </button> 261 </button>
261 </div> 262 </div>
262 263
263 <div id="tip-line"></div> 264 <div id="tip-line"></div>
264 <script>updateSimpleSection('tip-line', Section.TIPS);</script> 265 <script>updateSimpleSection('tip-line', Section.TIPS);</script>
265 266
266 <div id="attribution" class="attribution"> 267 <div id="attribution" class="attribution">
267 <div i18n-content="attributionintro"></div> 268 <div i18n-content="attributionintro"></div>
268 <img id="attribution-img"> 269 <img id="attribution-img">
269 </div> 270 </div>
270 271
271 </div> <!-- main --> 272 </div> <!-- main -->
272 273
273 <div id="themes-promo"> 274 <div id="themes-promo">
274 <a i18n-values="href:themelink"> 275 <a i18n-values="href:themelink">
275 <img src="ntp_themes_promo.png"> 276 <img src="ntp_themes_promo.png">
276 </a> 277 </a>
277 </div> 278 </div>
278 279
279 <div class="window-menu" id="window-tooltip"></div> 280 <div class="window-menu" id="window-tooltip"></div>
280 281
281 </body> 282 </body>
282 <script src="i18n_template.js"></script> 283 <script src="i18n_template.js"></script>
283 <script src="local_strings.js"></script> 284 <script src="local_strings.js"></script>
284 <script src="new_new_tab.js"></script> 285 <script src="new_new_tab.js"></script>
285 </html> 286 </html>
OLDNEW
« no previous file with comments | « chrome/browser/resources/new_new_tab.css ('k') | chrome/browser/resources/new_new_tab.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698