summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources
diff options
context:
space:
mode:
authorrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-23 05:05:49 +0000
committerrafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-23 05:05:49 +0000
commit7197f4999afa5e767fa9ed76fdc7e67db080f9d2 (patch)
tree52eba2af9f010576998b0d71ac2e9dfa4f2581ca /chrome/browser/resources
parent648200ffe8c0d0fc89b577297e1ad5109b97fc5a (diff)
downloadchromium_src-7197f4999afa5e767fa9ed76fdc7e67db080f9d2.zip
chromium_src-7197f4999afa5e767fa9ed76fdc7e67db080f9d2.tar.gz
chromium_src-7197f4999afa5e767fa9ed76fdc7e67db080f9d2.tar.bz2
Support for extensions permissions. This CL only contains, parsing, initializing values into Extension, outputting values to the extension_ui, and appropriate unit test changes
Review URL: http://codereview.chromium.org/42480 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@12273 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/resources')
-rw-r--r--chrome/browser/resources/extensions.html20
1 files changed, 18 insertions, 2 deletions
diff --git a/chrome/browser/resources/extensions.html b/chrome/browser/resources/extensions.html
index e719f91..55a21d8 100644
--- a/chrome/browser/resources/extensions.html
+++ b/chrome/browser/resources/extensions.html
@@ -14,6 +14,7 @@ var extensionDataFormat = {
"name": "Extension Name",
"description": "Extension long format description",
"version": "1.0.231",
+ "permissions": ["http://*/*", "http://other.com/*"],
"content_scripts": [
{
"js": ["script1_file1.js", "script1_file2.js"],
@@ -185,14 +186,29 @@ th.enabled {
<div jsdisplay="extensions.length > 0">
<div class="extension" jsselect="extensions">
<div class="extension-name" jscontent="name">
- sExtension Name</div>
+ Extension Name
+ </div>
<dl>
<dd>
<span jscontent="description">Extension Description</span>
</dd>
<dd>Version: <span jscontent="version">x.x.x.x</span></dd>
</dl>
-
+ <table>
+ <thead>
+ <tr><th colspan="2">Configuration</th></tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>Permissions</td>
+ <td>
+ <span jsselect="permissions"
+ jscontent="(($index > 0) ? ', ' : '') + $this">
+ </span>
+ </td>
+ </tr>
+ </tbody>
+ </table>
<table jsselect="content_scripts">
<thead>
<tr><th colspan="2">Content Script</th></tr>