| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } | 136 } |
| 137 } | 137 } |
| 138 }; | 138 }; |
| 139 | 139 |
| 140 /** | 140 /** |
| 141 * @constructor | 141 * @constructor |
| 142 * @extends {WebInspector.Object} | 142 * @extends {WebInspector.Object} |
| 143 */ | 143 */ |
| 144 WebInspector.DialogDelegate = function() | 144 WebInspector.DialogDelegate = function() |
| 145 { | 145 { |
| 146 /** @type {!Element} */ | 146 this.element = createElement("div"); |
| 147 this.element; | |
| 148 } | 147 } |
| 149 | 148 |
| 150 WebInspector.DialogDelegate.prototype = { | 149 WebInspector.DialogDelegate.prototype = { |
| 151 /** | 150 /** |
| 152 * @param {!Element} element | 151 * @param {!Element} element |
| 153 */ | 152 */ |
| 154 show: function(element) | 153 show: function(element) |
| 155 { | 154 { |
| 156 element.appendChild(this.element); | 155 element.appendChild(this.element); |
| 157 this.element.classList.add("dialog-contents"); | 156 this.element.classList.add("dialog-contents"); |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 206 { | 205 { |
| 207 return WebInspector.Dialog._modalHostView; | 206 return WebInspector.Dialog._modalHostView; |
| 208 }; | 207 }; |
| 209 | 208 |
| 210 WebInspector.Dialog.modalHostRepositioned = function() | 209 WebInspector.Dialog.modalHostRepositioned = function() |
| 211 { | 210 { |
| 212 if (WebInspector.Dialog._instance) | 211 if (WebInspector.Dialog._instance) |
| 213 WebInspector.Dialog._instance._position(); | 212 WebInspector.Dialog._instance._position(); |
| 214 }; | 213 }; |
| 215 | 214 |
| OLD | NEW |