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

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

Issue 2998043002: Remove RelatedHistogramSet. (Closed)
Patch Set: Created 3 years, 4 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_set_span.html
diff --git a/tracing/tracing/value/ui/related_histogram_set_span.html b/tracing/tracing/value/ui/related_histogram_set_span.html
deleted file mode 100644
index 0cc3907f484222e867b1e2018be015d53ad7076d..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/ui/related_histogram_set_span.html
+++ /dev/null
@@ -1,53 +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">
-
-<dom-module id="tr-v-ui-related-histogram-set-span">
- <script>
- 'use strict';
- Polymer({
- is: 'tr-v-ui-related-histogram-set-span',
-
- ready() {
- this.diagnostic_ = undefined;
- },
-
- get diagnostic() {
- return this.diagnostic_;
- },
-
- set diagnostic(d) {
- this.diagnostic_ = d;
- this.updateContents_();
- },
-
- addLink_(selection, content) {
- const link = document.createElement('tr-ui-a-analysis-link');
- link.setSelectionAndContent(selection, content);
- Polymer.dom(this).appendChild(link);
- Polymer.dom(this).appendChild(document.createElement('br'));
- },
-
- updateContents_() {
- Polymer.dom(this).textContent = '';
-
- const histogramNames = new Set();
- for (const hist of this.diagnostic) {
- histogramNames.add(hist.name);
- }
- if (histogramNames.size > 1) {
- this.addLink_(Array.from(histogramNames), 'Select All');
- }
-
- for (const hist of this.diagnostic) {
- this.addLink_([hist.name], hist.name);
- }
- }
- });
- </script>
-</dom-module>
« no previous file with comments | « tracing/tracing/value/ui/histogram_set_table_test.html ('k') | tracing/tracing/value/ui/related_histogram_set_span_test.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698