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

Unified Diff: tracing/tracing/value/ui/related_histogram_map_span.html

Issue 3009553002: Refactor Histogram relationship diagnostics. (Closed)
Patch Set: Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: tracing/tracing/value/ui/related_histogram_map_span.html
diff --git a/tracing/tracing/value/ui/related_histogram_map_span.html b/tracing/tracing/value/ui/related_histogram_map_span.html
deleted file mode 100644
index 0bdf970631cd8d591ca96638467552d6eed31143..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/ui/related_histogram_map_span.html
+++ /dev/null
@@ -1,62 +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/analysis/analysis_link.html">
-<link rel="import" href="/tracing/ui/base/table.html">
-<link rel="import" href="/tracing/value/ui/diagnostic_span_behavior.html">
-<link rel="import" href="/tracing/value/ui/scalar_span.html">
-
-<dom-module id="tr-v-ui-related-histogram-map-span">
- <template>
- <tr-ui-b-table id="table"></tr-ui-b-table>
- </template>
-</dom-module>
-
-<script>
-'use strict';
-tr.exportTo('tr.v.ui', function() {
- Polymer({
- is: 'tr-v-ui-related-histogram-map-span',
- behaviors: [tr.v.ui.DIAGNOSTIC_SPAN_BEHAVIOR],
-
- ready() {
- this.$.table.showHeader = false;
- this.$.table.tableColumns = [
- {value: row => row[0]},
- {value: row => row[1]},
- ];
- },
-
- updateContents_() {
- Polymer.dom(this).textContent = '';
-
- const rows = [];
-
- const histogramNames = new Set();
- for (const [name, hist] of this.diagnostic) {
- histogramNames.add(hist.name);
- }
- if (histogramNames.size > 1) {
- const link = document.createElement('tr-ui-a-analysis-link');
- link.setSelectionAndContent(Array.from(histogramNames), 'Select All');
- rows.push([link, '']);
- }
-
- for (const [name, hist] of this.diagnostic) {
- const link = document.createElement('tr-ui-a-analysis-link');
- link.setSelectionAndContent([hist.name], name);
- const scalarSpan = tr.v.ui.createScalarSpan(hist);
- rows.push([link, scalarSpan]);
- }
- this.$.table.tableRows = rows;
- this.$.table.rebuild();
- }
- });
-
- return {};
-});
-</script>
« no previous file with comments | « tracing/tracing/value/ui/histogram_span_test.html ('k') | tracing/tracing/value/ui/related_histogram_map_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698