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/ui/analysis/power_sample_table.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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/ui/analysis/power_sample_table.html
diff --git a/tracing/tracing/ui/analysis/power_sample_table.html b/tracing/tracing/ui/analysis/power_sample_table.html
deleted file mode 100644
index cc2dace134789bcce304493fe557b21a228fe7ba..0000000000000000000000000000000000000000
--- a/tracing/tracing/ui/analysis/power_sample_table.html
+++ /dev/null
@@ -1,69 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright 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/model/event_set.html">
-<link rel="import" href="/tracing/ui/base/table.html">
-<link rel="import" href="/tracing/value/ui/scalar_span.html">
-<link rel="import" href="/tracing/value/unit.html">
-
-<dom-module id='tr-ui-a-power-sample-table'>
- <template>
- <style>
- :host {
- display: flex;
- }
- </style>
- <tr-ui-b-table id="table"></tr-ui-b-table>
- </template>
-</dom-module>
-
-<script>
-'use strict';
-var EventSet = tr.model.EventSet;
-
-Polymer({
- is: 'tr-ui-a-power-sample-table',
-
- ready: function() {
- this.$.table.tableColumns = [
- {
- title: 'Time',
- width: '100px',
- value: function(row) {
- return tr.v.ui.createScalarSpan(row.start, {
- unit: tr.v.Unit.byName.timeStampInMs
- });
- }
- },
- {
- title: 'Power',
- width: '100%',
- value: function(row) {
- return tr.v.ui.createScalarSpan(row.power, {
- unit: tr.v.Unit.byName.powerInWatts
- });
- }
- }
- ];
- this.samples = new EventSet();
- },
-
- get samples() {
- return this.samples_;
- },
-
- set samples(samples) {
- this.samples_ = (samples === undefined) ? new EventSet() : samples;
- this.updateContents_();
- },
-
- updateContents_: function() {
- this.$.table.tableRows = this.samples.toArray();
- this.$.table.rebuild();
- }
-});
-</script>

Powered by Google App Engine
This is Rietveld 408576698