| 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 */ | 269 */ |
| 270 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) | 270 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) |
| 271 { | 271 { |
| 272 /** | 272 /** |
| 273 * @this {WebInspector.UISourceCodeFrame} | 273 * @this {WebInspector.UISourceCodeFrame} |
| 274 */ | 274 */ |
| 275 function appendItems() | 275 function appendItems() |
| 276 { | 276 { |
| 277 contextMenu.appendApplicableItems(this._uiSourceCode); | 277 contextMenu.appendApplicableItems(this._uiSourceCode); |
| 278 contextMenu.appendApplicableItems(new WebInspector.UILocation(this._
uiSourceCode, lineNumber, columnNumber)); | 278 contextMenu.appendApplicableItems(new WebInspector.UILocation(this._
uiSourceCode, lineNumber, columnNumber)); |
| 279 contextMenu.appendApplicableItems(this); |
| 279 } | 280 } |
| 280 | 281 |
| 281 return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.ca
ll(this, contextMenu, lineNumber, columnNumber) | 282 return WebInspector.SourceFrame.prototype.populateTextAreaContextMenu.ca
ll(this, contextMenu, lineNumber, columnNumber) |
| 282 .then(appendItems.bind(this)); | 283 .then(appendItems.bind(this)); |
| 283 }, | 284 }, |
| 284 | 285 |
| 285 /** | 286 /** |
| 286 * @param {!Array.<!WebInspector.Infobar|undefined>} infobars | 287 * @param {!Array.<!WebInspector.Infobar|undefined>} infobars |
| 287 */ | 288 */ |
| 288 attachInfobars: function(infobars) | 289 attachInfobars: function(infobars) |
| (...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 681 | 682 |
| 682 /** | 683 /** |
| 683 * @param {!WebInspector.UISourceCode.Message} a | 684 * @param {!WebInspector.UISourceCode.Message} a |
| 684 * @param {!WebInspector.UISourceCode.Message} b | 685 * @param {!WebInspector.UISourceCode.Message} b |
| 685 * @return {number} | 686 * @return {number} |
| 686 */ | 687 */ |
| 687 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) | 688 WebInspector.UISourceCode.Message.messageLevelComparator = function(a, b) |
| 688 { | 689 { |
| 689 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] -
WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; | 690 return WebInspector.UISourceCode.Message._messageLevelPriority[a.level()] -
WebInspector.UISourceCode.Message._messageLevelPriority[b.level()]; |
| 690 } | 691 } |
| OLD | NEW |