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

Unified Diff: third_party/WebKit/Source/devtools/front_end/common/Console.js

Issue 2205123003: DevTools: introduce view locations, allow opening views by id. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review comments addressed Created 4 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: third_party/WebKit/Source/devtools/front_end/common/Console.js
diff --git a/third_party/WebKit/Source/devtools/front_end/common/Console.js b/third_party/WebKit/Source/devtools/front_end/common/Console.js
index 5ea52d6032deaf8a102da19e6688e8d45cc0c883..db2c7586d6db287fd9dd8fa9b43650df2a728f61 100644
--- a/third_party/WebKit/Source/devtools/front_end/common/Console.js
+++ b/third_party/WebKit/Source/devtools/front_end/common/Console.js
@@ -43,30 +43,8 @@ WebInspector.Console.Message = function(text, level, timestamp, show)
this.show = show;
}
-/**
- * @interface
- */
-WebInspector.Console.UIDelegate = function()
-{
-}
-
-WebInspector.Console.UIDelegate.prototype = {
- /**
- * @return {!Promise.<undefined>}
- */
- showConsole: function() { }
-}
-
WebInspector.Console.prototype = {
/**
- * @param {!WebInspector.Console.UIDelegate} uiDelegate
- */
- setUIDelegate: function(uiDelegate)
- {
- this._uiDelegate = uiDelegate;
- },
-
- /**
* @param {string} text
* @param {!WebInspector.Console.MessageLevel} level
* @param {boolean=} show
@@ -120,9 +98,7 @@ WebInspector.Console.prototype = {
*/
showPromise: function()
{
- if (this._uiDelegate)
- return this._uiDelegate.showConsole();
- return Promise.reject();
+ return WebInspector.Revealer.revealPromise(this);
},
__proto__: WebInspector.Object.prototype

Powered by Google App Engine
This is Rietveld 408576698