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

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

Issue 3002973002: Refactor diagnostic spans to share a polymer behavior. (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/collected_related_event_set_span.html
diff --git a/tracing/tracing/value/ui/collected_related_event_set_span.html b/tracing/tracing/value/ui/collected_related_event_set_span.html
index 847d9d842748af3c8c7d8635af9b5b38af5dbb77..08e0cc91dcac80c8144f0d80e0eca9f9d9f180a2 100644
--- a/tracing/tracing/value/ui/collected_related_event_set_span.html
+++ b/tracing/tracing/value/ui/collected_related_event_set_span.html
@@ -5,26 +5,17 @@ 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/base/base.html">
+<link rel="import" href="/tracing/value/ui/diagnostic_span_behavior.html">
<dom-module id="tr-v-ui-collected-related-event-set-span">
- <script>
- 'use strict';
+</dom-module>
+
+<script>
+'use strict';
+tr.exportTo('tr.v.ui', function() {
Polymer({
is: 'tr-v-ui-collected-related-event-set-span',
-
- ready() {
- this.diagnostic_ = undefined;
- },
-
- get diagnostic() {
- return this.diagnostic_;
- },
-
- set diagnostic(d) {
- this.diagnostic_ = d;
- this.updateContents_();
- },
+ behaviors: [tr.v.ui.DIAGNOSTIC_SPAN_BEHAVIOR],
updateContents_() {
Polymer.dom(this).textContent = '';
@@ -43,5 +34,7 @@ found in the LICENSE file.
}
}
});
- </script>
-</dom-module>
+
+ return {};
+});
+</script>

Powered by Google App Engine
This is Rietveld 408576698