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

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

Issue 3393013: Fix a bug where we would show both the apps and thumb sections (Closed) Base URL: git://codf21.jail/chromium.git
Patch Set: whoops Created 10 years, 3 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
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 <head> 9 <head>
10 <meta charset="utf-8"> 10 <meta charset="utf-8">
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 <link rel="stylesheet" href="shared/css/menu.css"> 60 <link rel="stylesheet" href="shared/css/menu.css">
61 <script> 61 <script>
62 62
63 /** 63 /**
64 * Bitmask for the different UI sections. 64 * Bitmask for the different UI sections.
65 * This matches the Section enum in ../dom_ui/shown_sections_handler.h 65 * This matches the Section enum in ../dom_ui/shown_sections_handler.h
66 * @enum {number} 66 * @enum {number}
67 */ 67 */
68 var Section = { 68 var Section = {
69 THUMB: 1, 69 THUMB: 1,
70 // LIST is no longer used
71 RECENT: 4,
72 // TIPS is no longer used
73 SYNC: 16,
74 DEBUG: 32,
75 APPS: 64 70 APPS: 64
76 }; 71 };
77 72
78 var shownSections = templateData['shown_sections']; 73 var shownSections = templateData['shown_sections'];
79 74
80 // Until themes can clear the cache, force-reload the theme stylesheet. 75 // Until themes can clear the cache, force-reload the theme stylesheet.
81 document.write('<link id="themecss" rel="stylesheet" ' + 76 document.write('<link id="themecss" rel="stylesheet" ' +
82 'href="chrome://theme/css/newtab.css?' + 77 'href="chrome://theme/css/newtab.css?' +
83 Date.now() + '">'); 78 Date.now() + '">');
84 79
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 210
216 <script> 211 <script>
217 cr.ui.decorate('menu', cr.ui.Menu); 212 cr.ui.decorate('menu', cr.ui.Menu);
218 cr.ui.decorate('command', cr.ui.Command); 213 cr.ui.decorate('command', cr.ui.Command);
219 cr.ui.decorate('button[menu]', cr.ui.MenuButton); 214 cr.ui.decorate('button[menu]', cr.ui.MenuButton);
220 </script> 215 </script>
221 216
222 <script> 217 <script>
223 updateSimpleSection('apps', Section.APPS); 218 updateSimpleSection('apps', Section.APPS);
224 updateSimpleSection('most-visited', Section.THUMB); 219 updateSimpleSection('most-visited', Section.THUMB);
225 updateSimpleSection('recently-closed', Section.RECENT);
226 layoutSections(); 220 layoutSections();
227 </script> 221 </script>
228 </html> 222 </html>
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/shown_sections_handler_unittest.cc ('k') | chrome/browser/resources/ntp/apps.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698