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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
265 [extension.id, String(e.target.checked)]); | 265 [extension.id, String(e.target.checked)]); |
266 }); | 266 }); |
267 fileAccess.querySelector('input').checked = extension.allowFileAccess; | 267 fileAccess.querySelector('input').checked = extension.allowFileAccess; |
268 fileAccess.hidden = false; | 268 fileAccess.hidden = false; |
269 } | 269 } |
270 | 270 |
271 // The 'Options' link. | 271 // The 'Options' link. |
272 if (extension.enabled && extension.optionsUrl) { | 272 if (extension.enabled && extension.optionsUrl) { |
273 var options = node.querySelector('.options-link'); | 273 var options = node.querySelector('.options-link'); |
274 options.addEventListener('click', function(e) { | 274 options.addEventListener('click', function(e) { |
275 if (this.data_.enableEmbeddedExtensionOptions) { | 275 if (this.data_.enableEmbeddedExtensionOptions && |
not at google - send to devlin
2014/08/29 05:39:23
The flag check should be unnecessary now, so long
ericzeng
2014/08/29 16:52:22
Hold your horses, I haven't removed the feature fl
ericzeng
2014/08/29 22:08:49
Done.
| |
276 !extension.options_open_in_tab) { | |
276 this.showEmbeddedExtensionOptions_(extension.id, false); | 277 this.showEmbeddedExtensionOptions_(extension.id, false); |
277 } else { | 278 } else { |
278 chrome.send('extensionSettingsOptions', [extension.id]); | 279 chrome.send('extensionSettingsOptions', [extension.id]); |
279 } | 280 } |
280 e.preventDefault(); | 281 e.preventDefault(); |
281 }.bind(this)); | 282 }.bind(this)); |
282 options.hidden = false; | 283 options.hidden = false; |
283 } | 284 } |
284 | 285 |
285 // The 'Permissions' link. | 286 // The 'Permissions' link. |
(...skipping 243 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 |