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

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

Issue 199018: Add a disable button to the Extension management UI. (Closed)
Patch Set: comments Created 11 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
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | no next file » | 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> 2 <html>
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="title">About extensions</title> 5 <title i18n-content="title">About extensions</title>
6 <style> 6 <style>
7 body { 7 body {
8 font-size: 84%; 8 font-size: 84%;
9 font-family: Arial, Helvetica, sans-serif; 9 font-family: Arial, Helvetica, sans-serif;
10 padding: 0.75em; 10 padding: 0.75em;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 /** 241 /**
242 * Handles a 'reload' button getting clicked. 242 * Handles a 'reload' button getting clicked.
243 */ 243 */
244 function handleReloadExtension(node) { 244 function handleReloadExtension(node) {
245 // Tell the C++ ExtensionDOMHandler to reload the extension. 245 // Tell the C++ ExtensionDOMHandler to reload the extension.
246 chrome.send('reload', [node.extensionId]); 246 chrome.send('reload', [node.extensionId]);
247 } 247 }
248 248
249 /** 249 /**
250 * Handles a 'reenable' button getting clicked. 250 * Handles a 'enable' or 'disable' button getting clicked.
251 */ 251 */
252 function handleEnableExtension(node) { 252 function handleEnableExtension(node, enable) {
253 // Tell the C++ ExtensionDOMHandler to reload the extension. 253 // Tell the C++ ExtensionDOMHandler to reload the extension.
254 chrome.send('enable', [node.extensionId]); 254 chrome.send('enable', [node.extensionId, String(enable)]);
255 requestExtensionsData(); 255 requestExtensionsData();
256 } 256 }
257 257
258 /** 258 /**
259 * Handles an 'uninstall' button getting clicked. 259 * Handles an 'uninstall' button getting clicked.
260 */ 260 */
261 function handleUninstallExtension(node) { 261 function handleUninstallExtension(node) {
262 // Tell the C++ ExtensionDOMHandler to uninstall an extension. 262 // Tell the C++ ExtensionDOMHandler to uninstall an extension.
263 chrome.send('uninstall', [node.extensionId]); 263 chrome.send('uninstall', [node.extensionId]);
264 } 264 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 Active views: 318 Active views:
319 <ul class="extension-views"> 319 <ul class="extension-views">
320 <li jsselect="views"><span jscontent="path"></span> - 320 <li jsselect="views"><span jscontent="path"></span> -
321 <a jsvalues=".extensionView:$this" href="#" 321 <a jsvalues=".extensionView:$this" href="#"
322 onclick="sendInspectMessage(this.extensionView); ret urn false;" 322 onclick="sendInspectMessage(this.extensionView); ret urn false;"
323 >Inspect</a> 323 >Inspect</a>
324 </ul> 324 </ul>
325 <div class="extension-actions"> 325 <div class="extension-actions">
326 <button 326 <button
327 jsvalues=".extensionId:id" 327 jsvalues=".extensionId:id"
328 jsdisplay="enabled"
329 onclick="handleEnableExtension(this, false)"
330 >Disable</button>
331 <button
332 jsvalues=".extensionId:id"
328 jsdisplay="!enabled" 333 jsdisplay="!enabled"
329 onclick="handleEnableExtension(this)" 334 onclick="handleEnableExtension(this, true)"
330 >Enable</button> 335 >Enable</button>
331 <button 336 <button
332 jsvalues=".extensionId:id" 337 jsvalues=".extensionId:id"
333 jsdisplay="enabled" 338 jsdisplay="enabled"
334 onclick="handleReloadExtension(this)" 339 onclick="handleReloadExtension(this)"
335 >Reload</button> 340 >Reload</button>
336 <button 341 <button
337 jsvalues=".extensionId:id" 342 jsvalues=".extensionId:id"
338 onclick="handleUninstallExtension(this)" 343 onclick="handleUninstallExtension(this)"
339 >Uninstall</button> 344 >Uninstall</button>
(...skipping 14 matching lines...) Expand all
354 <button onclick="packExtension()">Pack extension...</button><br /> 359 <button onclick="packExtension()">Pack extension...</button><br />
355 <button onclick="autoUpdate()">Update extensions now</button> 360 <button onclick="autoUpdate()">Update extensions now</button>
356 </div> 361 </div>
357 </td> 362 </td>
358 </tr> 363 </tr>
359 </table> 364 </table>
360 365
361 </div> <!-- /outside --> 366 </div> <!-- /outside -->
362 </body> 367 </body>
363 </html> 368 </html>
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698