| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 focus: function() { }, | 179 focus: function() { }, |
| 180 | 180 |
| 181 onEnter: function(event) { }, | 181 onEnter: function(event) { }, |
| 182 | 182 |
| 183 willHide: function() { }, | 183 willHide: function() { }, |
| 184 | 184 |
| 185 __proto__: WebInspector.Object.prototype | 185 __proto__: WebInspector.Object.prototype |
| 186 } | 186 } |
| 187 | 187 |
| 188 /** @type {?WebInspector.View} */ | 188 /** @type {?WebInspector.Widget} */ |
| 189 WebInspector.Dialog._modalHostView = null; | 189 WebInspector.Dialog._modalHostView = null; |
| 190 | 190 |
| 191 /** | 191 /** |
| 192 * @param {!WebInspector.View} view | 192 * @param {!WebInspector.Widget} view |
| 193 */ | 193 */ |
| 194 WebInspector.Dialog.setModalHostView = function(view) | 194 WebInspector.Dialog.setModalHostView = function(view) |
| 195 { | 195 { |
| 196 WebInspector.Dialog._modalHostView = view; | 196 WebInspector.Dialog._modalHostView = view; |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 /** | 199 /** |
| 200 * FIXME: make utility method in Dialog, so clients use it instead of this gette
r. | 200 * FIXME: make utility method in Dialog, so clients use it instead of this gette
r. |
| 201 * Method should be like Dialog.showModalElement(position params, reposition cal
lback). | 201 * Method should be like Dialog.showModalElement(position params, reposition cal
lback). |
| 202 * @return {?WebInspector.View} | 202 * @return {?WebInspector.Widget} |
| 203 */ | 203 */ |
| 204 WebInspector.Dialog.modalHostView = function() | 204 WebInspector.Dialog.modalHostView = function() |
| 205 { | 205 { |
| 206 return WebInspector.Dialog._modalHostView; | 206 return WebInspector.Dialog._modalHostView; |
| 207 }; | 207 }; |
| 208 | 208 |
| 209 WebInspector.Dialog.modalHostRepositioned = function() | 209 WebInspector.Dialog.modalHostRepositioned = function() |
| 210 { | 210 { |
| 211 if (WebInspector.Dialog._instance) | 211 if (WebInspector.Dialog._instance) |
| 212 WebInspector.Dialog._instance._position(); | 212 WebInspector.Dialog._instance._position(); |
| 213 }; | 213 }; |
| 214 | 214 |
| OLD | NEW |