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

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

Issue 471433004: DevTools: Split out the "workspace" and "bindings" modules from "sdk" (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove marker interfaces and WI.SourceMapping Created 6 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 side-by-side diff with in-line comments
Download patch
Index: Source/devtools/front_end/workspace/UISourceCode.js
diff --git a/Source/devtools/front_end/sdk/UISourceCode.js b/Source/devtools/front_end/workspace/UISourceCode.js
similarity index 94%
rename from Source/devtools/front_end/sdk/UISourceCode.js
rename to Source/devtools/front_end/workspace/UISourceCode.js
index 9f1bd534e2c803689f33e601323aa7f870685745..035d3897a19eb77073ab5a6ae3892514ee695ae4 100644
--- a/Source/devtools/front_end/sdk/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -50,7 +50,7 @@ WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
this._contentType = contentType;
/** @type {!Array.<function(?string)>} */
this._requestContentCallbacks = [];
- /** @type {!Array.<!WebInspector.PresentationConsoleMessage>} */
+ /** @type {!Array.<!WebInspector.PresentationMessage>} */
this._consoleMessages = [];
/** @type {!Array.<!WebInspector.Revision>} */
@@ -575,7 +575,7 @@ WebInspector.UISourceCode.prototype = {
},
/**
- * @return {!Array.<!WebInspector.PresentationConsoleMessage>}
+ * @return {!Array.<!WebInspector.PresentationMessage>}
*/
consoleMessages: function()
{
@@ -583,7 +583,7 @@ WebInspector.UISourceCode.prototype = {
},
/**
- * @param {!WebInspector.PresentationConsoleMessage} message
+ * @param {!WebInspector.PresentationMessage} message
*/
consoleMessageAdded: function(message)
{
@@ -592,7 +592,7 @@ WebInspector.UISourceCode.prototype = {
},
/**
- * @param {!WebInspector.PresentationConsoleMessage} message
+ * @param {!WebInspector.PresentationMessage} message
*/
consoleMessageRemoved: function(message)
{
@@ -622,6 +622,11 @@ WebInspector.UISourceCode.prototype = {
}
/**
+ * @interface
+ */
+WebInspector.PresentationMessage = function() {}
+
+/**
* @constructor
* @param {!WebInspector.UISourceCode} uiSourceCode
* @param {number} lineNumber
@@ -656,56 +661,6 @@ WebInspector.UILocation.prototype = {
}
/**
- * @interface
- */
-WebInspector.RawLocation = function()
-{
-}
-
-/**
- * @constructor
- * @param {!WebInspector.RawLocation} rawLocation
- * @param {function(!WebInspector.UILocation):(boolean|undefined)} updateDelegate
- */
-WebInspector.LiveLocation = function(rawLocation, updateDelegate)
-{
- this._rawLocation = rawLocation;
- this._updateDelegate = updateDelegate;
-}
-
-WebInspector.LiveLocation.prototype = {
- update: function()
- {
- var uiLocation = this.uiLocation();
- if (!uiLocation)
- return;
- if (this._updateDelegate(uiLocation))
- this.dispose();
- },
-
- /**
- * @return {!WebInspector.RawLocation}
- */
- rawLocation: function()
- {
- return this._rawLocation;
- },
-
- /**
- * @return {!WebInspector.UILocation}
- */
- uiLocation: function()
- {
- throw "Not implemented";
- },
-
- dispose: function()
- {
- // Overridden by subclasses.
- }
-}
-
-/**
* @constructor
* @implements {WebInspector.ContentProvider}
* @param {!WebInspector.UISourceCode} uiSourceCode
« no previous file with comments | « Source/devtools/front_end/workspace/SearchConfig.js ('k') | Source/devtools/front_end/workspace/Workspace.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698