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

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

Issue 2990293002: Revision Info into GenericSet (Closed)
Patch Set: Rebase on master 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
« no previous file with comments | « tracing/tracing/value/diagnostics/reserved_names.html ('k') | tracing/tracing/value/histogram.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/diagnostics/revision_info.html
diff --git a/tracing/tracing/value/diagnostics/revision_info.html b/tracing/tracing/value/diagnostics/revision_info.html
deleted file mode 100644
index add65b23d29e62c3480bbbc4e82a4199657e63ce..0000000000000000000000000000000000000000
--- a/tracing/tracing/value/diagnostics/revision_info.html
+++ /dev/null
@@ -1,94 +0,0 @@
-<!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/base/utils.html">
-<link rel="import" href="/tracing/value/diagnostics/diagnostic.html">
-
-<script>
-'use strict';
-
-tr.exportTo('tr.v.d', function() {
- class RevisionInfo extends tr.v.d.Diagnostic {
- constructor(info) {
- super();
- this.chromiumCommitPosition_ = info.chromiumCommitPosition || undefined;
- this.v8CommitPosition_ = info.v8CommitPosition || undefined;
- this.chromium_ = info.chromium || [];
- this.v8_ = info.v8 || [];
- this.catapult_ = info.catapult || [];
- this.angle_ = info.angle || [];
- this.skia_ = info.skia || [];
- this.webrtc_ = info.webrtc || [];
- }
-
- addToHistogram(hist) {
- hist.diagnostics.set(tr.v.d.RESERVED_NAMES.REVISIONS, this);
- }
-
- clone() {
- const clone = new tr.v.d.MergedRevisionInfo();
- clone.addDiagnostic(this);
- return clone;
- }
-
- asDictInto_(d) {
- d.chromiumCommitPosition = this.chromiumCommitPosition;
- d.v8CommitPosition = this.v8CommitPosition;
- d.chromium = this.chromium;
- d.v8 = this.v8;
- d.catapult = this.catapult;
- d.angle = this.angle;
- d.skia = this.skia;
- d.webrtc = this.webrtc;
- }
-
- static fromDict(d) {
- return new RevisionInfo(d);
- }
-
- get chromiumCommitPosition() {
- return this.chromiumCommitPosition_;
- }
-
- get v8CommitPosition() {
- return this.v8CommitPosition_;
- }
-
- get chromium() {
- return this.chromium_;
- }
-
- get v8() {
- return this.v8_;
- }
-
- get catapult() {
- return this.catapult_;
- }
-
- get angle() {
- return this.angle_;
- }
-
- get skia() {
- return this.skia_;
- }
-
- get webrtc() {
- return this.webrtc_;
- }
- }
-
- tr.v.d.Diagnostic.register(RevisionInfo, {
- elementName: 'tr-v-ui-revision-info-span'
- });
-
- return {
- RevisionInfo,
- };
-});
-</script>
« no previous file with comments | « tracing/tracing/value/diagnostics/reserved_names.html ('k') | tracing/tracing/value/histogram.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698