| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 | 81 |
| 82 showModal: function() | 82 showModal: function() |
| 83 { | 83 { |
| 84 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; | 84 var visibleHelpScreen = WebInspector.HelpScreen._visibleScreen; |
| 85 if (visibleHelpScreen === this) | 85 if (visibleHelpScreen === this) |
| 86 return; | 86 return; |
| 87 | 87 |
| 88 if (visibleHelpScreen) | 88 if (visibleHelpScreen) |
| 89 visibleHelpScreen.hide(); | 89 visibleHelpScreen.hide(); |
| 90 WebInspector.HelpScreen._visibleScreen = this; | 90 WebInspector.HelpScreen._visibleScreen = this; |
| 91 this.show(document.body); | 91 this.show(WebInspector.inspectorView.devtoolsElement()); |
| 92 this.focus(); | 92 this.focus(); |
| 93 }, | 93 }, |
| 94 | 94 |
| 95 hide: function() | 95 hide: function() |
| 96 { | 96 { |
| 97 if (!this.isShowing()) | 97 if (!this.isShowing()) |
| 98 return; | 98 return; |
| 99 | 99 |
| 100 WebInspector.HelpScreen._visibleScreen = null; | 100 WebInspector.HelpScreen._visibleScreen = null; |
| 101 | 101 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 */ | 148 */ |
| 149 willHide: function() | 149 willHide: function() |
| 150 { | 150 { |
| 151 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.GlobalObjectCleared, this.hide, this); | 151 WebInspector.debuggerModel.removeEventListener(WebInspector.DebuggerMode
l.Events.GlobalObjectCleared, this.hide, this); |
| 152 WebInspector.HelpScreen.prototype.willHide.call(this); | 152 WebInspector.HelpScreen.prototype.willHide.call(this); |
| 153 }, | 153 }, |
| 154 | 154 |
| 155 __proto__: WebInspector.HelpScreen.prototype | 155 __proto__: WebInspector.HelpScreen.prototype |
| 156 } | 156 } |
| 157 | 157 |
| OLD | NEW |