| Index: tracing/tracing/value/ui/device_info_span.html
|
| diff --git a/tracing/tracing/value/ui/device_info_span.html b/tracing/tracing/value/ui/device_info_span.html
|
| deleted file mode 100644
|
| index 04bb9391c2f8632f1a5d763ff010a6d02b21187f..0000000000000000000000000000000000000000
|
| --- a/tracing/tracing/value/ui/device_info_span.html
|
| +++ /dev/null
|
| @@ -1,77 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<!--
|
| -Copyright 2016 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.
|
| --->
|
| -
|
| -<link rel="import" href="/tracing/ui/base/table.html">
|
| -
|
| -<dom-module id="tr-v-ui-device-info-span">
|
| - <template>
|
| - <tr-ui-b-table id="table"></tr-ui-b-table>
|
| - </template>
|
| -</dom-module>
|
| -
|
| -<script>
|
| -'use strict';
|
| -Polymer({
|
| - is: 'tr-v-ui-device-info-span',
|
| -
|
| - ready() {
|
| - this.diagnostic_ = undefined;
|
| - this.$.table.showHeader = false;
|
| - this.$.table.tableColumns = [
|
| - {
|
| - value(row) {
|
| - return row[0];
|
| - },
|
| - },
|
| - {
|
| - value(row) {
|
| - return row[1];
|
| - }
|
| - }
|
| - ];
|
| - },
|
| -
|
| - get diagnostic() {
|
| - return this.diagnostic_;
|
| - },
|
| -
|
| - set diagnostic(d) {
|
| - this.diagnostic_ = d;
|
| - this.updateContents_();
|
| - },
|
| -
|
| - updateContents_() {
|
| - if (this.diagnostic === undefined) {
|
| - this.$.table.tableRows = [];
|
| - return;
|
| - }
|
| -
|
| - const rows = [];
|
| -
|
| - if (this.diagnostic.chromeVersion) {
|
| - rows.push(['chrome version', this.diagnostic.chromeVersion]);
|
| - }
|
| - if (this.diagnostic.osName) {
|
| - rows.push(['OS name', this.diagnostic.osName]);
|
| - }
|
| - if (this.diagnostic.osVersion) {
|
| - rows.push(['OS version', this.diagnostic.osVersion]);
|
| - }
|
| - if (this.diagnostic.gpuInfo) {
|
| - rows.push(['GPU', JSON.stringify(this.diagnostic.gpuInfo)]);
|
| - }
|
| - if (this.diagnostic.arch) {
|
| - rows.push(['arch', this.diagnostic.arch]);
|
| - }
|
| - if (this.diagnostic.ram) {
|
| - rows.push(['ram', tr.b.Unit.byName.sizeInBytes.format(
|
| - this.diagnostic.ram)]);
|
| - }
|
| - this.$.table.tableRows = rows;
|
| - }
|
| -});
|
| -</script>
|
|
|