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

Unified Diff: third_party/WebKit/Source/devtools/front_end/main/Main.js

Issue 2864263002: [DevTools] Expose TCP targets config in frontend, use it for Node (Closed)
Patch Set: works Created 3 years, 7 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/front_end/main/Main.js
diff --git a/third_party/WebKit/Source/devtools/front_end/main/Main.js b/third_party/WebKit/Source/devtools/front_end/main/Main.js
index fcd42dc4187eebe04174ac8b83345d4136bb6aeb..ea103d27f82c2ee11de5e20ba159bd1668148573 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -639,6 +639,29 @@ Main.Main.WarningErrorCounter = class {
/**
* @implements {UI.ToolbarItem.Provider}
*/
+Main.Main.NodeConnectionLink = class {
+ constructor() {
+ this._link = createElementWithClass('span', 'link');
+ this._link.addEventListener('click', () => {
+ UI.viewManager.showView('remote-devices');
+ }, false);
+ this._link.textContent = Common.UIString('Connect');
+ this._link.style.padding = '0 5px';
+ this._toolbarItem = new UI.ToolbarItem(this._link);
+ }
+
+ /**
+ * @override
+ * @return {?UI.ToolbarItem}
+ */
+ item() {
+ return this._toolbarItem;
+ }
+};
+
+/**
+ * @implements {UI.ToolbarItem.Provider}
+ */
Main.Main.MainMenuItem = class {
constructor() {
this._item = new UI.ToolbarMenuButton(this._handleContextMenu.bind(this), true);

Powered by Google App Engine
This is Rietveld 408576698