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

Side by Side Diff: chrome/browser/resources/gpu_internals/info_view.js

Issue 9706037: Display crash report IDs in about:gpu (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 5
6 /** 6 /**
7 * @fileoverview This view displays information on the current GPU 7 * @fileoverview This view displays information on the current GPU
8 * hardware. Its primary usefulness is to allow users to copy-paste 8 * hardware. Its primary usefulness is to allow users to copy-paste
9 * their data in an easy to read format for bug reports. 9 * their data in an easy to read format for bug reports.
10 */ 10 */
11 cr.define('gpu', function() { 11 cr.define('gpu', function() {
12 /** 12 /**
13 * Provides information on the GPU process and underlying graphics hardware. 13 * Provides information on the GPU process and underlying graphics hardware.
14 * @constructor 14 * @constructor
15 * @extends {cr.ui.TabPanel} 15 * @extends {cr.ui.TabPanel}
16 */ 16 */
17 var InfoView = cr.ui.define(cr.ui.TabPanel); 17 var InfoView = cr.ui.define(cr.ui.TabPanel);
18 18
19 InfoView.prototype = { 19 InfoView.prototype = {
20 __proto__: cr.ui.TabPanel.prototype, 20 __proto__: cr.ui.TabPanel.prototype,
21 21
22 decorate: function() { 22 decorate: function() {
23 cr.ui.TabPanel.prototype.decorate.apply(this); 23 cr.ui.TabPanel.prototype.decorate.apply(this);
24 24
25 browserBridge.addEventListener('gpuInfoUpdate', this.refresh.bind(this)); 25 browserBridge.addEventListener('gpuInfoUpdate', this.refresh.bind(this));
26 browserBridge.addEventListener('logMessagesChange', 26 browserBridge.addEventListener('logMessagesChange',
27 this.refresh.bind(this)); 27 this.refresh.bind(this));
28 browserBridge.addEventListener('clientInfoChange', 28 browserBridge.addEventListener('clientInfoChange',
29 this.refresh.bind(this)); 29 this.refresh.bind(this));
30 browserBridge.addEventListener('crashListChange',
31 this.refresh.bind(this));
30 this.refresh(); 32 this.refresh();
31 }, 33 },
32 34
33 /** 35 /**
34 * Updates the view based on its currently known data 36 * Updates the view based on its currently known data
35 */ 37 */
36 refresh: function(data) { 38 refresh: function(data) {
37 // Client info 39 // Client info
38 if (browserBridge.clientInfo) { 40 if (browserBridge.clientInfo) {
39 var clientInfo = browserBridge.clientInfo; 41 var clientInfo = browserBridge.clientInfo;
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 } else { 179 } else {
178 diagnosticsDiv.hidden = true; 180 diagnosticsDiv.hidden = true;
179 } 181 }
180 } else { 182 } else {
181 this.setText_('basic-info', '... loading ...'); 183 this.setText_('basic-info', '... loading ...');
182 diagnosticsDiv.hidden = true; 184 diagnosticsDiv.hidden = true;
183 featureStatusList.textContent = ''; 185 featureStatusList.textContent = '';
184 problemsDiv.hidden = true; 186 problemsDiv.hidden = true;
185 } 187 }
186 188
189 // Crash list
190 jstProcess(new JsEvalContext({values: browserBridge.crashList}),
191 document.getElementById('crash-list'));
192
187 // Log messages 193 // Log messages
188 jstProcess(new JsEvalContext({values: browserBridge.logMessages}), 194 jstProcess(new JsEvalContext({values: browserBridge.logMessages}),
189 document.getElementById('log-messages')); 195 document.getElementById('log-messages'));
190 }, 196 },
191 197
192 createProblemEl_: function(problem) { 198 createProblemEl_: function(problem) {
193 var problemEl; 199 var problemEl;
194 problemEl = document.createElement('li'); 200 problemEl = document.createElement('li');
195 201
196 // Description of issue 202 // Description of issue
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 265
260 peg.innerHTML = ''; 266 peg.innerHTML = '';
261 peg.appendChild(template); 267 peg.appendChild(template);
262 } 268 }
263 }; 269 };
264 270
265 return { 271 return {
266 InfoView: InfoView 272 InfoView: InfoView
267 }; 273 };
268 }); 274 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/gpu_internals/info_view.html ('k') | chrome/browser/ui/webui/gpu_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698