| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 this.contentElement.createChild("content"); | 41 this.contentElement.createChild("content"); |
| 42 this.contentElement.tabIndex = 0; | 42 this.contentElement.tabIndex = 0; |
| 43 this.contentElement.addEventListener("focus", this._onFocus.bind(this), fals
e); | 43 this.contentElement.addEventListener("focus", this._onFocus.bind(this), fals
e); |
| 44 this._keyDownBound = this._onKeyDown.bind(this); | 44 this._keyDownBound = this._onKeyDown.bind(this); |
| 45 | 45 |
| 46 this._wrapsContent = false; | 46 this._wrapsContent = false; |
| 47 this._dimmed = false; | 47 this._dimmed = false; |
| 48 /** @type {!Map<!HTMLElement, number>} */ | 48 /** @type {!Map<!HTMLElement, number>} */ |
| 49 this._tabIndexMap = new Map(); | 49 this._tabIndexMap = new Map(); |
| 50 } | 50 }; |
| 51 | 51 |
| 52 /** | 52 /** |
| 53 * @return {boolean} | 53 * @return {boolean} |
| 54 */ | 54 */ |
| 55 WebInspector.Dialog.hasInstance = function() | 55 WebInspector.Dialog.hasInstance = function() |
| 56 { | 56 { |
| 57 return !!WebInspector.Dialog._instance; | 57 return !!WebInspector.Dialog._instance; |
| 58 } | 58 }; |
| 59 | 59 |
| 60 WebInspector.Dialog.prototype = { | 60 WebInspector.Dialog.prototype = { |
| 61 /** | 61 /** |
| 62 * @override | 62 * @override |
| 63 */ | 63 */ |
| 64 show: function() | 64 show: function() |
| 65 { | 65 { |
| 66 if (WebInspector.Dialog._instance) | 66 if (WebInspector.Dialog._instance) |
| 67 WebInspector.Dialog._instance.detach(); | 67 WebInspector.Dialog._instance.detach(); |
| 68 WebInspector.Dialog._instance = this; | 68 WebInspector.Dialog._instance = this; |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 { | 263 { |
| 264 return WebInspector.Dialog._modalHostView; | 264 return WebInspector.Dialog._modalHostView; |
| 265 }; | 265 }; |
| 266 | 266 |
| 267 WebInspector.Dialog.modalHostRepositioned = function() | 267 WebInspector.Dialog.modalHostRepositioned = function() |
| 268 { | 268 { |
| 269 if (WebInspector.Dialog._instance) | 269 if (WebInspector.Dialog._instance) |
| 270 WebInspector.Dialog._instance._position(); | 270 WebInspector.Dialog._instance._position(); |
| 271 }; | 271 }; |
| 272 | 272 |
| OLD | NEW |