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

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

Issue 2148563003: DevTools: Add reload button to disconnection dialog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 8c8748bfb858a998fbaaa0c822000a21fe0a9695..bf9a006b11e6f099d749a4d397bbd0aae6c49c9c 100644
--- a/third_party/WebKit/Source/devtools/front_end/main/Main.js
+++ b/third_party/WebKit/Source/devtools/front_end/main/Main.js
@@ -980,12 +980,18 @@ WebInspector.Main.InspectedNodeRevealer.prototype = {
*/
WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
{
+ function reloadDevTools() {
pfeldman 2016/07/13 17:29:24 { goes next line, but see below...
+ window.location.reload();
+ }
+
WebInspector.VBox.call(this, true);
this.registerRequiredCSS("main/remoteDebuggingTerminatedScreen.css");
var message = this.contentElement.createChild("div", "message");
message.createChild("span").textContent = WebInspector.UIString("Debugging connection was closed. Reason: ");
message.createChild("span", "reason").textContent = reason;
this.contentElement.createChild("div", "message").textContent = WebInspector.UIString("Reconnect when ready by reopening DevTools.");
+ var button = createTextButton(WebInspector.UIString("Reconnect DevTools"), reloadDevTools);
pfeldman 2016/07/13 17:29:24 cook kids would do "() => window.location.reload()
paulirish 2016/07/13 19:01:09 the coolest. good call.
+ this.contentElement.createChild("div", "button").appendChild(button);
}
/**

Powered by Google App Engine
This is Rietveld 408576698