OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008 Apple Inc. All rights reserved. |
3 * Copyright (C) IBM Corp. 2009 All rights reserved. | 3 * Copyright (C) IBM Corp. 2009 All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 { | 57 { |
58 for (var message of this._messages) | 58 for (var message of this._messages) |
59 this.addMessageToSource(WebInspector.SourceFrameMessage.fromConsoleM
essage(message, message.line - 1, message.column)); | 59 this.addMessageToSource(WebInspector.SourceFrameMessage.fromConsoleM
essage(message, message.line - 1, message.column)); |
60 }, | 60 }, |
61 | 61 |
62 get resource() | 62 get resource() |
63 { | 63 { |
64 return this._resource; | 64 return this._resource; |
65 }, | 65 }, |
66 | 66 |
| 67 /** |
| 68 * @override |
| 69 * @param {!WebInspector.ContextMenu} contextMenu |
| 70 * @param {number} lineNumber |
| 71 * @param {number} columnNumber |
| 72 * @return {!Promise} |
| 73 */ |
67 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) | 74 populateTextAreaContextMenu: function(contextMenu, lineNumber, columnNumber) |
68 { | 75 { |
69 contextMenu.appendApplicableItems(this._resource); | 76 contextMenu.appendApplicableItems(this._resource); |
| 77 return Promise.resolve(); |
70 }, | 78 }, |
71 | 79 |
72 __proto__: WebInspector.SourceFrame.prototype | 80 __proto__: WebInspector.SourceFrame.prototype |
73 } | 81 } |
74 | 82 |
75 /** | 83 /** |
76 * @constructor | 84 * @constructor |
77 * @extends {WebInspector.VBox} | 85 * @extends {WebInspector.VBox} |
78 * @param {!WebInspector.ContentProvider} resource | 86 * @param {!WebInspector.ContentProvider} resource |
79 */ | 87 */ |
(...skipping 17 matching lines...) Expand all Loading... |
97 /** | 105 /** |
98 * @param {?string} content | 106 * @param {?string} content |
99 */ | 107 */ |
100 _contentLoaded: function(content) | 108 _contentLoaded: function(content) |
101 { | 109 { |
102 this._content.textContent = content; | 110 this._content.textContent = content; |
103 }, | 111 }, |
104 | 112 |
105 __proto__: WebInspector.VBox.prototype | 113 __proto__: WebInspector.VBox.prototype |
106 } | 114 } |
OLD | NEW |