| 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" | 8 <link rel="stylesheet" |
| 9 href="/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.css"> | 9 href="/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.css"> |
| 10 | 10 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 * @constructor | 24 * @constructor |
| 25 */ | 25 */ |
| 26 var LayerTreeHostImplSnapshotView = tr.ui.b.define( | 26 var LayerTreeHostImplSnapshotView = tr.ui.b.define( |
| 27 'tr-ui-e-chrome-cc-layer-tree-host-impl-snapshot-view', | 27 'tr-ui-e-chrome-cc-layer-tree-host-impl-snapshot-view', |
| 28 tr.ui.analysis.ObjectSnapshotView); | 28 tr.ui.analysis.ObjectSnapshotView); |
| 29 | 29 |
| 30 LayerTreeHostImplSnapshotView.prototype = { | 30 LayerTreeHostImplSnapshotView.prototype = { |
| 31 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype, | 31 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype, |
| 32 | 32 |
| 33 decorate: function() { | 33 decorate: function() { |
| 34 this.classList.add('tr-ui-e-chrome-cc-lthi-s-view'); | 34 Polymer.dom(this).classList.add('tr-ui-e-chrome-cc-lthi-s-view'); |
| 35 | 35 |
| 36 this.selection_ = undefined; | 36 this.selection_ = undefined; |
| 37 | 37 |
| 38 this.layerPicker_ = new tr.ui.e.chrome.cc.LayerPicker(); | 38 this.layerPicker_ = new tr.ui.e.chrome.cc.LayerPicker(); |
| 39 this.layerPicker_.addEventListener( | 39 this.layerPicker_.addEventListener( |
| 40 'selection-change', | 40 'selection-change', |
| 41 this.onLayerPickerSelectionChanged_.bind(this)); | 41 this.onLayerPickerSelectionChanged_.bind(this)); |
| 42 | 42 |
| 43 this.layerView_ = new tr.ui.e.chrome.cc.LayerView(); | 43 this.layerView_ = new tr.ui.e.chrome.cc.LayerView(); |
| 44 this.layerView_.addEventListener( | 44 this.layerView_.addEventListener( |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 }; | 118 }; |
| 119 | 119 |
| 120 tr.ui.analysis.ObjectSnapshotView.register( | 120 tr.ui.analysis.ObjectSnapshotView.register( |
| 121 LayerTreeHostImplSnapshotView, {typeName: 'cc::LayerTreeHostImpl'}); | 121 LayerTreeHostImplSnapshotView, {typeName: 'cc::LayerTreeHostImpl'}); |
| 122 | 122 |
| 123 return { | 123 return { |
| 124 LayerTreeHostImplSnapshotView: LayerTreeHostImplSnapshotView | 124 LayerTreeHostImplSnapshotView: LayerTreeHostImplSnapshotView |
| 125 }; | 125 }; |
| 126 }); | 126 }); |
| 127 </script> | 127 </script> |
| OLD | NEW |