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

Side by Side 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: whitespace 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 unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/remoteDebuggingTerminatedScreen.css » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). 3 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com).
4 * Copyright (C) 2009 Joseph Pecoraro 4 * Copyright (C) 2009 Joseph Pecoraro
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 9 *
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
(...skipping 968 matching lines...) Expand 10 before | Expand all | Expand 10 after
979 * @param {string} reason 979 * @param {string} reason
980 */ 980 */
981 WebInspector.RemoteDebuggingTerminatedScreen = function(reason) 981 WebInspector.RemoteDebuggingTerminatedScreen = function(reason)
982 { 982 {
983 WebInspector.VBox.call(this, true); 983 WebInspector.VBox.call(this, true);
984 this.registerRequiredCSS("main/remoteDebuggingTerminatedScreen.css"); 984 this.registerRequiredCSS("main/remoteDebuggingTerminatedScreen.css");
985 var message = this.contentElement.createChild("div", "message"); 985 var message = this.contentElement.createChild("div", "message");
986 message.createChild("span").textContent = WebInspector.UIString("Debugging c onnection was closed. Reason: "); 986 message.createChild("span").textContent = WebInspector.UIString("Debugging c onnection was closed. Reason: ");
987 message.createChild("span", "reason").textContent = reason; 987 message.createChild("span", "reason").textContent = reason;
988 this.contentElement.createChild("div", "message").textContent = WebInspector .UIString("Reconnect when ready by reopening DevTools."); 988 this.contentElement.createChild("div", "message").textContent = WebInspector .UIString("Reconnect when ready by reopening DevTools.");
989 var button = createTextButton(WebInspector.UIString("Reconnect DevTools"), ( ) => window.location.reload());
990 this.contentElement.createChild("div", "button").appendChild(button);
989 } 991 }
990 992
991 /** 993 /**
992 * @param {string} reason 994 * @param {string} reason
993 */ 995 */
994 WebInspector.RemoteDebuggingTerminatedScreen.show = function(reason) 996 WebInspector.RemoteDebuggingTerminatedScreen.show = function(reason)
995 { 997 {
996 var dialog = new WebInspector.Dialog(); 998 var dialog = new WebInspector.Dialog();
997 dialog.setWrapsContent(true); 999 dialog.setWrapsContent(true);
998 dialog.addCloseButton(); 1000 dialog.addCloseButton();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1117 * @return {?Element} 1119 * @return {?Element}
1118 */ 1120 */
1119 settingElement: function() 1121 settingElement: function()
1120 { 1122 {
1121 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); 1123 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers"));
1122 } 1124 }
1123 } 1125 }
1124 1126
1125 1127
1126 new WebInspector.Main(); 1128 new WebInspector.Main();
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/main/remoteDebuggingTerminatedScreen.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698