| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) IBM Corp. 2009 All rights reserved. | 2 * Copyright (C) IBM Corp. 2009 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 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 this.emptyElement.textContent = WebInspector.UIString("No Watch Expressions"
); | 117 this.emptyElement.textContent = WebInspector.UIString("No Watch Expressions"
); |
| 118 | 118 |
| 119 this.watchExpressions = WebInspector.settings.watchExpressions.get(); | 119 this.watchExpressions = WebInspector.settings.watchExpressions.get(); |
| 120 | 120 |
| 121 this.headerElement.className = "hidden"; | 121 this.headerElement.className = "hidden"; |
| 122 this.editable = true; | 122 this.editable = true; |
| 123 this.expanded = true; | 123 this.expanded = true; |
| 124 this.propertiesElement.classList.add("watch-expressions"); | 124 this.propertiesElement.classList.add("watch-expressions"); |
| 125 | 125 |
| 126 this.element.addEventListener("mousemove", this._mouseMove.bind(this), true)
; | 126 this.element.addEventListener("mousemove", this._mouseMove.bind(this), true)
; |
| 127 this.element.addEventListener("mouseout", this._mouseOut.bind(this), true); | 127 this.element.addEventListener("mouseleave", this._mouseLeave.bind(this), tru
e); |
| 128 this.element.addEventListener("dblclick", this._sectionDoubleClick.bind(this
), false); | 128 this.element.addEventListener("dblclick", this._sectionDoubleClick.bind(this
), false); |
| 129 this.emptyElement.addEventListener("contextmenu", this._emptyElementContextM
enu.bind(this), false); | 129 this.emptyElement.addEventListener("contextmenu", this._emptyElementContextM
enu.bind(this), false); |
| 130 } | 130 } |
| 131 | 131 |
| 132 WebInspector.WatchExpressionsSection.NewWatchExpression = "\xA0"; | 132 WebInspector.WatchExpressionsSection.NewWatchExpression = "\xA0"; |
| 133 | 133 |
| 134 WebInspector.WatchExpressionsSection.prototype = { | 134 WebInspector.WatchExpressionsSection.prototype = { |
| 135 /** | 135 /** |
| 136 * @param {!Event=} e | 136 * @param {!Event=} e |
| 137 */ | 137 */ |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 WebInspector.settings.watchExpressions.set(toSave); | 304 WebInspector.settings.watchExpressions.set(toSave); |
| 305 return toSave.length; | 305 return toSave.length; |
| 306 }, | 306 }, |
| 307 | 307 |
| 308 _mouseMove: function(e) | 308 _mouseMove: function(e) |
| 309 { | 309 { |
| 310 if (this.propertiesElement.firstChild) | 310 if (this.propertiesElement.firstChild) |
| 311 this._updateHoveredElement(e.pageY); | 311 this._updateHoveredElement(e.pageY); |
| 312 }, | 312 }, |
| 313 | 313 |
| 314 _mouseOut: function() | 314 _mouseLeave: function() |
| 315 { | 315 { |
| 316 if (this._hoveredElement) { | 316 if (this._hoveredElement) { |
| 317 this._hoveredElement.classList.remove("hovered"); | 317 this._hoveredElement.classList.remove("hovered"); |
| 318 delete this._hoveredElement; | 318 delete this._hoveredElement; |
| 319 } | 319 } |
| 320 delete this._lastMouseMovePageY; | 320 delete this._lastMouseMovePageY; |
| 321 }, | 321 }, |
| 322 | 322 |
| 323 _updateHoveredElement: function(pageY) | 323 _updateHoveredElement: function(pageY) |
| 324 { | 324 { |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 }, | 529 }, |
| 530 | 530 |
| 531 oncollapse: function() | 531 oncollapse: function() |
| 532 { | 532 { |
| 533 WebInspector.ObjectPropertyTreeElement.prototype.oncollapse.call(this); | 533 WebInspector.ObjectPropertyTreeElement.prototype.oncollapse.call(this); |
| 534 delete this.treeOutline.section._expandedProperties[this.propertyPath()]
; | 534 delete this.treeOutline.section._expandedProperties[this.propertyPath()]
; |
| 535 }, | 535 }, |
| 536 | 536 |
| 537 __proto__: WebInspector.ObjectPropertyTreeElement.prototype | 537 __proto__: WebInspector.ObjectPropertyTreeElement.prototype |
| 538 } | 538 } |
| OLD | NEW |