Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1249)

Side by Side Diff: Source/devtools/front_end/source_frame/ResourceSourceFrame.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Modify override dropdown to apply to console completions & transpile Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698