| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 var searchLabel = WebInspector.UIString.capitalize("Search in ^folder"); | 145 var searchLabel = WebInspector.UIString.capitalize("Search in ^folder"); |
| 146 if (!path || !path.trim()) { | 146 if (!path || !path.trim()) { |
| 147 path = "*"; | 147 path = "*"; |
| 148 searchLabel = WebInspector.UIString.capitalize("Search in ^all ^files"); | 148 searchLabel = WebInspector.UIString.capitalize("Search in ^all ^files"); |
| 149 } | 149 } |
| 150 contextMenu.appendItem(searchLabel, searchPath); | 150 contextMenu.appendItem(searchLabel, searchPath); |
| 151 } | 151 } |
| 152 | 152 |
| 153 WebInspector.NavigatorView.prototype = { | 153 WebInspector.NavigatorView.prototype = { |
| 154 /** | 154 /** |
| 155 * @override |
| 156 */ |
| 157 focus: function() |
| 158 { |
| 159 this._scriptsTree.focus(); |
| 160 }, |
| 161 |
| 162 /** |
| 155 * @param {!WebInspector.Workspace} workspace | 163 * @param {!WebInspector.Workspace} workspace |
| 156 */ | 164 */ |
| 157 _resetWorkspace: function(workspace) | 165 _resetWorkspace: function(workspace) |
| 158 { | 166 { |
| 159 this._workspace = workspace; | 167 this._workspace = workspace; |
| 160 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC
odeAdded, this._uiSourceCodeAdded, this); | 168 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC
odeAdded, this._uiSourceCodeAdded, this); |
| 161 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC
odeRemoved, this._uiSourceCodeRemoved, this); | 169 this._workspace.addEventListener(WebInspector.Workspace.Events.UISourceC
odeRemoved, this._uiSourceCodeRemoved, this); |
| 162 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectRe
moved, this._projectRemoved.bind(this), this); | 170 this._workspace.addEventListener(WebInspector.Workspace.Events.ProjectRe
moved, this._projectRemoved.bind(this), this); |
| 163 }, | 171 }, |
| 164 | 172 |
| (...skipping 1393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1558 { | 1566 { |
| 1559 if (this._treeElement) | 1567 if (this._treeElement) |
| 1560 return this._treeElement; | 1568 return this._treeElement; |
| 1561 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na
vigatorView, this._type, this._title, this._hoverCallback); | 1569 this._treeElement = new WebInspector.NavigatorFolderTreeElement(this._na
vigatorView, this._type, this._title, this._hoverCallback); |
| 1562 this._treeElement.setNode(this); | 1570 this._treeElement.setNode(this); |
| 1563 return this._treeElement; | 1571 return this._treeElement; |
| 1564 }, | 1572 }, |
| 1565 | 1573 |
| 1566 __proto__: WebInspector.NavigatorTreeNode.prototype | 1574 __proto__: WebInspector.NavigatorTreeNode.prototype |
| 1567 } | 1575 } |
| OLD | NEW |