| 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 20 matching lines...) Expand all Loading... |
| 31 /** | 31 /** |
| 32 * @constructor | 32 * @constructor |
| 33 * @extends {WebInspector.Object} | 33 * @extends {WebInspector.Object} |
| 34 * @param {!TreeOutline} treeOutline | 34 * @param {!TreeOutline} treeOutline |
| 35 */ | 35 */ |
| 36 WebInspector.LayerTreeOutline = function(treeOutline) | 36 WebInspector.LayerTreeOutline = function(treeOutline) |
| 37 { | 37 { |
| 38 WebInspector.Object.call(this); | 38 WebInspector.Object.call(this); |
| 39 this._treeOutline = treeOutline; | 39 this._treeOutline = treeOutline; |
| 40 this._treeOutline.childrenListElement.addEventListener("mousemove", this._on
MouseMove.bind(this), false); | 40 this._treeOutline.childrenListElement.addEventListener("mousemove", this._on
MouseMove.bind(this), false); |
| 41 this._treeOutline.childrenListElement.addEventListener("mouseout", this._onM
ouseMove.bind(this), false); | 41 this._treeOutline.childrenListElement.addEventListener("mouseleave", this._o
nMouseMove.bind(this), false); |
| 42 this._treeOutline.childrenListElement.addEventListener("contextmenu", this._
onContextMenu.bind(this), true); | 42 this._treeOutline.childrenListElement.addEventListener("contextmenu", this._
onContextMenu.bind(this), true); |
| 43 this._lastHoveredNode = null; | 43 this._lastHoveredNode = null; |
| 44 } | 44 } |
| 45 | 45 |
| 46 /** | 46 /** |
| 47 * @enum {string} | 47 * @enum {string} |
| 48 */ | 48 */ |
| 49 WebInspector.LayerTreeOutline.Events = { | 49 WebInspector.LayerTreeOutline.Events = { |
| 50 LayerHovered: "LayerHovered", | 50 LayerHovered: "LayerHovered", |
| 51 LayerSelected: "LayerSelected" | 51 LayerSelected: "LayerSelected" |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 /** | 215 /** |
| 216 * @param {boolean} hovered | 216 * @param {boolean} hovered |
| 217 */ | 217 */ |
| 218 setHovered: function(hovered) | 218 setHovered: function(hovered) |
| 219 { | 219 { |
| 220 this.listItemElement.classList.toggle("hovered", hovered); | 220 this.listItemElement.classList.toggle("hovered", hovered); |
| 221 }, | 221 }, |
| 222 | 222 |
| 223 __proto__: TreeElement.prototype | 223 __proto__: TreeElement.prototype |
| 224 } | 224 } |
| OLD | NEW |