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

Unified Diff: tracing/tracing/value/ui/related_name_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_name_map_span.html
diff --git a/tracing/tracing/value/ui/related_name_map_span.html b/tracing/tracing/value/ui/related_name_map_span.html
new file mode 100644
index 0000000000000000000000000000000000000000..f89e8e426acee65fc15cabf9d802c5379bf380d3
--- /dev/null
+++ b/tracing/tracing/value/ui/related_name_map_span.html
@@ -0,0 +1,34 @@
+<!DOCTYPE html>
+<!--
+Copyright 2017 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/value/ui/diagnostic_span_behavior.html">
+
+<dom-module id="tr-v-ui-related-name-map-span">
+</dom-module>
+
+<script>
+'use strict';
+tr.exportTo('tr.v.ui', function() {
+ Polymer({
+ is: 'tr-v-ui-related-name-map-span',
+ behaviors: [tr.v.ui.DIAGNOSTIC_SPAN_BEHAVIOR],
+
+ updateContents_() {
+ Polymer.dom(this).textContent = '';
+ for (const [key, name] of this.diagnostic_) {
+ const link = document.createElement('tr-ui-a-analysis-link');
+ Polymer.dom(this).appendChild(link);
+ link.setSelectionAndContent([name], key);
+ Polymer.dom(this).appendChild(document.createTextNode(' '));
+ }
+ }
+ });
+
+ return {};
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698