| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 26 matching lines...) Expand all Loading... |
| 37 }; | 37 }; |
| 38 | 38 |
| 39 WebInspector.SourcesNavigatorView.prototype = { | 39 WebInspector.SourcesNavigatorView.prototype = { |
| 40 /** | 40 /** |
| 41 * @override | 41 * @override |
| 42 * @param {!WebInspector.UISourceCode} uiSourceCode | 42 * @param {!WebInspector.UISourceCode} uiSourceCode |
| 43 * @return {boolean} | 43 * @return {boolean} |
| 44 */ | 44 */ |
| 45 accept: function(uiSourceCode) | 45 accept: function(uiSourceCode) |
| 46 { | 46 { |
| 47 if (!WebInspector.NavigatorView.prototype.accept(uiSourceCode)) | 47 if (!super.accept(uiSourceCode)) |
| 48 return false; | 48 return false; |
| 49 return uiSourceCode.project().type() !== WebInspector.projectTypes.Conte
ntScripts && uiSourceCode.project().type() !== WebInspector.projectTypes.Snippet
s; | 49 return uiSourceCode.project().type() !== WebInspector.projectTypes.Conte
ntScripts && uiSourceCode.project().type() !== WebInspector.projectTypes.Snippet
s; |
| 50 }, | 50 }, |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @param {!WebInspector.Event} event | 53 * @param {!WebInspector.Event} event |
| 54 */ | 54 */ |
| 55 _inspectedURLChanged: function(event) | 55 _inspectedURLChanged: function(event) |
| 56 { | 56 { |
| 57 var mainTarget = WebInspector.targetManager.mainTarget(); | 57 var mainTarget = WebInspector.targetManager.mainTarget(); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 301 /** | 301 /** |
| 302 * @override | 302 * @override |
| 303 */ | 303 */ |
| 304 sourceDeleted: function(uiSourceCode) | 304 sourceDeleted: function(uiSourceCode) |
| 305 { | 305 { |
| 306 this._handleRemoveSnippet(uiSourceCode); | 306 this._handleRemoveSnippet(uiSourceCode); |
| 307 }, | 307 }, |
| 308 | 308 |
| 309 __proto__: WebInspector.NavigatorView.prototype | 309 __proto__: WebInspector.NavigatorView.prototype |
| 310 }; | 310 }; |
| OLD | NEW |