| 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 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 /** | 29 /** |
| 30 * @constructor | 30 * @constructor |
| 31 * @extends {WebInspector.VBox} | 31 * @extends {WebInspector.VBox} |
| 32 * @implements {WebInspector.TargetManager.Observer} | 32 * @implements {WebInspector.TargetManager.Observer} |
| 33 */ | 33 */ |
| 34 WebInspector.NavigatorView = function() | 34 WebInspector.NavigatorView = function() |
| 35 { | 35 { |
| 36 WebInspector.VBox.call(this); | 36 WebInspector.VBox.call(this); |
| 37 this.registerRequiredCSS("sources/navigatorView.css"); |
| 37 | 38 |
| 38 this._scriptsTree = new TreeOutlineInShadow(); | 39 this._scriptsTree = new TreeOutlineInShadow(); |
| 39 this._scriptsTree.registerRequiredCSS("sources/navigatorView.css"); | 40 this._scriptsTree.registerRequiredCSS("sources/navigatorTree.css"); |
| 40 this._scriptsTree.setComparator(WebInspector.NavigatorView._treeElementsComp
are); | 41 this._scriptsTree.setComparator(WebInspector.NavigatorView._treeElementsComp
are); |
| 41 this.element.appendChild(this._scriptsTree.element); | 42 this.element.appendChild(this._scriptsTree.element); |
| 42 this.setDefaultFocusedElement(this._scriptsTree.element); | 43 this.setDefaultFocusedElement(this._scriptsTree.element); |
| 43 | 44 |
| 44 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.NavigatorUISource
CodeTreeNode>} */ | 45 /** @type {!Map.<!WebInspector.UISourceCode, !WebInspector.NavigatorUISource
CodeTreeNode>} */ |
| 45 this._uiSourceCodeNodes = new Map(); | 46 this._uiSourceCodeNodes = new Map(); |
| 46 /** @type {!Map.<string, !WebInspector.NavigatorFolderTreeNode>} */ | 47 /** @type {!Map.<string, !WebInspector.NavigatorFolderTreeNode>} */ |
| 47 this._subfolderNodes = new Map(); | 48 this._subfolderNodes = new Map(); |
| 48 | 49 |
| 49 this._rootNode = new WebInspector.NavigatorRootTreeNode(this); | 50 this._rootNode = new WebInspector.NavigatorRootTreeNode(this); |
| (...skipping 1630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1680 */ | 1681 */ |
| 1681 setTitle: function(title) | 1682 setTitle: function(title) |
| 1682 { | 1683 { |
| 1683 this._title = title; | 1684 this._title = title; |
| 1684 if (this._treeElement) | 1685 if (this._treeElement) |
| 1685 this._treeElement.title = this._title; | 1686 this._treeElement.title = this._title; |
| 1686 }, | 1687 }, |
| 1687 | 1688 |
| 1688 __proto__: WebInspector.NavigatorTreeNode.prototype | 1689 __proto__: WebInspector.NavigatorTreeNode.prototype |
| 1689 } | 1690 } |
| OLD | NEW |