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

Side by Side Diff: Source/devtools/front_end/sources/JavaScriptCompiler.js

Issue 1264133002: Devtools: [WIP] Implement enhanced devtools extension language APIs Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Small cleanups - prefer URIs to contentURLs, revert protocol unifications, remove lambdas 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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @constructor 6 * @constructor
7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame 7 * @param {!WebInspector.JavaScriptSourceFrame} sourceFrame
8 */ 8 */
9 WebInspector.JavaScriptCompiler = function(sourceFrame) 9 WebInspector.JavaScriptCompiler = function(sourceFrame)
10 { 10 {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 function compileCallback(target, scriptId, exceptionDetails) 63 function compileCallback(target, scriptId, exceptionDetails)
64 { 64 {
65 this._compiling = false; 65 this._compiling = false;
66 if (this._recompileScheduled) { 66 if (this._recompileScheduled) {
67 delete this._recompileScheduled; 67 delete this._recompileScheduled;
68 this.scheduleCompile(); 68 this.scheduleCompile();
69 return; 69 return;
70 } 70 }
71 if (!exceptionDetails) 71 if (!exceptionDetails)
72 return; 72 return;
73 var message = new WebInspector.SourceFrameMessage(exceptionDetails.t ext, WebInspector.SourceFrameMessage.Level.Error, exceptionDetails.line - 1, exc eptionDetails.column + 1); 73 var location = {line: exceptionDetails.line - 1, column: exceptionDe tails.column + 1};
74 var message = new WebInspector.SourceFrameMessage(exceptionDetails.t ext, WebInspector.SourceFrameMessage.Level.Error, location, location);
74 this._sourceFrame.addMessageToSource(message); 75 this._sourceFrame.addMessageToSource(message);
75 this._compilationFinishedForTest(); 76 this._compilationFinishedForTest();
76 } 77 }
77 }, 78 },
78 79
79 _compilationFinishedForTest: function() {} 80 _compilationFinishedForTest: function() {}
80 } 81 }
OLDNEW
« no previous file with comments | « Source/devtools/front_end/sources/AdvancedSearchView.js ('k') | Source/devtools/front_end/sources/JavaScriptSourceFrame.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698