| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * | 10 * |
| (...skipping 631 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 642 } | 642 } |
| 643 return result; | 643 return result; |
| 644 } | 644 } |
| 645 | 645 |
| 646 /** | 646 /** |
| 647 * @constructor | 647 * @constructor |
| 648 * @extends {TreeElement} | 648 * @extends {TreeElement} |
| 649 * @param {string} type | 649 * @param {string} type |
| 650 * @param {string} title | 650 * @param {string} title |
| 651 * @param {!Array.<string>} iconClasses | 651 * @param {!Array.<string>} iconClasses |
| 652 * @param {boolean} hasChildren | 652 * @param {boolean} expandable |
| 653 * @param {boolean=} noIcon | 653 * @param {boolean=} noIcon |
| 654 */ | 654 */ |
| 655 WebInspector.BaseNavigatorTreeElement = function(type, title, iconClasses, hasCh
ildren, noIcon) | 655 WebInspector.BaseNavigatorTreeElement = function(type, title, iconClasses, expan
dable, noIcon) |
| 656 { | 656 { |
| 657 this._type = type; | 657 this._type = type; |
| 658 TreeElement.call(this, "", hasChildren); | 658 TreeElement.call(this, "", expandable); |
| 659 this._titleText = title; | 659 this._titleText = title; |
| 660 this._iconClasses = iconClasses; | 660 this._iconClasses = iconClasses; |
| 661 this._noIcon = noIcon; | 661 this._noIcon = noIcon; |
| 662 } | 662 } |
| 663 | 663 |
| 664 WebInspector.BaseNavigatorTreeElement.prototype = { | 664 WebInspector.BaseNavigatorTreeElement.prototype = { |
| 665 onattach: function() | 665 onattach: function() |
| 666 { | 666 { |
| 667 this.listItemElement.removeChildren(); | 667 this.listItemElement.removeChildren(); |
| 668 if (this._iconClasses) { | 668 if (this._iconClasses) { |
| (...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1420 | 1420 |
| 1421 willRemoveChild: function(node) | 1421 willRemoveChild: function(node) |
| 1422 { | 1422 { |
| 1423 if (node._isMerged || !this.isPopulated()) | 1423 if (node._isMerged || !this.isPopulated()) |
| 1424 return; | 1424 return; |
| 1425 this._treeElement.removeChild(node._treeElement); | 1425 this._treeElement.removeChild(node._treeElement); |
| 1426 }, | 1426 }, |
| 1427 | 1427 |
| 1428 __proto__: WebInspector.NavigatorTreeNode.prototype | 1428 __proto__: WebInspector.NavigatorTreeNode.prototype |
| 1429 } | 1429 } |
| OLD | NEW |