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

Unified Diff: dashboard/dashboard/elements/chart-slider.html

Issue 1926263002: [Polymer10] Convert chart-title.html and chart-slider.html to Polymer 1.0 (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 8 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 | « no previous file | dashboard/dashboard/elements/chart-title.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dashboard/dashboard/elements/chart-slider.html
diff --git a/dashboard/dashboard/elements/chart-slider.html b/dashboard/dashboard/elements/chart-slider.html
index aed0a1b88495b0bbb334ced18c671dc4609e8b0b..9d098d71ee869fc35d21be78317a179752e1c6e2 100644
--- a/dashboard/dashboard/elements/chart-slider.html
+++ b/dashboard/dashboard/elements/chart-slider.html
@@ -5,7 +5,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
-->
-<polymer-element name="chart-slider" attributes="testpath startrev endrev">
+<dom-module id="chart-slider">
<template>
<style>
#revisions_container {
@@ -17,8 +17,27 @@ found in the LICENSE file.
</template>
<script>
'use strict';
- Polymer('chart-slider', {
- edgeDist: 2,
+ Polymer({
+
+ is: 'chart-slider',
+ properties: {
+ edgeDist: {
+ type: Number,
+ value: 2
+ },
+ endrev: {
+ notify: true,
+ observer: 'endrevChanged'
+ },
+ startrev: {
+ notify: true,
+ observer: 'startrevChanged'
+ },
+ testpath: {
+ notify: true,
+ observer: 'testpathChanged'
+ }
+ },
/**
* Initializes the element. This is a lifecycle callback method.
@@ -380,4 +399,4 @@ found in the LICENSE file.
}
});
</script>
-</polymer-element>
+</dom-module>
« no previous file with comments | « no previous file | dashboard/dashboard/elements/chart-title.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698