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

Unified Diff: Source/devtools/front_end/main/App.js

Issue 396993003: DevTools: get rid of WebInspector.cssModel, use target models instead (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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/layers/LayersPanel.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/main/App.js
diff --git a/Source/devtools/front_end/main/App.js b/Source/devtools/front_end/main/App.js
index 203d651054c0c403322e8f9f0110dfd9e7431da3..ed9a8987cc0965318d886aa3acbc023b3214d970 100644
--- a/Source/devtools/front_end/main/App.js
+++ b/Source/devtools/front_end/main/App.js
@@ -4,6 +4,7 @@
/**
* @constructor
+ * @implements {WebInspector.Console.UIDelegate}
*/
WebInspector.App = function()
{
@@ -14,6 +15,7 @@ WebInspector.App = function()
WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.EmulationStateChanged, this._emulationEnabledChanged, this);
WebInspector.overridesSupport.addEventListener(WebInspector.OverridesSupport.Events.OverridesWarningUpdated, this._overridesWarningUpdated, this);
}
+ WebInspector.console.setUIDelegate(this);
};
WebInspector.App.prototype = {
@@ -53,6 +55,11 @@ WebInspector.App.prototype = {
if (!WebInspector.overridesSupport.responsiveDesignAvailable() && WebInspector.overridesSupport.emulationEnabled())
WebInspector.inspectorView.showViewInDrawer("emulation", true);
this._overridesWarningUpdated();
+ },
+
+ showConsole: function()
+ {
+ WebInspector.Revealer.reveal(WebInspector.console);
}
};
« no previous file with comments | « Source/devtools/front_end/layers/LayersPanel.js ('k') | Source/devtools/front_end/main/Main.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698