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"></include> | 5 <include src="extension_error.js"></include> |
6 | 6 |
7 cr.define('options', function() { | 7 cr.define('options', function() { |
8 'use strict'; | 8 'use strict'; |
9 | 9 |
10 /** | 10 /** |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 var title = node.querySelector('.extension-title'); | 111 var title = node.querySelector('.extension-title'); |
112 title.textContent = extension.name; | 112 title.textContent = extension.name; |
113 | 113 |
114 var version = node.querySelector('.extension-version'); | 114 var version = node.querySelector('.extension-version'); |
115 version.textContent = extension.version; | 115 version.textContent = extension.version; |
116 | 116 |
117 var locationText = node.querySelector('.location-text'); | 117 var locationText = node.querySelector('.location-text'); |
118 locationText.textContent = extension.locationText; | 118 locationText.textContent = extension.locationText; |
119 | 119 |
| 120 var blacklistText = node.querySelector('.blacklist-text'); |
| 121 blacklistText.textContent = extension.blacklistText; |
| 122 |
120 var description = node.querySelector('.extension-description span'); | 123 var description = node.querySelector('.extension-description span'); |
121 description.textContent = extension.description; | 124 description.textContent = extension.description; |
122 | 125 |
123 // The 'Show Browser Action' button. | 126 // The 'Show Browser Action' button. |
124 if (extension.enable_show_button) { | 127 if (extension.enable_show_button) { |
125 var showButton = node.querySelector('.show-button'); | 128 var showButton = node.querySelector('.show-button'); |
126 showButton.addEventListener('click', function(e) { | 129 showButton.addEventListener('click', function(e) { |
127 chrome.send('extensionSettingsShowButton', [extension.id]); | 130 chrome.send('extensionSettingsShowButton', [extension.id]); |
128 }); | 131 }); |
129 showButton.hidden = false; | 132 showButton.hidden = false; |
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
348 topScroll -= pad / 2; | 351 topScroll -= pad / 2; |
349 setScrollTopForDocument(document, topScroll); | 352 setScrollTopForDocument(document, topScroll); |
350 } | 353 } |
351 }, | 354 }, |
352 }; | 355 }; |
353 | 356 |
354 return { | 357 return { |
355 ExtensionsList: ExtensionsList | 358 ExtensionsList: ExtensionsList |
356 }; | 359 }; |
357 }); | 360 }); |
OLD | NEW |