summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authoraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 10:31:06 +0000
committeraa@chromium.org <aa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-31 10:31:06 +0000
commit97c4e8980c65df6fa56f87c09a820ec7626d2e02 (patch)
treea370d79cd5a6b187480d6ba1c049105ffc228796 /chrome/browser/resources
parent4eef339d670cfc2c884719347558647aab609f76 (diff)
downloadchromium_src-97c4e8980c65df6fa56f87c09a820ec7626d2e02.zip
chromium_src-97c4e8980c65df6fa56f87c09a820ec7626d2e02.tar.gz
chromium_src-97c4e8980c65df6fa56f87c09a820ec7626d2e02.tar.bz2
Adds a button to chrome://extensions/ that allows easy packing
of extensions into crx files. BUG=20578 TEST=Create a sample extension, pack it, then try to install it. Review URL: http://codereview.chromium.org/181020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24877 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/extensions_ui.html20
1 files changed, 16 insertions, 4 deletions
diff --git a/chrome/browser/resources/extensions_ui.html b/chrome/browser/resources/extensions_ui.html
index d0b8116..86abf84 100644
--- a/chrome/browser/resources/extensions_ui.html
+++ b/chrome/browser/resources/extensions_ui.html
@@ -57,7 +57,12 @@ div.content {
font-size:84%;
white-space:nowrap;
margin-top:-5px;
- margin-right:30px;
+ margin-right:2px;
+}
+
+.sidebar-content button {
+ -webkit-box-sizing:border-box;
+ width:100%;
}
h2 {
@@ -264,6 +269,13 @@ function handleUninstallExtension(node) {
function loadExtension() {
chrome.send('load', []);
}
+
+/**
+ * Handles the "Pack extension..." button being pressed.
+ */
+function packExtension() {
+ chrome.send('pack', []);
+}
</script>
</head>
<body onload="requestExtensionsData();">
@@ -325,13 +337,13 @@ function loadExtension() {
</div>
</td>
- <td style="min-width:30px"></td>
- <td style="min-width:30px"></td>
+ <td style="min-width:20px"></td>
<td valign="top">
<h2>Tools</h2>
<div class="sidebar-content">
- <button onclick="loadExtension()">Load Extension from Directory...</button>
+ <button onclick="loadExtension()">Load Unpacked Extension...</button><br />
+ <button onclick="packExtension()">Pack Extension...</button>
</div>
</td>
</tr>