| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). | 4 * Copyright (C) 2007 Matt Lilek (pewtermoose@gmail.com). |
| 5 * Copyright (C) 2009 Joseph Pecoraro | 5 * Copyright (C) 2009 Joseph Pecoraro |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * | 10 * |
| (...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 156 dispose: function() | 156 dispose: function() |
| 157 { | 157 { |
| 158 delete WebInspector._glassPane; | 158 delete WebInspector._glassPane; |
| 159 if (WebInspector.GlassPane.DefaultFocusedViewStack.length) | 159 if (WebInspector.GlassPane.DefaultFocusedViewStack.length) |
| 160 WebInspector.GlassPane.DefaultFocusedViewStack.peekLast().focus(); | 160 WebInspector.GlassPane.DefaultFocusedViewStack.peekLast().focus(); |
| 161 this.element.remove(); | 161 this.element.remove(); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 | 164 |
| 165 /** | 165 /** |
| 166 * @type {!Array.<!WebInspector.View>} | 166 * @type {!Array.<!WebInspector.View|!WebInspector.Dialog>} |
| 167 */ | 167 */ |
| 168 WebInspector.GlassPane.DefaultFocusedViewStack = []; | 168 WebInspector.GlassPane.DefaultFocusedViewStack = []; |
| 169 | 169 |
| 170 /** | 170 /** |
| 171 * @param {?Node=} node | 171 * @param {?Node=} node |
| 172 * @return {boolean} | 172 * @return {boolean} |
| 173 */ | 173 */ |
| 174 WebInspector.isBeingEdited = function(node) | 174 WebInspector.isBeingEdited = function(node) |
| 175 { | 175 { |
| 176 if (!node || node.nodeType !== Node.ELEMENT_NODE) | 176 if (!node || node.nodeType !== Node.ELEMENT_NODE) |
| (...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 904 window.addEventListener("focus", WebInspector._windowFocused, false); | 904 window.addEventListener("focus", WebInspector._windowFocused, false); |
| 905 window.addEventListener("blur", WebInspector._windowBlurred, false); | 905 window.addEventListener("blur", WebInspector._windowBlurred, false); |
| 906 document.addEventListener("focus", WebInspector._focusChanged, true); | 906 document.addEventListener("focus", WebInspector._focusChanged, true); |
| 907 document.addEventListener("blur", WebInspector._documentBlurred, true); | 907 document.addEventListener("blur", WebInspector._documentBlurred, true); |
| 908 window.removeEventListener("DOMContentLoaded", windowLoaded, false); | 908 window.removeEventListener("DOMContentLoaded", windowLoaded, false); |
| 909 } | 909 } |
| 910 | 910 |
| 911 window.addEventListener("DOMContentLoaded", windowLoaded, false); | 911 window.addEventListener("DOMContentLoaded", windowLoaded, false); |
| 912 | 912 |
| 913 })(); | 913 })(); |
| OLD | NEW |