| Index: tracing/tracing/metrics/ui/system_health/system_health_span.html
|
| diff --git a/tracing/tracing/metrics/ui/system_health/system_health_span.html b/tracing/tracing/metrics/ui/system_health/system_health_span.html
|
| deleted file mode 100644
|
| index 99291adac9ad0a686749ac60ff98375314529b57..0000000000000000000000000000000000000000
|
| --- a/tracing/tracing/metrics/ui/system_health/system_health_span.html
|
| +++ /dev/null
|
| @@ -1,63 +0,0 @@
|
| -<!DOCTYPE html>
|
| -<!--
|
| -Copyright (c) 2015 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/metrics/system_health/system_health_metric.html">
|
| -<link rel="import" href="/tracing/ui/base/utils.html">
|
| -
|
| -<polymer-element name="tr-metrics-ui-sh-system-health-span">
|
| - <template>
|
| - <style>
|
| - :host {
|
| - display: flex;
|
| - align-items: center;
|
| - }
|
| - span {
|
| - flex-shrink: 0;
|
| - }
|
| - </style>
|
| - <span id="content">
|
| - <span>System Health: </span><span id="score"></span>
|
| - </span>
|
| - </template>
|
| - <script>
|
| - 'use strict';
|
| -
|
| - Polymer({
|
| - created: function() {
|
| - this.model_ = undefined;
|
| - },
|
| -
|
| - ready: function() {
|
| - this.updateContent_();
|
| - },
|
| -
|
| - get model() {
|
| - return this.model_;
|
| - },
|
| -
|
| - set model(model) {
|
| - this.model_ = model;
|
| - this.updateContent_();
|
| - },
|
| -
|
| - updateContent_: function() {
|
| - if (this.model_ === undefined) {
|
| - this.$.content.style.display = 'none';
|
| - return;
|
| - }
|
| - this.$.content.style.display = '';
|
| - var overallScore = tr.metrics.sh.SystemHealthMetric.forModel(this.model_);
|
| - if (overallScore === undefined) {
|
| - this.$.score.textContent = '';
|
| - return;
|
| - }
|
| - this.$.score.textContent = tr.ui.b.toThreeDigitLocaleString(overallScore);
|
| - }
|
| - });
|
| - </script>
|
| -</polymer-element>
|
|
|