| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 | 1014 |
| 1015 /** | 1015 /** |
| 1016 * @param {!WebInspector.DebuggerModel} debuggerModel | 1016 * @param {!WebInspector.DebuggerModel} debuggerModel |
| 1017 */ | 1017 */ |
| 1018 WebInspector.TargetCrashedScreen.show = function(debuggerModel) | 1018 WebInspector.TargetCrashedScreen.show = function(debuggerModel) |
| 1019 { | 1019 { |
| 1020 var dialog = new WebInspector.Dialog(); | 1020 var dialog = new WebInspector.Dialog(); |
| 1021 dialog.setWrapsContent(true); | 1021 dialog.setWrapsContent(true); |
| 1022 dialog.addCloseButton(); | 1022 dialog.addCloseButton(); |
| 1023 dialog.setDimmed(true); | 1023 dialog.setDimmed(true); |
| 1024 var hideBound = dialog.detach.bind(dialog); | 1024 var hideBound = dialog.detach.bind(dialog, false); |
| 1025 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec
tCleared, hideBound); | 1025 debuggerModel.addEventListener(WebInspector.DebuggerModel.Events.GlobalObjec
tCleared, hideBound); |
| 1026 | 1026 |
| 1027 new WebInspector.TargetCrashedScreen(onHide).show(dialog.element); | 1027 new WebInspector.TargetCrashedScreen(onHide).show(dialog.element); |
| 1028 dialog.show(); | 1028 dialog.show(); |
| 1029 | 1029 |
| 1030 function onHide() | 1030 function onHide() |
| 1031 { | 1031 { |
| 1032 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.Glob
alObjectCleared, hideBound); | 1032 debuggerModel.removeEventListener(WebInspector.DebuggerModel.Events.Glob
alObjectCleared, hideBound); |
| 1033 } | 1033 } |
| 1034 } | 1034 } |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1110 * @return {?Element} | 1110 * @return {?Element} |
| 1111 */ | 1111 */ |
| 1112 settingElement: function() | 1112 settingElement: function() |
| 1113 { | 1113 { |
| 1114 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); | 1114 return WebInspector.SettingsUI.createSettingCheckbox(WebInspector.UIStri
ng("Show rulers"), WebInspector.moduleSetting("showMetricsRulers")); |
| 1115 } | 1115 } |
| 1116 } | 1116 } |
| 1117 | 1117 |
| 1118 | 1118 |
| 1119 new WebInspector.Main(); | 1119 new WebInspector.Main(); |
| OLD | NEW |