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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/ui/ReportView.js

Issue 2914293002: [IndexedDB] [DevTools] Right-click 'Refresh' on database now updates object store view, also fixed … (Closed)
Patch Set: Using await instead Created 3 years, 6 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 | « third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 UI.ReportView = class extends UI.VBox { 7 UI.ReportView = class extends UI.VBox {
8 /** 8 /**
9 * @param {string} title 9 * @param {string} title
10 */ 10 */
11 constructor(title) { 11 constructor(title) {
12 super(true); 12 super(true);
13 this.registerRequiredCSS('ui/reportView.css'); 13 this.registerRequiredCSS('ui/reportView.css');
14 14
15 var contentBox = this.contentElement.createChild('div', 'report-content-box' ); 15 var contentBox = this.contentElement.createChild('div', 'report-content-box' );
16 this._headerElement = contentBox.createChild('div', 'report-header vbox'); 16 this._headerElement = contentBox.createChild('div', 'report-header vbox');
17 this._headerElement.createChild('div', 'report-title').textContent = title; 17 this._titleElement = this._headerElement.createChild('div', 'report-title');
18 this._titleElement.textContent = title;
18 19
19 this._sectionList = contentBox.createChild('div', 'vbox'); 20 this._sectionList = contentBox.createChild('div', 'vbox');
20 } 21 }
21 22
22 /** 23 /**
24 * @param {string} title
25 */
26 setTitle(title) {
27 if (this._titleElement && this._titleElement.textContent === title)
28 return;
29 this._titleElement.textContent = title;
30 }
31
32 /**
23 * @param {string} subtitle 33 * @param {string} subtitle
24 */ 34 */
25 setSubtitle(subtitle) { 35 setSubtitle(subtitle) {
26 if (this._subtitleElement && this._subtitleElement.textContent === subtitle) 36 if (this._subtitleElement && this._subtitleElement.textContent === subtitle)
27 return; 37 return;
28 if (!this._subtitleElement) 38 if (!this._subtitleElement)
29 this._subtitleElement = this._headerElement.createChild('div', 'report-sub title'); 39 this._subtitleElement = this._headerElement.createChild('div', 'report-sub title');
30 this._subtitleElement.textContent = subtitle; 40 this._subtitleElement.textContent = subtitle;
31 } 41 }
32 42
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 */ 170 */
161 appendRow() { 171 appendRow() {
162 return this._fieldList.createChild('div', 'report-row'); 172 return this._fieldList.createChild('div', 'report-row');
163 } 173 }
164 174
165 clearContent() { 175 clearContent() {
166 this._fieldList.removeChildren(); 176 this._fieldList.removeChildren();
167 this._fieldMap.clear(); 177 this._fieldMap.clear();
168 } 178 }
169 }; 179 };
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/front_end/resources/IndexedDBViews.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698