| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 {Tab} | 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)); |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 | 239 |
| 240 peg.innerHTML = ''; | 240 peg.innerHTML = ''; |
| 241 peg.appendChild(template); | 241 peg.appendChild(template); |
| 242 } | 242 } |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 return { | 245 return { |
| 246 InfoView: InfoView | 246 InfoView: InfoView |
| 247 }; | 247 }; |
| 248 }); | 248 }); |
| OLD | NEW |