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

Unified Diff: third_party/WebKit/Source/devtools/services/devtools.js

Issue 2370573002: DevTools: enable front-end to use external services for additional capabilities. (Closed)
Patch Set: review addressed Created 4 years, 3 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/services/devtools.js
diff --git a/third_party/WebKit/Source/devtools/services/devtools.js b/third_party/WebKit/Source/devtools/services/devtools.js
new file mode 100644
index 0000000000000000000000000000000000000000..2e5c2360be420df539b41d1d816695649395d85b
--- /dev/null
+++ b/third_party/WebKit/Source/devtools/services/devtools.js
@@ -0,0 +1,12 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+var dispatcher = require("./dispatcher.js");
+var terminal = require("./terminal.js");
+
+var d = new dispatcher.Dispatcher();
+d.registerObject("Terminal", terminal.Terminal);
+d.start(9022);
+
+console.log("Run chrome as `chrome --devtools-flags='{\"service-backend\": \"ws://localhost:9022/endpoint\"}'`");

Powered by Google App Engine
This is Rietveld 408576698