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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <!--
3 Copyright 2017 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7
8 <link rel="import" href="/tracing/ui/analysis/analysis_link.html">
9 <link rel="import" href="/tracing/value/ui/diagnostic_span_behavior.html">
10
11 <dom-module id="tr-v-ui-related-name-map-span">
12 </dom-module>
13
14 <script>
15 'use strict';
16 tr.exportTo('tr.v.ui', function() {
17 Polymer({
18 is: 'tr-v-ui-related-name-map-span',
19 behaviors: [tr.v.ui.DIAGNOSTIC_SPAN_BEHAVIOR],
20
21 updateContents_() {
22 Polymer.dom(this).textContent = '';
23 for (const [key, name] of this.diagnostic_) {
24 const link = document.createElement('tr-ui-a-analysis-link');
25 Polymer.dom(this).appendChild(link);
26 link.setSelectionAndContent([name], key);
27 Polymer.dom(this).appendChild(document.createTextNode(' '));
28 }
29 }
30 });
31
32 return {};
33 });
34 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698