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

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

Issue 1922193002: [polymer] Replaces this.appendChild with Polymer.dom(this).appendChild (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Created 4 years, 7 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" href="/tracing/ui/extras/chrome/cc/layer_picker.css"> 8 <link rel="stylesheet" href="/tracing/ui/extras/chrome/cc/layer_picker.css">
9 9
10 <link rel="import" href="/tracing/extras/chrome/cc/constants.html"> 10 <link rel="import" href="/tracing/extras/chrome/cc/constants.html">
(...skipping 23 matching lines...) Expand all
34 LayerPicker.prototype = { 34 LayerPicker.prototype = {
35 __proto__: HTMLUnknownElement.prototype, 35 __proto__: HTMLUnknownElement.prototype,
36 36
37 decorate: function() { 37 decorate: function() {
38 this.lthi_ = undefined; 38 this.lthi_ = undefined;
39 this.controls_ = document.createElement('top-controls'); 39 this.controls_ = document.createElement('top-controls');
40 this.renderPassQuads_ = false; 40 this.renderPassQuads_ = false;
41 41
42 42
43 this.itemList_ = new tr.ui.b.ListView(); 43 this.itemList_ = new tr.ui.b.ListView();
44 this.appendChild(this.controls_); 44 Polymer.dom(this).appendChild(this.controls_);
45 45
46 this.appendChild(this.itemList_); 46 Polymer.dom(this).appendChild(this.itemList_);
47 47
48 this.itemList_.addEventListener( 48 this.itemList_.addEventListener(
49 'selection-changed', this.onItemSelectionChanged_.bind(this)); 49 'selection-changed', this.onItemSelectionChanged_.bind(this));
50 50
51 this.controls_.appendChild(tr.ui.b.createSelector( 51 this.controls_.appendChild(tr.ui.b.createSelector(
52 this, 'whichTree', 52 this, 'whichTree',
53 'layerPicker.whichTree', constants.ACTIVE_TREE, 53 'layerPicker.whichTree', constants.ACTIVE_TREE,
54 [{label: 'Active tree', value: constants.ACTIVE_TREE}, 54 [{label: 'Active tree', value: constants.ACTIVE_TREE},
55 {label: 'Pending tree', value: constants.PENDING_TREE}, 55 {label: 'Pending tree', value: constants.PENDING_TREE},
56 {label: 'Render pass quads', value: RENDER_PASS_QUADS}])); 56 {label: 'Render pass quads', value: RENDER_PASS_QUADS}]));
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 this.selection_ = selection; 313 this.selection_ = selection;
314 this.updateContents_(); 314 this.updateContents_();
315 } 315 }
316 }; 316 };
317 317
318 return { 318 return {
319 LayerPicker: LayerPicker 319 LayerPicker: LayerPicker
320 }; 320 };
321 }); 321 });
322 </script> 322 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698