| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 <include src="extension_error.js"> | 5 <include src="extension_error.js"> |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * The type of the extension data object. The definition is based on | 8 * The type of the extension data object. The definition is based on |
| 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc | 9 * chrome/browser/ui/webui/extensions/extension_basic_info.cc |
| 10 * and | 10 * and |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 var version = node.querySelector('.extension-version'); | 194 var version = node.querySelector('.extension-version'); |
| 195 version.textContent = extension.version; | 195 version.textContent = extension.version; |
| 196 | 196 |
| 197 var locationText = node.querySelector('.location-text'); | 197 var locationText = node.querySelector('.location-text'); |
| 198 locationText.textContent = extension.locationText; | 198 locationText.textContent = extension.locationText; |
| 199 | 199 |
| 200 var blacklistText = node.querySelector('.blacklist-text'); | 200 var blacklistText = node.querySelector('.blacklist-text'); |
| 201 blacklistText.textContent = extension.blacklistText; | 201 blacklistText.textContent = extension.blacklistText; |
| 202 | 202 |
| 203 var description = node.querySelector('.extension-description span'); | 203 var description = document.createElement('span'); |
| 204 description.textContent = extension.description; | 204 description.textContent = extension.description; |
| 205 node.querySelector('.extension-description').appendChild(description); |
| 205 | 206 |
| 206 // The 'Show Browser Action' button. | 207 // The 'Show Browser Action' button. |
| 207 if (extension.enable_show_button) { | 208 if (extension.enable_show_button) { |
| 208 var showButton = node.querySelector('.show-button'); | 209 var showButton = node.querySelector('.show-button'); |
| 209 showButton.addEventListener('click', function(e) { | 210 showButton.addEventListener('click', function(e) { |
| 210 chrome.send('extensionSettingsShowButton', [extension.id]); | 211 chrome.send('extensionSettingsShowButton', [extension.id]); |
| 211 }); | 212 }); |
| 212 showButton.hidden = false; | 213 showButton.hidden = false; |
| 213 } | 214 } |
| 214 | 215 |
| (...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 $('overlay').addEventListener('cancelOverlay', function() { | 530 $('overlay').addEventListener('cancelOverlay', function() { |
| 530 this.optionsShown_ = false; | 531 this.optionsShown_ = false; |
| 531 }.bind(this)); | 532 }.bind(this)); |
| 532 }, | 533 }, |
| 533 }; | 534 }; |
| 534 | 535 |
| 535 return { | 536 return { |
| 536 ExtensionsList: ExtensionsList | 537 ExtensionsList: ExtensionsList |
| 537 }; | 538 }; |
| 538 }); | 539 }); |
| OLD | NEW |