| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 cr.define('options', function() { | 5 cr.define('options', function() { |
| 6 /** | 6 /** |
| 7 * Creates a new list of extensions. | 7 * Creates a new list of extensions. |
| 8 * @param {Object=} opt_propertyBag Optional properties. | 8 * @param {Object=} opt_propertyBag Optional properties. |
| 9 * @constructor | 9 * @constructor |
| 10 * @extends {cr.ui.div} | 10 * @extends {cr.ui.div} |
| (...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 for (var i = 0; i < extension.views.length; ++i) { | 381 for (var i = 0; i < extension.views.length; ++i) { |
| 382 // Then active views: | 382 // Then active views: |
| 383 content = this.ownerDocument.createElement('div'); | 383 content = this.ownerDocument.createElement('div'); |
| 384 var link = this.ownerDocument.createElement('a'); | 384 var link = this.ownerDocument.createElement('a'); |
| 385 link.classList.add('extension-links-view'); | 385 link.classList.add('extension-links-view'); |
| 386 link.textContent = extension.views[i].path; | 386 link.textContent = extension.views[i].path; |
| 387 link.id = extension.id; | 387 link.id = extension.id; |
| 388 link.href = '#'; | 388 link.href = '#'; |
| 389 link.addEventListener('click', this.sendInspectMessage_.bind(this)); | 389 link.addEventListener('click', this.sendInspectMessage_.bind(this)); |
| 390 content.appendChild(link); | 390 content.appendChild(link); |
| 391 |
| 392 if (extension.views[i].incognito) { |
| 393 var incognito = this.ownerDocument.createElement('span'); |
| 394 incognito.classList.add('extension-links-view'); |
| 395 incognito.textContent = |
| 396 localStrings.getString('viewIncognito'); |
| 397 content.appendChild(incognito); |
| 398 } |
| 399 |
| 391 td.appendChild(content); | 400 td.appendChild(content); |
| 392 tr.appendChild(td); | 401 tr.appendChild(td); |
| 393 | 402 |
| 394 itemsShown++; | 403 itemsShown++; |
| 395 } | 404 } |
| 396 } | 405 } |
| 397 } | 406 } |
| 398 | 407 |
| 399 var content = this.ownerDocument.createElement('div'); | 408 var content = this.ownerDocument.createElement('div'); |
| 400 details_contents.appendChild(content); | 409 details_contents.appendChild(content); |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 688 ]); | 697 ]); |
| 689 } | 698 } |
| 690 } | 699 } |
| 691 }, | 700 }, |
| 692 }; | 701 }; |
| 693 | 702 |
| 694 return { | 703 return { |
| 695 ExtensionsList: ExtensionsList | 704 ExtensionsList: ExtensionsList |
| 696 }; | 705 }; |
| 697 }); | 706 }); |
| OLD | NEW |