| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 const popoverWidth = 300; | 146 const popoverWidth = 300; |
| 147 const popoverHeight = 250; | 147 const popoverHeight = 250; |
| 148 popover.show(popoverContentElement, anchorElement, popoverWidth,
popoverHeight); | 148 popover.show(popoverContentElement, anchorElement, popoverWidth,
popoverHeight); |
| 149 } | 149 } |
| 150 } | 150 } |
| 151 this._queryObject(element, showObjectPopover.bind(this), this._popoverOb
jectGroup); | 151 this._queryObject(element, showObjectPopover.bind(this), this._popoverOb
jectGroup); |
| 152 }, | 152 }, |
| 153 | 153 |
| 154 _onHideObjectPopover: function() | 154 _onHideObjectPopover: function() |
| 155 { | 155 { |
| 156 WebInspector.domAgent.hideDOMNodeHighlight(); | 156 WebInspector.domModel.hideDOMNodeHighlight(); |
| 157 if (this._linkifier) { | 157 if (this._linkifier) { |
| 158 this._linkifier.reset(); | 158 this._linkifier.reset(); |
| 159 delete this._linkifier; | 159 delete this._linkifier; |
| 160 } | 160 } |
| 161 if (this._onHideCallback) | 161 if (this._onHideCallback) |
| 162 this._onHideCallback(); | 162 this._onHideCallback(); |
| 163 RuntimeAgent.releaseObjectGroup(this._popoverObjectGroup); | 163 RuntimeAgent.releaseObjectGroup(this._popoverObjectGroup); |
| 164 }, | 164 }, |
| 165 | 165 |
| 166 _updateHTMLId: function(properties, rootTreeElementConstructor, rootProperty
Comparer) | 166 _updateHTMLId: function(properties, rootTreeElementConstructor, rootProperty
Comparer) |
| 167 { | 167 { |
| 168 for (var i = 0; i < properties.length; ++i) { | 168 for (var i = 0; i < properties.length; ++i) { |
| 169 if (properties[i].name === "id") { | 169 if (properties[i].name === "id") { |
| 170 if (properties[i].value.description) | 170 if (properties[i].value.description) |
| 171 this._titleElement.textContent += "#" + properties[i].value.
description; | 171 this._titleElement.textContent += "#" + properties[i].value.
description; |
| 172 break; | 172 break; |
| 173 } | 173 } |
| 174 } | 174 } |
| 175 this._sectionUpdateProperties(properties, rootTreeElementConstructor, ro
otPropertyComparer); | 175 this._sectionUpdateProperties(properties, rootTreeElementConstructor, ro
otPropertyComparer); |
| 176 }, | 176 }, |
| 177 | 177 |
| 178 __proto__: WebInspector.PopoverHelper.prototype | 178 __proto__: WebInspector.PopoverHelper.prototype |
| 179 } | 179 } |
| OLD | NEW |