| 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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 /** | 161 /** |
| 162 * @param {string} content | 162 * @param {string} content |
| 163 */ | 163 */ |
| 164 _innerSetContent: function(content) | 164 _innerSetContent: function(content) |
| 165 { | 165 { |
| 166 this._isSettingContent = true; | 166 this._isSettingContent = true; |
| 167 this.setContent(content); | 167 this.setContent(content); |
| 168 delete this._isSettingContent; | 168 delete this._isSettingContent; |
| 169 }, | 169 }, |
| 170 | 170 |
| 171 populateTextAreaContextMenu: function(contextMenu, lineNumber) | 171 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) |
| 172 { | 172 { |
| 173 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this
, contextMenu, lineNumber); | 173 WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.call(this
, contextMenu, lineNumber, columnNumber); |
| 174 contextMenu.appendApplicableItems(this._uiSourceCode); | 174 contextMenu.appendApplicableItems(this._uiSourceCode); |
| 175 contextMenu.appendApplicableItems(new WebInspector.UILocation(this._uiSo
urceCode, lineNumber, columnNumber)); |
| 175 contextMenu.appendSeparator(); | 176 contextMenu.appendSeparator(); |
| 176 }, | 177 }, |
| 177 | 178 |
| 178 /** | 179 /** |
| 179 * @param {!Array.<!WebInspector.UISourceCodeFrame.Infobar|undefined>} infob
ars | 180 * @param {!Array.<!WebInspector.UISourceCodeFrame.Infobar|undefined>} infob
ars |
| 180 */ | 181 */ |
| 181 attachInfobars: function(infobars) | 182 attachInfobars: function(infobars) |
| 182 { | 183 { |
| 183 for (var i = infobars.length - 1; i >= 0; --i) { | 184 for (var i = infobars.length - 1; i >= 0; --i) { |
| 184 var infobar = infobars[i]; | 185 var infobar = infobars[i]; |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 266 |
| 266 dispose: function() | 267 dispose: function() |
| 267 { | 268 { |
| 268 this.element.remove(); | 269 this.element.remove(); |
| 269 this._onResize(); | 270 this._onResize(); |
| 270 delete this._uiSourceCodeFrame; | 271 delete this._uiSourceCodeFrame; |
| 271 }, | 272 }, |
| 272 | 273 |
| 273 __proto__: WebInspector.Infobar.prototype | 274 __proto__: WebInspector.Infobar.prototype |
| 274 } | 275 } |
| OLD | NEW |