| 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/ui/base/name_bar_chart.html"> | 8 <link rel="import" href="/tracing/ui/base/name_bar_chart.html"> |
| 9 | 9 |
| 10 <script> | 10 <script> |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 currentMouseIndex) + 1); | 93 currentMouseIndex) + 1); |
| 94 chart.brushedRange = r; | 94 chart.brushedRange = r; |
| 95 } | 95 } |
| 96 | 96 |
| 97 chart.addEventListener('item-mousedown', function(e) { | 97 chart.addEventListener('item-mousedown', function(e) { |
| 98 mouseDownIndex = e.index; | 98 mouseDownIndex = e.index; |
| 99 currentMouseIndex = e.index; | 99 currentMouseIndex = e.index; |
| 100 updateBrushedRange(); | 100 updateBrushedRange(); |
| 101 }); | 101 }); |
| 102 chart.addEventListener('item-mousemove', function(e) { | 102 chart.addEventListener('item-mousemove', function(e) { |
| 103 if (e.button === undefined) | 103 if (e.button === undefined) return; |
| 104 return; | 104 |
| 105 currentMouseIndex = e.index; | 105 currentMouseIndex = e.index; |
| 106 updateBrushedRange(); | 106 updateBrushedRange(); |
| 107 }); | 107 }); |
| 108 chart.addEventListener('item-mouseup', function(e) { | 108 chart.addEventListener('item-mouseup', function(e) { |
| 109 currentMouseIndex = e.index; | 109 currentMouseIndex = e.index; |
| 110 updateBrushedRange(); | 110 updateBrushedRange(); |
| 111 }); | 111 }); |
| 112 }); | 112 }); |
| 113 }); | 113 }); |
| 114 </script> | 114 </script> |
| OLD | NEW |