Commit 64324c83 authored by dpapad's avatar dpapad Committed by Commit Bot

Remove unnecessary cr.ui.TabPanel dependency from chrome://gpu.

There are no tabs anymore in this page, and the use of
cr.ui.TabPanel can simply be replaced by a plain div.

Bug: 1028829
Change-Id: If7121f011d27dd93a3f276708e468c99744d67f5
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2442498
Commit-Queue: Kenneth Russell <kbr@chromium.org>
Auto-Submit: dpapad <dpapad@chromium.org>
Reviewed-by: default avatarKenneth Russell <kbr@chromium.org>
Cr-Commit-Position: refs/heads/master@{#812733}
parent dce9562f
......@@ -27,19 +27,13 @@ body {
top: 0;
}
tabbox tabpanels {
padding: 10px;
}
</style>
<link rel="stylesheet" href="info_view.css">
<link rel="stylesheet" href="chrome://resources/css/tabs.css">
<link rel="stylesheet" href="chrome://resources/css/widgets.css">
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/cr/event_target.js"></script>
<script src="chrome://resources/js/cr/ui.js"></script>
<script src="chrome://resources/js/cr/ui/focus_outline_manager.js"></script>
<script src="chrome://resources/js/cr/ui/tabs.js"></script>
<script src="chrome://resources/js/load_time_data.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="chrome://resources/mojo/mojo/public/js/mojo_bindings_lite.js"></script>
......
......@@ -3,7 +3,7 @@ Copyright (c) 2012 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
<tabpanel id="info-view">
<div id="info-view">
<div>
<input type="button" id="copy-to-clipboard" value="Copy Report to Clipboard">
</div>
......@@ -132,4 +132,4 @@ found in the LICENSE file.
</table>
</div>
</div>
</tabpanel>
</div>
......@@ -12,16 +12,13 @@ cr.define('gpu', function() {
/**
* Provides information on the GPU process and underlying graphics hardware.
* @constructor
* @extends {cr.ui.TabPanel}
*/
const InfoView = cr.ui.define(cr.ui.TabPanel);
const InfoView = cr.ui.define('div');
InfoView.prototype = {
__proto__: cr.ui.TabPanel.prototype,
__proto__: HTMLDivElement.prototype,
decorate: function() {
cr.ui.TabPanel.prototype.decorate.apply(this);
browserBridge.addEventListener('gpuInfoUpdate', this.refresh.bind(this));
browserBridge.addEventListener(
'logMessagesChange', this.refresh.bind(this));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment