| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 this._tabIndexMap.set(element, tabIndex); | 149 this._tabIndexMap.set(element, tabIndex); |
| 150 element.tabIndex = -1; | 150 element.tabIndex = -1; |
| 151 } | 151 } |
| 152 } | 152 } |
| 153 } | 153 } |
| 154 }, | 154 }, |
| 155 | 155 |
| 156 _restoreTabIndexOnElements: function() | 156 _restoreTabIndexOnElements: function() |
| 157 { | 157 { |
| 158 for (var element of this._tabIndexMap.keys()) | 158 for (var element of this._tabIndexMap.keys()) |
| 159 element.tabIndex = this._tabIndexMap.get(element); | 159 element.tabIndex = /** @type {number} */(this._tabIndexMap.get(eleme
nt)); |
| 160 this._tabIndexMap.clear(); | 160 this._tabIndexMap.clear(); |
| 161 }, | 161 }, |
| 162 | 162 |
| 163 /** | 163 /** |
| 164 * @param {!Event} event | 164 * @param {!Event} event |
| 165 */ | 165 */ |
| 166 _onFocus: function(event) | 166 _onFocus: function(event) |
| 167 { | 167 { |
| 168 this.focus(); | 168 this.focus(); |
| 169 }, | 169 }, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 { | 251 { |
| 252 return WebInspector.Dialog._modalHostView; | 252 return WebInspector.Dialog._modalHostView; |
| 253 }; | 253 }; |
| 254 | 254 |
| 255 WebInspector.Dialog.modalHostRepositioned = function() | 255 WebInspector.Dialog.modalHostRepositioned = function() |
| 256 { | 256 { |
| 257 if (WebInspector.Dialog._instance) | 257 if (WebInspector.Dialog._instance) |
| 258 WebInspector.Dialog._instance._position(); | 258 WebInspector.Dialog._instance._position(); |
| 259 }; | 259 }; |
| 260 | 260 |
| OLD | NEW |