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

Side by Side Diff: tracing/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.html

Issue 3017523002: Fix uses of /deep/ in trace viewer. (Closed)
Patch Set: fix tests Created 3 years, 2 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
OLDNEW
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"
9 href="/tracing/ui/extras/chrome/cc/layer_tree_host_impl_view.css">
10
11 <link rel="import" href="/tracing/extras/chrome/cc/layer_tree_host_impl.html"> 8 <link rel="import" href="/tracing/extras/chrome/cc/layer_tree_host_impl.html">
12 <link rel="import" href="/tracing/extras/chrome/cc/tile.html"> 9 <link rel="import" href="/tracing/extras/chrome/cc/tile.html">
13 <link rel="import" href="/tracing/ui/analysis/object_snapshot_view.html"> 10 <link rel="import" href="/tracing/ui/analysis/object_snapshot_view.html">
14 <link rel="import" href="/tracing/ui/base/drag_handle.html"> 11 <link rel="import" href="/tracing/ui/base/drag_handle.html">
15 <link rel="import" href="/tracing/ui/extras/chrome/cc/layer_picker.html"> 12 <link rel="import" href="/tracing/ui/extras/chrome/cc/layer_picker.html">
16 <link rel="import" href="/tracing/ui/extras/chrome/cc/layer_view.html"> 13 <link rel="import" href="/tracing/ui/extras/chrome/cc/layer_view.html">
17 14
18 <script> 15 <script>
19 'use strict'; 16 'use strict';
20 17
21 tr.exportTo('tr.ui.e.chrome.cc', function() { 18 tr.exportTo('tr.ui.e.chrome.cc', function() {
22 /* 19 /*
23 * Displays a LayerTreeHostImpl snapshot in a human readable form. 20 * Displays a LayerTreeHostImpl snapshot in a human readable form.
24 * @constructor 21 * @constructor
25 */ 22 */
26 const LayerTreeHostImplSnapshotView = tr.ui.b.define( 23 const LayerTreeHostImplSnapshotView = tr.ui.b.define(
27 'tr-ui-e-chrome-cc-layer-tree-host-impl-snapshot-view', 24 'tr-ui-e-chrome-cc-layer-tree-host-impl-snapshot-view',
28 tr.ui.analysis.ObjectSnapshotView); 25 tr.ui.analysis.ObjectSnapshotView);
29 26
30 LayerTreeHostImplSnapshotView.prototype = { 27 LayerTreeHostImplSnapshotView.prototype = {
31 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype, 28 __proto__: tr.ui.analysis.ObjectSnapshotView.prototype,
32 29
33 decorate() { 30 decorate() {
34 Polymer.dom(this).classList.add('tr-ui-e-chrome-cc-lthi-s-view'); 31 Polymer.dom(this).classList.add('tr-ui-e-chrome-cc-lthi-s-view');
32 this.style.display = 'flex';
33 this.style.flexDirection = 'row';
34 this.style.flexGrow = 1;
35 this.style.flexShrink = 1;
36 this.style.flexBasis = 'auto';
35 37
36 this.selection_ = undefined; 38 this.selection_ = undefined;
37 39
38 this.layerPicker_ = new tr.ui.e.chrome.cc.LayerPicker(); 40 this.layerPicker_ = new tr.ui.e.chrome.cc.LayerPicker();
41 this.layerPicker_.style.flexGrow = 1;
42 this.layerPicker_.style.flexShrink = 1;
43 this.layerPicker_.style.flexBasis = 'auto';
39 this.layerPicker_.addEventListener( 44 this.layerPicker_.addEventListener(
40 'selection-change', 45 'selection-change',
41 this.onLayerPickerSelectionChanged_.bind(this)); 46 this.onLayerPickerSelectionChanged_.bind(this));
42 47
43 this.layerView_ = new tr.ui.e.chrome.cc.LayerView(); 48 this.layerView_ = new tr.ui.e.chrome.cc.LayerView();
44 this.layerView_.addEventListener( 49 this.layerView_.addEventListener(
45 'selection-change', 50 'selection-change',
46 this.onLayerViewSelectionChanged_.bind(this)); 51 this.onLayerViewSelectionChanged_.bind(this));
47 this.dragHandle_ = document.createElement('tr-ui-b-drag-handle'); 52 this.dragHandle_ = document.createElement('tr-ui-b-drag-handle');
53 this.dragHandle_.style.flexGrow = 0;
54 this.dragHandle_.style.flexShrink = 0;
55 this.dragHandle_.style.flexBasis = 'auto';
48 this.dragHandle_.horizontal = false; 56 this.dragHandle_.horizontal = false;
49 this.dragHandle_.target = this.layerView_; 57 this.dragHandle_.target = this.layerView_;
50 58
51 Polymer.dom(this).appendChild(this.layerPicker_); 59 Polymer.dom(this).appendChild(this.layerPicker_);
52 Polymer.dom(this).appendChild(this.dragHandle_); 60 Polymer.dom(this).appendChild(this.dragHandle_);
53 Polymer.dom(this).appendChild(this.layerView_); 61 Polymer.dom(this).appendChild(this.layerView_);
54 62
55 // Make sure we have the current values from layerView_ and layerPicker_, 63 // Make sure we have the current values from layerView_ and layerPicker_,
56 // since those might have been created before we added the listener. 64 // since those might have been created before we added the listener.
57 this.onLayerViewSelectionChanged_(); 65 this.onLayerViewSelectionChanged_();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 }; 126 };
119 127
120 tr.ui.analysis.ObjectSnapshotView.register( 128 tr.ui.analysis.ObjectSnapshotView.register(
121 LayerTreeHostImplSnapshotView, {typeName: 'cc::LayerTreeHostImpl'}); 129 LayerTreeHostImplSnapshotView, {typeName: 'cc::LayerTreeHostImpl'});
122 130
123 return { 131 return {
124 LayerTreeHostImplSnapshotView, 132 LayerTreeHostImplSnapshotView,
125 }; 133 };
126 }); 134 });
127 </script> 135 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698