| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 /** | 4 /** |
| 5 * @unrestricted | 5 * @unrestricted |
| 6 */ | 6 */ |
| 7 Components.CustomPreviewSection = class { | 7 Components.CustomPreviewSection = class { |
| 8 /** | 8 /** |
| 9 * @param {!SDK.RemoteObject} object | 9 * @param {!SDK.RemoteObject} object |
| 10 */ | 10 */ |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 this._toggleExpand(); | 118 this._toggleExpand(); |
| 119 else | 119 else |
| 120 this._loadBody(); | 120 this._loadBody(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 _toggleExpand() { | 123 _toggleExpand() { |
| 124 this._expanded = !this._expanded; | 124 this._expanded = !this._expanded; |
| 125 this._header.classList.toggle('expanded', this._expanded); | 125 this._header.classList.toggle('expanded', this._expanded); |
| 126 this._cachedContent.classList.toggle('hidden', !this._expanded); | 126 this._cachedContent.classList.toggle('hidden', !this._expanded); |
| 127 if (this._expanded) | 127 if (this._expanded) |
| 128 this._expandIcon.setIconType('smallicon-triangle-bottom'); | 128 this._expandIcon.setIconType('smallicon-triangle-down'); |
| 129 else | 129 else |
| 130 this._expandIcon.setIconType('smallicon-triangle-right'); | 130 this._expandIcon.setIconType('smallicon-triangle-right'); |
| 131 } | 131 } |
| 132 | 132 |
| 133 _loadBody() { | 133 _loadBody() { |
| 134 /** | 134 /** |
| 135 * @suppressReceiverCheck | 135 * @suppressReceiverCheck |
| 136 * @suppressGlobalPropertiesCheck | 136 * @suppressGlobalPropertiesCheck |
| 137 * @suppress {undefinedVars} | 137 * @suppress {undefinedVars} |
| 138 * @this {Object} | 138 * @this {Object} |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 } | 232 } |
| 233 | 233 |
| 234 _disassemble() { | 234 _disassemble() { |
| 235 this.element.shadowRoot.textContent = ''; | 235 this.element.shadowRoot.textContent = ''; |
| 236 this._customPreviewSection = null; | 236 this._customPreviewSection = null; |
| 237 this.element.shadowRoot.appendChild(Components.ObjectPropertiesSection.defau
ltObjectPresentation(this._object)); | 237 this.element.shadowRoot.appendChild(Components.ObjectPropertiesSection.defau
ltObjectPresentation(this._object)); |
| 238 } | 238 } |
| 239 }; | 239 }; |
| 240 | 240 |
| 241 Components.CustomPreviewSection._tagsWhiteList = new Set(['span', 'div', 'ol', '
li', 'table', 'tr', 'td']); | 241 Components.CustomPreviewSection._tagsWhiteList = new Set(['span', 'div', 'ol', '
li', 'table', 'tr', 'td']); |
| OLD | NEW |