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

Unified Diff: chrome/browser/resources/extensions_ui.html

Issue 159323: Make possible restarting extensions from the chrome://extensions/ page.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/extensions/extensions_ui.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/extensions_ui.html
===================================================================
--- chrome/browser/resources/extensions_ui.html (revision 21643)
+++ chrome/browser/resources/extensions_ui.html (working copy)
@@ -125,6 +125,14 @@
}
/**
+ * Handles a 'reload' button getting clicked.
+ */
+function handleReloadExtension(node) {
+ // Tell the C++ ExtensionDOMHandler to reload the extension.
+ chrome.send('reload', [node.extensionId]);
+}
+
+/**
* Handles an 'uninstall' button getting clicked.
*/
function handleUninstallExtension(node) {
@@ -170,8 +178,8 @@
text-align: left;
}
-div.extension-uninstall {
- margin-bottom: 1em;
+div.extension-actions {
+ margin: 1em;
}
dl {
@@ -250,9 +258,13 @@
<div jsdisplay="extensions.length > 0">
<div class="extension" jsselect="extensions">
<div class="extension-name" jscontent="name">Extension Name</div>
- <div class="extension-uninstall">
+ <div class="extension-actions">
<button
jsvalues=".extensionId:id"
+ onclick="handleReloadExtension(this)"
+ >Reload</button>
+ <button
+ jsvalues=".extensionId:id"
onclick="handleUninstallExtension(this)"
>Uninstall</button>
</div>
« 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