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

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

Issue 3315005: NTP: Adds a context menu to the apps section... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' 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 | 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 bookmarkbarattached:bookmarkbarattached; 4 bookmarkbarattached:bookmarkbarattached;
5 hasattribution:hasattribution; 5 hasattribution:hasattribution;
6 anim:anim; 6 anim:anim;
7 syncispresent:syncispresent; 7 syncispresent:syncispresent">
8 has_3d:has_3d">
9 <head> 8 <head>
10 <meta charset="utf-8"> 9 <meta charset="utf-8">
11 <title i18n-content="title"></title> 10 <title i18n-content="title"></title>
12 <script> 11 <script>
13 // Logging info for benchmarking purposes. 12 // Logging info for benchmarking purposes.
14 var log = []; 13 var log = [];
15 function logEvent(name, shouldLogTime) { 14 function logEvent(name, shouldLogTime) {
16 if (shouldLogTime) { 15 if (shouldLogTime) {
17 chrome.send('logEventTime', [name]); 16 chrome.send('logEventTime', [name]);
18 } 17 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 </head> 115 </head>
117 <body class="loading" 116 <body class="loading"
118 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize"> 117 i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
119 118
120 <div id="attribution" class="attribution"> 119 <div id="attribution" class="attribution">
121 <div i18n-content="attributionintro"></div> 120 <div i18n-content="attributionintro"></div>
122 <img id="attribution-img"> 121 <img id="attribution-img">
123 </div> 122 </div>
124 123
125 <div id="main"> 124 <div id="main">
126 <menu id="option-menu">
127 <div command="clear-all-blacklisted"
128 i18n-content="restorethumbnails"></div>
129 </menu>
130 125
131 <div id="notification"> 126 <div id="notification">
132 <span>&nbsp;</span> 127 <span>&nbsp;</span>
133 <span class="link"><span class="link-color"></span></span> 128 <span class="link"><span class="link-color"></span></span>
134 </div> 129 </div>
135 130
136 <div class="maxiview" id="apps-maxiview"></div> 131 <div class="maxiview" id="apps-maxiview"></div>
137 <div class="maxiview" id="most-visited-maxiview"></div> 132 <div class="maxiview" id="most-visited-maxiview"></div>
138 133
139 <div class="sections"> 134 <div class="sections">
140 <!-- Start disabled. We only enable if we have at least one app. --> 135 <!-- Start disabled. We only enable if we have at least one app. -->
141 <div id="apps" class="section disabled" section="APPS"> 136 <div id="apps" class="section disabled" section="APPS">
142 <h2> 137 <h2>
143 <img class="disclosure" img src="ntp/ntp_disclosure_triangle.png"> 138 <img class="disclosure" img src="ntp/ntp_disclosure_triangle.png">
144 <div class="back"></div> 139 <div class="back"></div>
145 <span i18n-content="apps"></span> 140 <span i18n-content="apps"></span>
146 </h2> 141 </h2>
147 <div class="miniview"></div> 142 <div class="miniview"></div>
148 </div> 143 </div>
149 144
150 <div id="most-visited" class="section" section="THUMB"> 145 <div id="most-visited" class="section" section="THUMB">
151 <h2> 146 <h2>
152 <img class="disclosure" src="ntp/ntp_disclosure_triangle.png"> 147 <img class="disclosure" src="ntp/ntp_disclosure_triangle.png">
153 <div class="back"></div> 148 <div class="back"></div>
154 <span i18n-content="mostvisited"></span> 149 <span i18n-content="mostvisited"></span>
155 <div class="settings-wrapper"><div class="settings"></div></div> 150 <div class="settings-wrapper">
151 <button class="settings" menu="#option-menu"></button>
152 </div>
156 </h2> 153 </h2>
157 <div class="miniview"></div> 154 <div class="miniview"></div>
158 </div> 155 </div>
159 156
160 <!-- Start this section disabled because it might not have data, and looks 157 <!-- Start this section disabled because it might not have data, and looks
161 silly without any. --> 158 silly without any. -->
162 <div id="recently-closed" class="section hidden disabled" section="RECENT" 159 <div id="recently-closed" class="section hidden disabled" section="RECENT"
163 noexpand="true"> 160 noexpand="true">
164 <h2> 161 <h2>
165 <div class="back"></div> 162 <div class="back"></div>
166 <span i18n-content="recentlyclosed"></span> 163 <span i18n-content="recentlyclosed"></span>
167 </h2> 164 </h2>
168 <div class="miniview"></div> 165 <div class="miniview"></div>
169 </div> 166 </div>
170 167
171 <div id="sync-status" class="section disabled"> 168 <div id="sync-status" class="section disabled">
172 <div> 169 <div>
173 <h3></h3> 170 <h3></h3>
174 <span></span> 171 <span></span>
175 </div> 172 </div>
176 </div> 173 </div>
177 </div> 174 </div>
178 </div> <!-- main --> 175 </div> <!-- main -->
179 176
180 <div class="window-menu" id="window-tooltip"></div> 177 <div class="window-menu" id="window-tooltip"></div>
181 178
179 <command id="clear-all-blacklisted" i18n-values=".label:restorethumbnails">
180 <command id="apps-launch-command">
181 <command id="apps-options-command" i18n-values=".label:appoptions">
182 <command id="apps-uninstall-command" i18n-values=".label:appuninstall">
183
184 <menu id="option-menu">
185 <button command="#clear-all-blacklisted"></button>
186 </menu>
187
188 <menu id="app-context-menu">
189 <button class="default" command="#apps-launch-command"></button>
190 <hr>
191 <button command="#apps-options-command"></button>
192 <button command="#apps-uninstall-command"></button>
193 </menu>
194
182 </body> 195 </body>
183 196
184 <script src="shared/js/i18n_template.js"></script> 197 <script src="shared/js/i18n_template.js"></script>
185 <script> 198 <script>
186 i18nTemplate.process(document, templateData); 199 i18nTemplate.process(document, templateData);
187 </script> 200 </script>
188 <script src="shared/js/local_strings.js"></script> 201 <script src="shared/js/local_strings.js"></script>
189 <script src="shared/js/class_list.js"></script> 202 <script src="shared/js/class_list.js"></script>
190 <script src="shared/js/parse_html_subset.js"></script> 203 <script src="shared/js/parse_html_subset.js"></script>
204
205 <script src="shared/js/cr.js"></script>
206 <script src="shared/js/cr/ui.js"></script>
207 <script src="shared/js/cr/ui/command.js"></script>
208 <script src="shared/js/cr/ui/menu_item.js"></script>
209 <script src="shared/js/cr/ui/menu.js"></script>
210 <script src="shared/js/cr/ui/position_util.js"></script>
211 <script src="shared/js/cr/ui/menu_button.js"></script>
212 <script src="shared/js/cr/ui/context_menu_button.js"></script>
213 <script src="shared/js/cr/ui/context_menu_handler.js"></script>
214
191 <script src="ntp/util.js"></script> 215 <script src="ntp/util.js"></script>
192 <script src="ntp/most_visited.js"></script> 216 <script src="ntp/most_visited.js"></script>
193 <script src="new_new_tab.js"></script> 217 <script src="new_new_tab.js"></script>
194 <script src="ntp/apps.js"></script> 218 <script src="ntp/apps.js"></script>
195 219
196 <script> 220 <script>
221 cr.ui.decorate('menu', cr.ui.Menu);
222 cr.ui.decorate('command', cr.ui.Command);
223 cr.ui.decorate('button[menu]', cr.ui.MenuButton);
224 </script>
225
226 <script>
197 updateSimpleSection('apps', Section.APPS); 227 updateSimpleSection('apps', Section.APPS);
198 updateSimpleSection('most-visited', Section.THUMB); 228 updateSimpleSection('most-visited', Section.THUMB);
199 updateSimpleSection('recently-closed', Section.RECENT); 229 updateSimpleSection('recently-closed', Section.RECENT);
200 layoutSections(); 230 layoutSections();
201 </script> 231 </script>
202 </html> 232 </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