OLD | NEW |
(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> |
OLD | NEW |