| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 231 this.sidebarTree.appendChild(node); | 231 this.sidebarTree.appendChild(node); |
| 232 } | 232 } |
| 233 }, | 233 }, |
| 234 | 234 |
| 235 /** | 235 /** |
| 236 * @param {!Element} target | 236 * @param {!Element} target |
| 237 * @return {!Element} | 237 * @return {!Element} |
| 238 */ | 238 */ |
| 239 _getHoverAnchor: function(target) | 239 _getHoverAnchor: function(target) |
| 240 { | 240 { |
| 241 return target.enclosingNodeOrSelfWithNodeName("span"); | 241 return /** @type {!Element} */ (target.enclosingNodeOrSelfWithNodeName("
span")); |
| 242 }, | 242 }, |
| 243 | 243 |
| 244 /** | 244 /** |
| 245 * @param {!Element} element | 245 * @param {!Element} element |
| 246 * @param {function(!WebInspector.RemoteObject, boolean, !Element=):undefine
d} showCallback | 246 * @param {function(!WebInspector.RemoteObject, boolean, !Element=):undefine
d} showCallback |
| 247 */ | 247 */ |
| 248 _resolveObjectForPopover: function(element, showCallback) | 248 _resolveObjectForPopover: function(element, showCallback) |
| 249 { | 249 { |
| 250 var liElement = element.enclosingNodeOrSelfWithNodeName("li"); | 250 var liElement = element.enclosingNodeOrSelfWithNodeName("li"); |
| 251 var logItem = liElement.treeElement.representedObject; | 251 var logItem = liElement.treeElement.representedObject; |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 322 /** | 322 /** |
| 323 * @param {boolean} hovered | 323 * @param {boolean} hovered |
| 324 */ | 324 */ |
| 325 setHovered: function(hovered) | 325 setHovered: function(hovered) |
| 326 { | 326 { |
| 327 this.listItemElement.classList.toggle("hovered", hovered); | 327 this.listItemElement.classList.toggle("hovered", hovered); |
| 328 }, | 328 }, |
| 329 | 329 |
| 330 __proto__: TreeElement.prototype | 330 __proto__: TreeElement.prototype |
| 331 }; | 331 }; |
| OLD | NEW |