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

Side by Side Diff: tracing/tracing/ui/base/scatter_chart.html

Issue 1928873003: Use Polymer.dom with many dom manipulations. (Closed) Base URL: https://github.com/catapult-project/catapult.git@polymer10-migration
Patch Set: fixes 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 unified diff | Download patch
« no previous file with comments | « tracing/tracing/ui/base/resize_sensor.html ('k') | tracing/tracing/ui/base/tab_view.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- 2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved. 3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be 4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file. 5 found in the LICENSE file.
6 --> 6 -->
7 7
8 <link rel="import" href="/tracing/base/range.html"> 8 <link rel="import" href="/tracing/base/range.html">
9 <link rel="import" href="/tracing/ui/base/chart_base_2d.html"> 9 <link rel="import" href="/tracing/ui/base/chart_base_2d.html">
10 10
(...skipping 13 matching lines...) Expand all
24 this.radius = radius; 24 this.radius = radius;
25 this.color = color; 25 this.color = color;
26 this.breadcrumb = breadcrumb; 26 this.breadcrumb = breadcrumb;
27 }; 27 };
28 28
29 ScatterChart.prototype = { 29 ScatterChart.prototype = {
30 __proto__: ChartBase2D.prototype, 30 __proto__: ChartBase2D.prototype,
31 31
32 decorate: function() { 32 decorate: function() {
33 ChartBase2D.prototype.decorate.call(this); 33 ChartBase2D.prototype.decorate.call(this);
34 this.classList.add('scatter-chart'); 34 Polymer.dom(this).classList.add('scatter-chart');
35 35
36 this.brushedXRange_ = new tr.b.Range(); 36 this.brushedXRange_ = new tr.b.Range();
37 this.brushedYRange_ = new tr.b.Range(); 37 this.brushedYRange_ = new tr.b.Range();
38 }, 38 },
39 39
40 setBrushedRanges: function(xRange, yRange) { 40 setBrushedRanges: function(xRange, yRange) {
41 this.brushedXRange_.reset(); 41 this.brushedXRange_.reset();
42 this.brushedYRange_.reset(); 42 this.brushedYRange_.reset();
43 if (!xRange.isEmpty && !yRange.isEmpty) { 43 if (!xRange.isEmpty && !yRange.isEmpty) {
44 this.brushedXRange_.addRange(xRange); 44 this.brushedXRange_.addRange(xRange);
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 return datum.color; 109 return datum.color;
110 }.bind(this)); 110 }.bind(this));
111 } 111 }
112 }; 112 };
113 113
114 return { 114 return {
115 ScatterChart: ScatterChart 115 ScatterChart: ScatterChart
116 }; 116 };
117 }); 117 });
118 </script> 118 </script>
OLDNEW
« no previous file with comments | « tracing/tracing/ui/base/resize_sensor.html ('k') | tracing/tracing/ui/base/tab_view.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698