| OLD | NEW | 
|---|
| 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  Loading... | 
| 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  Loading... | 
| 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> | 
| OLD | NEW | 
|---|