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

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

Issue 472353002: DevTools: Get rid of WebInspector.PresentationMessage interface (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Clear event targets map and handle ProjectRemoved 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
« no previous file with comments | « Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | no next file » | 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 035d3897a19eb77073ab5a6ae3892514ee695ae4..74549a63e845502e2b03b71bc81dc0fffb9570a5 100644
--- a/Source/devtools/front_end/workspace/UISourceCode.js
+++ b/Source/devtools/front_end/workspace/UISourceCode.js
@@ -50,21 +50,19 @@ WebInspector.UISourceCode = function(project, parentPath, name, originURL, url,
this._contentType = contentType;
/** @type {!Array.<function(?string)>} */
this._requestContentCallbacks = [];
- /** @type {!Array.<!WebInspector.PresentationMessage>} */
- this._consoleMessages = [];
/** @type {!Array.<!WebInspector.Revision>} */
this.history = [];
}
+/**
+ * @enum {string}
+ */
WebInspector.UISourceCode.Events = {
WorkingCopyChanged: "WorkingCopyChanged",
WorkingCopyCommitted: "WorkingCopyCommitted",
TitleChanged: "TitleChanged",
SavedStateUpdated: "SavedStateUpdated",
- ConsoleMessageAdded: "ConsoleMessageAdded",
- ConsoleMessageRemoved: "ConsoleMessageRemoved",
- ConsoleMessagesCleared: "ConsoleMessagesCleared",
SourceMappingChanged: "SourceMappingChanged",
}
@@ -575,38 +573,6 @@ WebInspector.UISourceCode.prototype = {
},
/**
- * @return {!Array.<!WebInspector.PresentationMessage>}
- */
- consoleMessages: function()
- {
- return this._consoleMessages;
- },
-
- /**
- * @param {!WebInspector.PresentationMessage} message
- */
- consoleMessageAdded: function(message)
- {
- this._consoleMessages.push(message);
- this.dispatchEventToListeners(WebInspector.UISourceCode.Events.ConsoleMessageAdded, message);
- },
-
- /**
- * @param {!WebInspector.PresentationMessage} message
- */
- consoleMessageRemoved: function(message)
- {
- this._consoleMessages.remove(message);
- this.dispatchEventToListeners(WebInspector.UISourceCode.Events.ConsoleMessageRemoved, message);
- },
-
- consoleMessagesCleared: function()
- {
- this._consoleMessages = [];
- this.dispatchEventToListeners(WebInspector.UISourceCode.Events.ConsoleMessagesCleared);
- },
-
- /**
* @param {number} lineNumber
* @param {number=} columnNumber
* @return {!WebInspector.UILocation}
@@ -622,11 +588,6 @@ WebInspector.UISourceCode.prototype = {
}
/**
- * @interface
- */
-WebInspector.PresentationMessage = function() {}
-
-/**
* @constructor
* @param {!WebInspector.UISourceCode} uiSourceCode
* @param {number} lineNumber
« no previous file with comments | « Source/devtools/front_end/sources/JavaScriptSourceFrame.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698