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

Unified Diff: Source/devtools/front_end/workspace/UISourceCode.js

Issue 1532413002: Added Dartium changes onto 45.0.2454.104 (Closed) Base URL: http://src.chromium.org/blink/branches/chromium/2454
Patch Set: Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/devtools/front_end/sources/ScopeChainSidebarPane.js ('k') | Source/platform/MIMETypeRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/Source/devtools/front_end/workspace/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js
index 1b374623fc42f589f914df608d9aaf80055a6e1d..5851d1ac69aad27cb5e25c252cb419e1e35833a8 100644
--- a/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -39,8 +39,9 @@
* @param {string} originURL
* @param {string} url
* @param {!WebInspector.ResourceType} contentType
+ * @param {string=} language
*/
-WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, contentType)
+WebInspector.UISourceCode = function(project, parentPath, name, originURL, url, contentType, language)
{
this._project = project;
this._parentPath = parentPath;
@@ -50,6 +51,7 @@ WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
this._contentType = contentType;
/** @type {!Array.<function(?string)>} */
this._requestContentCallbacks = [];
+ this.language = url.endsWith(".dart") ? "Dart" : "JavaScript";
/** @type {!Array.<!WebInspector.Revision>} */
this.history = [];
« no previous file with comments | « Source/devtools/front_end/sources/ScopeChainSidebarPane.js ('k') | Source/platform/MIMETypeRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698