OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <!-- | 2 <!-- |
3 Copyright (c) 2013 The Chromium Authors. All rights reserved. | 3 Copyright (c) 2013 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="stylesheet" href="/tracing/ui/extras/chrome/cc/layer_view.css"> | 8 <link rel="stylesheet" href="/tracing/ui/extras/chrome/cc/layer_view.css"> |
9 | 9 |
10 <link rel="import" href="/tracing/base/raf.html"> | 10 <link rel="import" href="/tracing/base/raf.html"> |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 tr.exportTo('tr.ui.e.chrome.cc', function() { | 25 tr.exportTo('tr.ui.e.chrome.cc', function() { |
26 var constants = tr.e.cc.constants; | 26 var constants = tr.e.cc.constants; |
27 | 27 |
28 /** | 28 /** |
29 * @constructor | 29 * @constructor |
30 */ | 30 */ |
31 var LayerView = tr.ui.b.define('tr-ui-e-chrome-cc-layer-view'); | 31 var LayerView = tr.ui.b.define('tr-ui-e-chrome-cc-layer-view'); |
32 | 32 |
33 LayerView.prototype = { | 33 LayerView.prototype = { |
34 __proto__: HTMLUnknownElement.prototype, | 34 __proto__: HTMLDivElement.prototype, |
35 | 35 |
36 decorate: function() { | 36 decorate: function() { |
37 this.layerTreeQuadStackView_ = | 37 this.layerTreeQuadStackView_ = |
38 new tr.ui.e.chrome.cc.LayerTreeQuadStackView(); | 38 new tr.ui.e.chrome.cc.LayerTreeQuadStackView(); |
39 this.dragBar_ = document.createElement('tr-ui-b-drag-handle'); | 39 this.dragBar_ = document.createElement('tr-ui-b-drag-handle'); |
40 this.analysisEl_ = | 40 this.analysisEl_ = |
41 document.createElement('tr-ui-e-chrome-cc-layer-view-analysis'); | 41 document.createElement('tr-ui-e-chrome-cc-layer-view-analysis'); |
42 this.analysisEl_.addEventListener('requestSelectionChange', | 42 this.analysisEl_.addEventListener('requestSelectionChange', |
43 this.onRequestSelectionChangeFromAnalysisEl_.bind(this)); | 43 this.onRequestSelectionChangeFromAnalysisEl_.bind(this)); |
44 | 44 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 this.layerTreeQuadStackView_.extraHighlightsByLayerId = | 140 this.layerTreeQuadStackView_.extraHighlightsByLayerId = |
141 extraHighlightsByLayerId; | 141 extraHighlightsByLayerId; |
142 } | 142 } |
143 }; | 143 }; |
144 | 144 |
145 return { | 145 return { |
146 LayerView: LayerView | 146 LayerView: LayerView |
147 }; | 147 }; |
148 }); | 148 }); |
149 </script> | 149 </script> |
OLD | NEW |