Index: tracing/tracing/value/ui/telemetry_info_span.html |
diff --git a/tracing/tracing/value/ui/telemetry_info_span.html b/tracing/tracing/value/ui/telemetry_info_span.html |
deleted file mode 100644 |
index fdad6effa5e288efed2c7de7325be7b1ce9b9f8d..0000000000000000000000000000000000000000 |
--- a/tracing/tracing/value/ui/telemetry_info_span.html |
+++ /dev/null |
@@ -1,73 +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-telemetry-info-span"> |
- <template> |
- <tr-ui-b-table id="table"></tr-ui-b-table> |
- </template> |
-</dom-module> |
-<script> |
-'use strict'; |
-Polymer({ |
- is: 'tr-v-ui-telemetry-info-span', |
- |
- ready() { |
- this.diagnostic_ = undefined; |
- this.$.table.showHeader = false; |
- this.$.table.tableColumns = [ |
- {value: row => row[0]}, |
- {value: row => 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.benchmarkName) { |
- rows.push(['benchmark name', this.diagnostic.benchmarkName]); |
- } |
- if (this.diagnostic.benchmarkStart) { |
- rows.push(['benchmark start', this.diagnostic.benchmarkStartString]); |
- } |
- if (this.diagnostic.storyDisplayName) { |
- rows.push(['story', this.diagnostic.storyDisplayName]); |
- } |
- if (this.diagnostic.storysetRepeatCounter !== undefined) { |
- rows.push(['storyset repeat', this.diagnostic.storysetRepeatCounter]); |
- } |
- if (this.diagnostic.label) { |
- rows.push(['label', this.diagnostic.label]); |
- } |
- if (this.diagnostic.storyGroupingKeys.size) { |
- const gov = document.createElement('tr-ui-a-generic-object-view'); |
- const obj = {}; |
- for (const [key, value] of this.diagnostic.storyGroupingKeys) { |
- obj[key] = value; |
- } |
- gov.object = obj; |
- rows.push(['grouping keys', gov]); |
- } |
- this.$.table.tableRows = rows; |
- } |
-}); |
-</script> |