Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(427)

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/components/CustomPreviewSection.js

Issue 2649153005: DevTools: convert datagrid and network waterfall sort icons to UI.Icon (Closed)
Patch Set: rebaseline Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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']);
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/devtools/front_end/console/ConsoleViewMessage.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698