}
WebInspector.Console.UIDelegate.prototype = {
+ /**
+ * @return {!Promise.<undefined>}
+ */
showConsole: function() { }
}
show: function()
{
+ this.showPromise().done();
+ },
+
+ /**
+ * @return {!Promise.<undefined>}
+ */
+ showPromise: function()
+ {
if (this._uiDelegate)
- this._uiDelegate.showConsole();
+ return this._uiDelegate.showConsole();
+ return Promise.reject();
},
__proto__: WebInspector.Object.prototype