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

Unified Diff: tracing/tracing/value/diagnostics/composition.html

Issue 2000063006: Define DiagnosticMap and a basic Diagnostic hierarchy (Closed) Base URL: https://github.com/catapult-project/catapult.git@master
Patch Set: rebase Created 4 years, 7 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/diagnostics/composition.html
diff --git a/tracing/tracing/value/diagnostics/composition.html b/tracing/tracing/value/diagnostics/composition.html
new file mode 100644
index 0000000000000000000000000000000000000000..c58f29d0b02db5dc3551286a1d97428c68963c93
--- /dev/null
+++ b/tracing/tracing/value/diagnostics/composition.html
@@ -0,0 +1,33 @@
+<!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/value/diagnostics/related_value_set.html">
+
+<script>
+'use strict';
+
+tr.exportTo('tr.v.d', function() {
+ /** @constructor */
+ function Composition(opt_values) {
+ tr.v.d.RelatedValueSet.call(this, opt_values);
+ }
+
+ Composition.prototype = {
+ __proto__: tr.v.d.RelatedValueSet.prototype
+ };
+
+ Composition.fromDict = function(d) {
+ return new Composition(d.guids.map(guid => new tr.v.d.ValueRef(guid)));
+ };
+
+ tr.v.d.Diagnostic.register(Composition);
+
+ return {
+ Composition: Composition
+ };
+});
+</script>
« no previous file with comments | « tracing/tracing/ui/analysis/single_user_expectation_sub_view.html ('k') | tracing/tracing/value/diagnostics/diagnostic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698