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

Unified Diff: Source/devtools/front_end/Main.js

Issue 204333004: DevTools: Speculatively patch DevTools to make CodeSchool extension work. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed pause settings Created 6 years, 9 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/HeapSnapshotView.js ('k') | Source/devtools/front_end/Settings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/Main.js
diff --git a/Source/devtools/front_end/Main.js b/Source/devtools/front_end/Main.js
index e700fbf083b19c70569df01c207bb57f6ac6034b..1c4b70bc22e59140de6c91a1023eb515ced351f0 100644
--- a/Source/devtools/front_end/Main.js
+++ b/Source/devtools/front_end/Main.js
@@ -725,3 +725,16 @@ WebInspector.reload = function()
new WebInspector.Main();
window.DEBUG = true;
+
+// These methods are added for backwards compatibility with Devtools CodeSchool extension.
+// DO NOT REMOVE
+
+WebInspector.__defineGetter__("inspectedPageURL", function()
+{
+ return WebInspector.resourceTreeModel.inspectedPageURL();
+});
+
+WebInspector.panel = function(name)
+{
+ return WebInspector.inspectorView.panel(name);
+}
« no previous file with comments | « Source/devtools/front_end/HeapSnapshotView.js ('k') | Source/devtools/front_end/Settings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698