| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 delete this._boundWindowFocused; | 73 delete this._boundWindowFocused; |
| 74 this._uiSourceCode.removeWorkingCopyGetter(); | 74 this._uiSourceCode.removeWorkingCopyGetter(); |
| 75 }, | 75 }, |
| 76 | 76 |
| 77 /** | 77 /** |
| 78 * @return {boolean} | 78 * @return {boolean} |
| 79 */ | 79 */ |
| 80 canEditSource: function() | 80 canEditSource: function() |
| 81 { | 81 { |
| 82 var projectType = this._uiSourceCode.project().type(); | 82 var projectType = this._uiSourceCode.project().type(); |
| 83 if (projectType === WebInspector.projectTypes.Debugger || projectType ==
= WebInspector.projectTypes.Formatter) | 83 if (projectType === WebInspector.projectTypes.Service || projectType ===
WebInspector.projectTypes.Debugger || projectType === WebInspector.projectTypes
.Formatter) |
| 84 return false; | 84 return false; |
| 85 if (projectType === WebInspector.projectTypes.Network && this._uiSourceC
ode.contentType() === WebInspector.resourceTypes.Document) | 85 if (projectType === WebInspector.projectTypes.Network && this._uiSourceC
ode.contentType() === WebInspector.resourceTypes.Document) |
| 86 return false; | 86 return false; |
| 87 return true; | 87 return true; |
| 88 }, | 88 }, |
| 89 | 89 |
| 90 _windowFocused: function(event) | 90 _windowFocused: function(event) |
| 91 { | 91 { |
| 92 this._checkContentUpdated(); | 92 this._checkContentUpdated(); |
| 93 }, | 93 }, |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 290 | 290 |
| 291 dispose: function() | 291 dispose: function() |
| 292 { | 292 { |
| 293 this.element.remove(); | 293 this.element.remove(); |
| 294 this._onResize(); | 294 this._onResize(); |
| 295 delete this._uiSourceCodeFrame; | 295 delete this._uiSourceCodeFrame; |
| 296 if (this._onDispose) | 296 if (this._onDispose) |
| 297 this._onDispose(); | 297 this._onDispose(); |
| 298 } | 298 } |
| 299 } | 299 } |
| OLD | NEW |