| OLD | NEW |
| 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 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 * @param {string} reason | 860 * @param {string} reason |
| 861 */ | 861 */ |
| 862 constructor(reason) { | 862 constructor(reason) { |
| 863 super(true); | 863 super(true); |
| 864 this.registerRequiredCSS('main/remoteDebuggingTerminatedScreen.css'); | 864 this.registerRequiredCSS('main/remoteDebuggingTerminatedScreen.css'); |
| 865 var message = this.contentElement.createChild('div', 'message'); | 865 var message = this.contentElement.createChild('div', 'message'); |
| 866 message.createChild('span').textContent = Common.UIString('Debugging connect
ion was closed. Reason: '); | 866 message.createChild('span').textContent = Common.UIString('Debugging connect
ion was closed. Reason: '); |
| 867 message.createChild('span', 'reason').textContent = reason; | 867 message.createChild('span', 'reason').textContent = reason; |
| 868 this.contentElement.createChild('div', 'message').textContent = | 868 this.contentElement.createChild('div', 'message').textContent = |
| 869 Common.UIString('Reconnect when ready by reopening DevTools.'); | 869 Common.UIString('Reconnect when ready by reopening DevTools.'); |
| 870 var button = createTextButton(Common.UIString('Reconnect DevTools'), () => w
indow.location.reload()); | 870 var button = UI.createTextButton(Common.UIString('Reconnect DevTools'), () =
> window.location.reload()); |
| 871 this.contentElement.createChild('div', 'button').appendChild(button); | 871 this.contentElement.createChild('div', 'button').appendChild(button); |
| 872 } | 872 } |
| 873 | 873 |
| 874 /** | 874 /** |
| 875 * @param {string} reason | 875 * @param {string} reason |
| 876 */ | 876 */ |
| 877 static show(reason) { | 877 static show(reason) { |
| 878 var dialog = new UI.Dialog(); | 878 var dialog = new UI.Dialog(); |
| 879 dialog.setWrapsContent(true); | 879 dialog.setWrapsContent(true); |
| 880 dialog.addCloseButton(); | 880 dialog.addCloseButton(); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 981 * @override | 981 * @override |
| 982 * @return {?Element} | 982 * @return {?Element} |
| 983 */ | 983 */ |
| 984 settingElement() { | 984 settingElement() { |
| 985 return UI.SettingsUI.createSettingCheckbox( | 985 return UI.SettingsUI.createSettingCheckbox( |
| 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); | 986 Common.UIString('Show rulers'), Common.moduleSetting('showMetricsRulers'
)); |
| 987 } | 987 } |
| 988 }; | 988 }; |
| 989 | 989 |
| 990 new Main.Main(); | 990 new Main.Main(); |
| OLD | NEW |