| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 /** | 55 /** |
| 56 * @type {?WebInspector.HelpScreen} | 56 * @type {?WebInspector.HelpScreen} |
| 57 */ | 57 */ |
| 58 WebInspector.HelpScreen._visibleScreen = null; | 58 WebInspector.HelpScreen._visibleScreen = null; |
| 59 | 59 |
| 60 WebInspector.HelpScreen.prototype = { | 60 WebInspector.HelpScreen.prototype = { |
| 61 _createCloseButton: function() | 61 _createCloseButton: function() |
| 62 { | 62 { |
| 63 var closeButton = document.createElement("div"); | 63 var closeButton = createElement("div"); |
| 64 closeButton.className = "help-close-button close-button-gray"; | 64 closeButton.className = "help-close-button close-button-gray"; |
| 65 closeButton.addEventListener("click", this.hide.bind(this), false); | 65 closeButton.addEventListener("click", this.hide.bind(this), false); |
| 66 return closeButton; | 66 return closeButton; |
| 67 }, | 67 }, |
| 68 | 68 |
| 69 showModal: function() | 69 showModal: function() |
| 70 { | 70 { |
| 71 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; | 71 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; |
| 72 if (visibleHelpScreen === this) | 72 if (visibleHelpScreen === this) |
| 73 return; | 73 return; |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 var p = this.contentElement.createChild("p"); | 145 var p = this.contentElement.createChild("p"); |
| 146 p.classList.add("help-section"); | 146 p.classList.add("help-section"); |
| 147 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); | 147 p.textContent = WebInspector.UIString("Inspected worker has terminated. Once
it restarts we will attach to it automatically."); |
| 148 } | 148 } |
| 149 | 149 |
| 150 WebInspector.WorkerTerminatedScreen.prototype = { | 150 WebInspector.WorkerTerminatedScreen.prototype = { |
| 151 | 151 |
| 152 __proto__: WebInspector.HelpScreen.prototype | 152 __proto__: WebInspector.HelpScreen.prototype |
| 153 } | 153 } |
| 154 | 154 |
| OLD | NEW |