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

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

Issue 23011021: DevTools: introduce screencast experiment. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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/inspector.html ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/devtools/front_end/inspector.js
diff --git a/Source/devtools/front_end/inspector.js b/Source/devtools/front_end/inspector.js
index 5eaee481dd743b18a283925559dda0e67f1aad75..36eaaaa5d18f054812c30eb332dbbc9f599dc5e0 100644
--- a/Source/devtools/front_end/inspector.js
+++ b/Source/devtools/front_end/inspector.js
@@ -586,6 +586,17 @@ WebInspector._doLoadedDoneWithCapabilities = function()
if (WebInspector.experimentsSettings.tethering.isEnabled())
this._setupTethering();
+ if (WebInspector.experimentsSettings.screencast.isEnabled()) {
+ var splitView = new WebInspector.SplitView(true, "screencastSplitView");
+ splitView.markAsRoot();
+ splitView.setSecondIsSidebar(false);
+ splitView.show(document.body);
+
+ var screencastView = new WebInspector.ScreencastView();
+ screencastView.show(splitView.firstElement());
+ splitView.secondElement().appendChild(document.getElementById("root"));
+ }
+
WebInspector.notifications.dispatchEventToListeners(WebInspector.Events.InspectorLoaded);
}
« no previous file with comments | « Source/devtools/front_end/inspector.html ('k') | Source/devtools/protocol.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698