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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 this._rootNode.populate(); | 56 this._rootNode.populate(); |
57 | 57 |
58 this.element.addEventListener("contextmenu", this.handleContextMenu.bind(thi
s), false); | 58 this.element.addEventListener("contextmenu", this.handleContextMenu.bind(thi
s), false); |
59 } | 59 } |
60 | 60 |
61 WebInspector.NavigatorView.Events = { | 61 WebInspector.NavigatorView.Events = { |
62 ItemSelected: "ItemSelected", | 62 ItemSelected: "ItemSelected", |
63 ItemRenamed: "ItemRenamed", | 63 ItemRenamed: "ItemRenamed", |
64 } | 64 } |
65 | 65 |
| 66 /** |
| 67 * @param {string} type |
| 68 * @return {string} |
| 69 */ |
66 WebInspector.NavigatorView.iconClassForType = function(type) | 70 WebInspector.NavigatorView.iconClassForType = function(type) |
67 { | 71 { |
68 if (type === WebInspector.NavigatorTreeOutline.Types.Domain) | 72 if (type === WebInspector.NavigatorTreeOutline.Types.Domain) |
69 return "navigator-domain-tree-item"; | 73 return "navigator-domain-tree-item"; |
70 if (type === WebInspector.NavigatorTreeOutline.Types.FileSystem) | 74 if (type === WebInspector.NavigatorTreeOutline.Types.FileSystem) |
71 return "navigator-folder-tree-item"; | 75 return "navigator-folder-tree-item"; |
72 return "navigator-folder-tree-item"; | 76 return "navigator-folder-tree-item"; |
73 } | 77 } |
74 | 78 |
75 WebInspector.NavigatorView.prototype = { | 79 WebInspector.NavigatorView.prototype = { |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1421 | 1425 |
1422 willRemoveChild: function(node) | 1426 willRemoveChild: function(node) |
1423 { | 1427 { |
1424 if (node._isMerged || !this.isPopulated()) | 1428 if (node._isMerged || !this.isPopulated()) |
1425 return; | 1429 return; |
1426 this._treeElement.removeChild(node._treeElement); | 1430 this._treeElement.removeChild(node._treeElement); |
1427 }, | 1431 }, |
1428 | 1432 |
1429 __proto__: WebInspector.NavigatorTreeNode.prototype | 1433 __proto__: WebInspector.NavigatorTreeNode.prototype |
1430 } | 1434 } |
OLD | NEW |