| 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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 76 return; | 76 return; |
| 77 } | 77 } |
| 78 }, | 78 }, |
| 79 | 79 |
| 80 /** | 80 /** |
| 81 * @param {WebInspector.Event} event | 81 * @param {WebInspector.Event} event |
| 82 */ | 82 */ |
| 83 _onFormattedChanged: function(event) | 83 _onFormattedChanged: function(event) |
| 84 { | 84 { |
| 85 var content = /** @type {string} */ event.data.content; | 85 var content = /** @type {string} */ event.data.content; |
| 86 this._textEditor.setReadOnly(this._uiSourceCode.formatted()); |
| 86 this._innerSetContent(content); | 87 this._innerSetContent(content); |
| 87 }, | 88 }, |
| 88 | 89 |
| 89 /** | 90 /** |
| 90 * @param {WebInspector.Event} event | 91 * @param {WebInspector.Event} event |
| 91 */ | 92 */ |
| 92 _onWorkingCopyChanged: function(event) | 93 _onWorkingCopyChanged: function(event) |
| 93 { | 94 { |
| 94 this._innerSetContent(this._uiSourceCode.workingCopy()); | 95 this._innerSetContent(this._uiSourceCode.workingCopy()); |
| 95 }, | 96 }, |
| (...skipping 16 matching lines...) Expand all Loading... |
| 112 | 113 |
| 113 populateTextAreaContextMenu: function(contextMenu, lineNumber) | 114 populateTextAreaContextMenu: function(contextMenu, lineNumber) |
| 114 { | 115 { |
| 115 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this
, contextMenu, lineNumber); | 116 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this
, contextMenu, lineNumber); |
| 116 contextMenu.appendApplicableItems(this._uiSourceCode); | 117 contextMenu.appendApplicableItems(this._uiSourceCode); |
| 117 contextMenu.appendSeparator(); | 118 contextMenu.appendSeparator(); |
| 118 }, | 119 }, |
| 119 | 120 |
| 120 __proto__: WebInspector.SourceFrame.prototype | 121 __proto__: WebInspector.SourceFrame.prototype |
| 121 } | 122 } |
| OLD | NEW |